summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-10-28remove some unused members of struct nfsnode;Thordur I. Bjornsson
some spacing while there. ok krw@
2007-10-28add new envy(4) driver for ICE1712 (aka VIA Envy24) audio devices. TheAlexandre Ratchov
device uses 32bit samples, up to 96kHz sample rate, 12 input channels and 10 output channels. Currently AK4524 codecs are supported, so M-Audio Delta cards should work. Playback and capture work, but the mixer is still incomplete. ok jakemsr@
2007-10-28prepare audio(4) for addition of the envy(4) driver: enable 32bit samplesAlexandre Ratchov
(basically only audio_fill_silence() must be updated) and bump max channel number to 12 ok jakemsr@
2007-10-28the pointer we give to audio_fill_silence() may point in the middle of aAlexandre Ratchov
sample (eg. if write(2) have written an odd number of bytes and 16bit encoding is used), so we'll not properly write silence. To fix this, round start pointer to fill with silence uncomplete samples too. ok jakemsr@
2007-10-28let vic attach to the virtual pcnet hardware in vmware.David Gwynne
tested on real hardware by jsing@ to ensure pcn(4) isnt affected in the real world. ok jsing@
2007-10-28UltraSPARC CPUs don't have a floating-point queue, so cpu_reset_fpustate() isMark Kettenis
redundant since there is no queue to flush.
2007-10-28Match on compatible: 'pcf8584', such that we attach on the V210 again.Mark Kettenis
2007-10-28get rid of btoc/ctob in favor of atop/ptoaMartin Reindl
2007-10-28When handling a userland data fault occuring in kernel mode, take the kernelMiod Vallat
lock with KERNEL_LOCK, not KERNEL_PROC_LOCK. This lets bsd.mp run multiuser on a single-processor board.
2007-10-28Disable interrupts around changing curproc and curpcb so these always match.Miod Vallat
2007-10-27Replace the replay protection counter with a cookie.Marco Pfatschbacher
It is unlikely we will ever get a working replay protection, so better keep it simple and robust. The cookie allows us to detect our own advertisements, thus it is now easy to deal with network loops and non-simplex interfaces. Zero feedback by the people who wanted this fixed. OK henning@, markus@
2007-10-27Make sure the compat errno mapping arrays go up to ELAST, and correctlyMiod Vallat
translate the errnos added over the last few releases.
2007-10-27Grab kernel lock before calling interrupt handlers.Mark Kettenis
ok miod@, deraadt@
2007-10-27Grab kernel lock for EXC_DSI.Mark Kettenis
Requested by deraadt@
2007-10-27get rid of btoc/ctob in favor of atop/ptoaMartin Reindl
2007-10-27Deal with usb string printing changes.Jonathan Gray
2007-10-27Use the same assembly constraints for all inline assembler xmem constructs.Miod Vallat
2007-10-27In __cpu_simple_lock() and __cpu_simple_lock_try(), use a local u_int insteadMiod Vallat
of a local __cpu_simple_lock_t (which is volatile), so that the compiler can optimize it to a register, instead of using a memory location (and doing stores into it when __cpu_simple_lock() is spinning). This makes the MP code a bit smaller and a bit faster.
2007-10-27No need for an explicit pipeline synchronization in invalidate_pte(), theMiod Vallat
xmem instruction does it for us.
2007-10-27Be more strict when disassembling {f,}{st,x}cr and [bt]cnd instructions,Miod Vallat
and display incorrect opcode encodings as invalid opcodes.
2007-10-27Since ipis are not synchronous, make sure that ci_fpproc is not NULL beforeMiod Vallat
invoking savefpstate in ipi_save_fpstate. ok kettenis@
2007-10-27Don't do unecessary work in cpu_switchto().Mark Kettenis
2007-10-27work around a chip bug on the ati ixp600 ahci controller. diff mostly fromDavid Gwynne
niklas@ and tested on hardware generously provided by paul de weird.
2007-10-27fix: when a block is captured audio_rint() is called, we mustAlexandre Ratchov
consider that the ring buffer has overrrun if (used >= usedhigh) and not if (used >= usedhigh + blksize), otherwise recording doesn't work when large enough blocks are used ok jakemsr@
2007-10-27the arc fimware can be configured with a password that is used toDavid Gwynne
restrict changes to its configuration. in our case we want to be able to disable or enable the alarm. if a password is set though, the firmware will reject that request with a PASSWORD_REQUIRED response code. this change lets the kernel return EPERM instead of EIO in that case. if you dont have a password set on the firmware you can configure the alarm just fine. makes sense claudio@
2007-10-26Phillips -> Philips in commentsMartin Reindl
2007-10-26Add emulated mono support.Deanna Phillips
Tested ajacoutot, ok jakemsr
2007-10-25Fix probability rules w/ numbers (e.g probability 0.4).Marco Pfatschbacher
Add support for probablities of 0% and 100%. With and OK deraadt@
2007-10-25Don't forget the channel number; makes sure we don't always read channel 0Mark Kettenis
(and actually get reasonable values for the MB0 and MB1 sensors on the E250).
2007-10-25Remove some coded that has been #ifdef'ed out for quite a while now.Mark Kettenis
2007-10-25allocate 1 byte extra in getprop(), for the NUL that some callers likeTheo de Raadt
to place. This is a nightmare, and we must move away from these stupid wrapper APIs. ok kettenis
2007-10-25sc->sc_pr.usedlow must be multiple of the block size, fixAlexandre Ratchov
audio_calcwater() to do so ok jakemsr@
2007-10-25return POLLOUT as long as (lowat + 1) isn't reached. without this audio(4)Alexandre Ratchov
is unusable with lowat = 1 ok jakemsr@
2007-10-25Be sure to enable interrupts on return from ddb if they were enabled beforeMiod Vallat
the break.
2007-10-25Factor out common code to update the timedelta sensor intoMarc Balmer
mbg_update_sensor().
2007-10-25another case of product encoding is "Sun (TM) modelname", on the E250Theo de Raadt
2007-10-25expand range where we search for sensorsTheo de Raadt
2007-10-24Rely on 16 byte pcb alignment, and use double loads and stores duringMiod Vallat
context switches. Should have been commited ages ago (when pcb alignment was fixed). No functional change.
2007-10-24Remove sir_lock, superseded by the atomic bit operations.Miod Vallat
2007-10-24Turn curcpu() into an inline function instead of a macro relying on a GCCMiod Vallat
extension.
2007-10-24remove the unused i2cbus_attach_args param from the probe functions; ok deraadtConstantine A. Murenin
2007-10-24Enable power supply temperature sensors on the E450.Mark Kettenis
2007-10-24Add support for power supply temperature sensors on the E450.Mark Kettenis
2007-10-24make older gcc happierTheo de Raadt
2007-10-24pipleine -> pipelineMiod Vallat
2007-10-24In cpu_switchto(), load pmap->pm_tlbpid manually, instead of expectingMiod Vallat
pmap_update() to return with this value in v0. A void function. Bwahahaha.
2007-10-24fix r1.101 (2007-10-07) regression of not calling the iic_dump() for aConstantine A. Murenin
successfully identified sensor chip that was not claimed by any driver; whilst at it, get rid of the 'if defined' madness ok deraadt
2007-10-24Uncomment PECI mode diagnosting bits.Mike Belopuhov
ok deraadt
2007-10-24skip the ignored addresses completely (now covers the eeprom range, too); ↵Constantine A. Murenin
ok deraadt
2007-10-24Remove idle loop counter.Mike Belopuhov
ok art deraadt