summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2010-08-08suspend/resume support for auich, and some infrastructure in ac97Jacob Meuser
"commit" deraadt
2010-08-08Try to save the vga hardware state around suspend, and also redisplay theMiod Vallat
textmode video memory contents if we had to POST the vga bios. ok deraadt@ kettenis@
2010-08-08activate function for suspend/restore; from mglockerTheo de Raadt
2010-08-08Try and improve legacy controller emulation heuristics; if we think we shouldMiod Vallat
not attach pckbd but pms attaches, then we are on real hardware, and should attach pckbd anyway. No known regression on legacy free systems; makes the few machines which required device flags changes in UKC work out of the box again. ok deraadt@
2010-08-07Revert 1.123. Hangs RTL8168C/8111C (0x3c00) afterChristian Weisgerber
ifconfig re0 up ifconfig re0 down dhclient re0 ok krw@, deraadt@
2010-08-07Unmap registers upon detach. Avoid panics when detaching a partially attachedMark Kettenis
device. Found out the hard way by hotplugging an unsupported "Soft-Mac" device. ok deraadt@
2010-08-07Add resume support for serial consoles.Mark Kettenis
Tested by sthen@, ok deraadt@
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-06Initial stab at making com@puc suspend and resume properly. Works fineMark Kettenis
for using cu(1) between two OpenBSD machines. Probably doesn't work for serial consoles but we don't support those on puc(4) anyway. ok deraadt@
2010-08-06ca_activate for suspend/resume; tested by andrew@afresh1.comTheo de Raadt
2010-08-06ACPI suspend/resume for bwi(4). Initial diff from todd@, finished andMarcus Glocker
tested by me on X40 with a BCM4306. OK deraadt@
2010-08-06ca_activate function for suspend/resumeTheo de Raadt
tested by mlarkin
2010-08-06Every time you ignore uiomove() return value, $DEITY kills a littleMiod Vallat
$ADORABLE_FELINE. ok deraadt@ matthew@
2010-08-05Suspend/resume support for sili(4). Not perfect yet, but prevents us fromMark Kettenis
getting stuck. Based on an initial diff from deraadt@.
2010-08-05Change the management of commands in the active commands TAILQ to let issuersMiod Vallat
of synchronous commands perform the TAILQ_REMOVE of the command themselves, instead of relying upon this being done for us if tsleep() returns zero. Since we momentarily set `cold' again around suspend, tsleep() becomes a no-op, which broke this assumption, and in turn caused TAILQ corruption, with items being put on the freelist while still on the active list. Found the hard way by ray@ playing with wsmoused after resume.
2010-08-05ca_activate function for suspend/resume; tested by mlarkin on aTheo de Raadt
Davicom DM9102. (bit of noise on suspend or resume, but that can be dealt with later)
2010-08-04on resume: calling sc_power after ath_init() is silly. ath_init()Theo de Raadt
gets down to there through ath_init() -> ath_enable() -> ... from a discussion with damien
2010-08-04add suspend/resume support for PCI ral(4) devices.Damien Bergamini
ok deraadt@, sthen@ tested by matthew@ (RT2560), dcoppa@ (RT2790), okan@ (RT2860), todd@ (RT2560)
2010-08-02Make MHZ_TO_PLL safer to use by adding parenthesis. Fixes a potential issueMark Kettenis
in agten(4) uncovered by gcc4. ok miod@, deraadt@
2010-08-02There is no reason to call the start function upon resume; the network stackMark Kettenis
is perfectly capable to get things going again all by itself. ok damien@, deraadt@
2010-08-01Change COM_IBUFSIZE 8K to 16K because 8K is not enough for CDMA1X cardYASUOKA Masahiko
by KDDI.
2010-08-01Read status register after all writes to the pcf8584 controller. AlegedlyMark Kettenis
this is what (Open)Solaris does and it makes the i2c controller on the blade2.5k work. From NetBSD. Tested by sthen@, ok deraadt@
2010-07-31remove the ``midisyn'' framework and anything using it, i.e., the oplAlexandre Ratchov
device and the midi interface to pcppi.
2010-07-27Make sure we stop DMA before we suspend. Remove unused argument to re_stop()Mark Kettenis
to avoid the dilemma what meaningless value to pass. ok deraadt@
2010-07-23Manuel Bouyer rescinded clauses 3 and 4 of his license text.Jonathan Gray
2010-07-22ansi. no binary changeJonathan Gray
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-22When suspending, only call athn_stop() when IFF_RUNNING is set.Mark Kettenis
ok damien@
2010-07-22SCSI HBA drivers are supposed to get their SCSI CDBs from xs->cmd, notMatthew Dempsky
xs->cmdstore. ok krw@ a while back (contingent upon testing), and deraadt@ says this has been in snapshots for weeks now.
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-21Add suspend/unsuspend logic.Mark Kettenis
ok damien@, deraadt@
2010-07-20Use an SLIST rather than a TAILQ for the ccb free list.Michael Knudsen
ok krw
2010-07-20Make this compile again (was broken in rev 1.24 as far as I can tell),Michael Knudsen
even though we don't actually compile it in any configurations. ok krw
2010-07-19store the WCID in the rt2860_node structure at association timeDamien Bergamini
and use this later instead of converting ni_associd into WCID each time we need it.
2010-07-19implement the ic_ampdu_rx_{start,stop} callbacks (not used yet).Damien Bergamini
2010-07-19in hostap mode, when a STA leaves the BSS, clear its entry in theDamien Bergamini
hardware RX WCID search table. otherwise, if the same STA reassociates later with a different id, we would have two entries for the same MAC in the table, leading to problems with key lookups etc... big thanks to Nathanael Rensen who found the issue.
2010-07-15According to Linux ath9k, the AR9280 1.0 was never sold.Damien Bergamini
Since this is the only chip revision that requires split TKIP MIC keys, remove code that deal with that.
2010-07-15remove dead code (AR9286 1.1 does not really exist.)Damien Bergamini
2010-07-15sync ar5008_bb_load_noisefloor() with ar9003_bb_load_noisefloor().Damien Bergamini
we must not restore the noisefloor values if load failed on AR5008 family too.
2010-07-15fix PDADC value for target index (AR5008 family only.)Damien Bergamini
2010-07-15On AR9285, the antCtrlCommon ROM field may have the upper 16 bits set.Damien Bergamini
Remove an incorrect mask to fix antenna diversity on some chips.
2010-07-15sync initialization values for AR9160 and AR9280 with ath9k.Damien Bergamini
see http://marc.info/?l=linux-wireless&m=127802223525594&w=2 for the list of changes/fixes.
2010-07-15Remove initialization values for chips that never made it into production:Damien Bergamini
- AR9280 1.0 - AR9285 1.0 and 1.1 - AR9287 1.0 Remove checks that are now useless since we know we will never see those chips, and rename some functions.
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-14Newer 8168x and 810x chipsets have a different way of stopping the chipset.Christian Weisgerber
From FreeBSD via Brad.
2010-07-10Reduce the delays a bit in the miibus read/write routines.Christian Weisgerber
Although with aditional 20us delays added just before returning from miibus read/writes as required by the hardware. Based on the Linux r8169 driver; from Brad.
2010-07-07set each disks openings to the maximum number the controller can handle.David Gwynne
iopools make sure resources arent overallocated, while scheduling them evenly between devices. tested by and ok jsg@
2010-07-06siop sets XS_NO_CCB when it fails to allocate device state when commandsDavid Gwynne
are first sent to target/lun, as opposed to failing to allocate a ccb (which ive already fixed). this moves the allocation and freeing of this device state in siop into the scsi_probe and scsi_free handlers. if siop cant allocate memory for a device when the midlayer is about to probe it, we dont send commands to it. if the midlayer fails to find a device at that target/lun, it asks siop to free it. simplifies the io path and avoids work during interrupts. ok deraadt@ reads good to both marco@ and krw@
2010-07-06if we get an event notification that requires acknowledgement whileDavid Gwynne
we're busy, we might not be able to allocate a ccb via scsi_ioh_get if the pool is empty. this means we wont ack the event, which in turn means we wont receive further event notifications. this cuts the event ack code over to using a scsi_iohandler. the eventack iohandler will be called as soon as a ccb becomes available for it to use. this guarantees reliable event handling and acknowledgement, despite how busy the controller might be. this has bugging me ever since i wrote the event handling code. tested by hotplugging sata disks.
2010-07-06move the last direct users of mpi_{get,put}_ccb over to using the scsiDavid Gwynne
ioh wrappers.