summaryrefslogtreecommitdiff
path: root/sys/dev/isa
AgeCommit message (Collapse)Author
2010-08-27Mutilate the powerhook function into an activate function, then createTheo de Raadt
a stub powerhook function to call it.
2010-08-20fix an annoying indentation glitchTheo de Raadt
2010-08-07No "\n" needed at the end of panic() strings.Kenneth R Westerback
Bogus chunks pointed out by matthew@ and miod@. No cookies for marco@ and jasper@. ok deraadt@ miod@ matthew@ jasper@ macro@
2010-08-06com@isa suspend and resume; logic cloned from ../puc/com_puc.cTheo de Raadt
ok kettenis
2010-07-31Factorization of the bluetooth and usb hid input driver logic, to reduce codeMiod Vallat
duplication and divergence. Thanks to mlarkin@ for bluetooth devices tests.
2010-07-31add SA3_XXX macros removed by mistake with opl, but used by ym mixerAlexandre Ratchov
from mk@
2010-07-31unbreak ym.c, opl3sa3reg.h doesn't exist any longerAlexandre Ratchov
noticed by mk@
2010-07-31remove the ``midisyn'' framework and anything using it, i.e., the oplAlexandre Ratchov
device and the midi interface to pcppi.
2010-07-31fix typo preventing compilation with AUDIO_DEBUGAlexandre Ratchov
2010-07-24missed a couple indents in previousJacob Meuser
2010-07-23ANSI/style(9), no binary changeJacob Meuser
2010-07-22Reset the keyboard controller on resume, and also alert the childrenTheo de Raadt
(pckbd and pms) to do their part started by mlarkin, cleaned up by me ok miod
2010-07-21Disable the heuristics for legacy free systems if pckbc flags are set to 1Miod Vallat
in UKC; found the hard way by jakemsr@ on an old Tecra laptop.
2010-07-18Add support for Winbond/Nuvoton W83627DHG-P.Mark Kettenis
From Mitja Muzenic.
2010-07-15add two new members to structs audio_encoding and audio_prinfo.Jacob Meuser
for both structs, the new members are 'bps' and 'msb', which describe the number of bytes per sample and data alignment in the sample, respectively. drivers must properly set these fields in the 'query_encoding', 'set_parameters' and 'get_default_params' hardware interface methods. discussed with ratchov, deraadt
2010-07-08use config_activate_children to activate children that might need itTheo de Raadt
2010-07-02timeout_add -> timeout_add_msecBret Lambert
2010-07-02some very obvious uninit bugs found when I turned off -Wno-uninitializedTed Unangst
ok deraadt
2010-06-30timeout_add -> timeout_add_msecBret Lambert
ok jakemsr@, who promises to deal with any fallout, because he's a stand-up guy
2010-06-30* use audio(9)'s DMA trigger methods instead of the init/startJacob Meuser
methods. the AD1848 DMA engine runs continuously and doesn't need to be started/stopped or otherwise manipulated for each block. makes the driver a bit more efficient. * allow "Mode 2" capable chips such as the CS4231 to work in "Mode 1" when there is only one DMA channel, instead of forcing it into "Mode 2", which expects two DMA channels. allows recording to work for "Mode 2" capable devices when there is only one DMA channel. * service both playback and recording interrupts in full-duplex mode, instead of only playback interrupts. allows "Mode 2" capable chips to work in full-duplex mode. * fix checks for sample rate/format recalibration completion. gets rid of busy loops that briefly "hang" the kernel when the device is opened and/or reconfigured.
2010-06-28Remove all adapter-specific 'struct scsi_device's. They are never used. FirstKenneth R Westerback
step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@
2010-06-26Don't #include <sys/user.h> into files that don't need the stuffPhilip Guenthe
it defines. In some cases, this means pulling in uvm.h or pcb.h instead, but most of the inclusions were just noise. Tested on alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax, mostly by krw and naddy. ok krw@
2010-06-24- remove ISAPNP_FREE and ISAPNP_MALLOC macro's and just use them inline.Jasper Lievisse Adriaanse
ok thib@ deraadt@
2010-06-03take care of some half-baked CPU temperature readings seen in wildTheo de Raadt
from Mikko Tolmunen
2010-05-23move hp300 to -D__hp300__; ok miodTheo de Raadt
2010-05-20New scsi code seems to be stable. Pluck previously identifiedKenneth R Westerback
low-hanging splbio/splx pairs that are no longer needed and see if this reveals any hidden scsi flaws. ok dlg@
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisDavid Gwynne
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include <sys/dkio.h> to the places that actually want and use the disk ioctls. this became an issue when krw@'s X build failed when he was testing a change to dkio.h. tested by krw@ help from and ok miod@
2010-04-28s/i386/__i386__/, no binary change.Mark Kettenis
2010-04-23Recycle unused disklabel fields in order to create a disklabel uniqueJoel Sing
identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
2010-04-20for some systems we need to try harder; from Mikko TolmunenTheo de Raadt
2010-04-03instead of returning EINVAL if an unsupported sample rate wasJacob Meuser
requested, just use a supported sample rate. makes paramter negotiation much easier. problem noted and patch tested on several sb(4) devices by J.C Roberts, thanks.
2010-03-28put the iosize next to the register definitionsTheo de Raadt
2010-03-28Driver for microguru sensor microcontroller found on ABIT motherboards.Theo de Raadt
Driver written by Mikko Tolmunen <oskari@sefirosu.org>
2010-03-27aria(4) is an audio driver, but hasn't been compatible with audio(9)Jacob Meuser
for a long time (if ever?), so send it to the Attic. "with prejudice" miod@; GENERIC reminder from kettenis@
2010-03-23Change the scsi_cmd function member of scsi_adapter from int toKenneth R Westerback
void. Use XS_NO_CCB error in the scsi command (xs) to report the NO_CCB condition. Eliminates all SUCCESSFULLY_QUEUED and COMPLETE confusion and untangles the midlayer from the adapter a bit more. Eyes and some fixes by miod@ There may be some compile issues on little used (i.e. I don't have any) drivers but the change is mechanical and thus easy to remedy. ok dlg@
2010-02-16Use i2c_addr_t as the type for the init_xfer function because thisMichael Knudsen
is what the function pointer type uses. ok grange
2010-01-10A couple of missed ITSDONE setting before scsi_done().Kenneth R Westerback
seagate/trm/aha1742 were the only drivers paranoid enough to check ITSDONE on getting the xs to execute. And optimistic enough to think simply restting the flag would be a good thing. Have them chill out like everyone else, reducing ITSDONE noise some more.
2010-01-10Set ITSDONE in scsi_done() and zap trivial instances of setting itKenneth R Westerback
in the drivers just before calling scsi_done(). ok dlg@ beck@
2009-12-15Correct define.Federico G. Schwindt
From Simon Perreault <simon dot perreault at viagenie dot ca> via tech@
2009-12-04ansify.Jasper Lievisse Adriaanse
ok md5@
2009-11-22Bring last drivers fully into the NO_CCB world by replacingKenneth R Westerback
TRY_AGAIN_LATER uses with equivalent NO_CCB. Eliminates confusion between the two as was always intended. buf I/O's that can't be started get pushed back onto the front of the queue and retried. Others get sent back to originator as failures. No more epi-cycle looping inside the SCSI midlayer hoping the problem goes away. Various testers, no objection from miod@ as vs(4) was tested by nick@.
2009-10-31Make sure the descriptor is writable for some operations.Federico G. Schwindt
Pointed out and ok by miod@.
2009-10-13Connect pcppi bell to ukbd, so that x86 systems with usb console keyboardMiod Vallat
can cause beeps on console. Reported by Greg Jones on misc@
2009-09-24Make sure the scsi_xfer timeout always get initialized with timeout_set(),Miod Vallat
since the scsi_done() wrapper will timeout_del() unconditionnaly and the scsi midlayer no longer provides scsi_xfer with zeroed struct timeout. ok dlg@
2009-09-12Add DIOCSDINFO support to the three fd drivers. No change to existingKenneth R Westerback
behaviour.
2009-09-06Don't pass uninitialized stack memory to setdisklabel() as the 'old'Kenneth R Westerback
label. Use the existing label, since we now check and reuse some values in it. And that's what all other drivers do. Bonus: we don't need that label on the stack anymore. ok deraadt@
2009-09-05Change the wsdisplay_emulops return types from void to int; emulops will nowMiod Vallat
return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
2009-09-05scsi_done before COMPLETE.David Gwynne
2009-08-26directly calling Debugger() is bad. turn these printf();Debugger(); seriesJasper Lievisse Adriaanse
into panic()'s. ok deraadt@ jsing@
2009-08-24- fix format strings for values that are daddr64_tJasper Lievisse Adriaanse
ok otto@, agreed by deraadt@