summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2009-12-07Fix a spacing nit, and replace a magic number with ETHER_ADDR_LEN.Stuart Henderson
From Brad.
2009-12-07get rid of the return codes from command submission, ata_cmd handlersDavid Gwynne
now return void. all state about a command is now represented within the ata_xfer structure, and all layers using it (both hba and atascsi) now check only ata_xfer. this relies on my scsi midlayer changes. it was written just before the second last backout of the midlayer.
2009-12-03Use 16-bit writes instead of 8-bit writes for writing theJasper Lievisse Adriaanse
station address with the ST1023 chipset. This resolves the problem which resulted in the hack of putting the interface into promiscuous mode all the time with the ST1023 chipset. from brad, tested by me on the ST1023. ok sthen@
2009-12-03use a define rather than magic number, spotted by BradDariusz Swiderski
ok by claudio@
2009-12-02Zap trailing whitespace. From Brad.Stuart Henderson
2009-12-01regenJasper Lievisse Adriaanse
2009-12-01- add a whole bunch of more devices from dmesgsJasper Lievisse Adriaanse
- fix a typo
2009-12-01- regenJasper Lievisse Adriaanse
2009-12-01- some more id's from dmesgsJasper Lievisse Adriaanse
2009-12-01Change type of dva to u_int64_t to make mpii(4) compile on i386.Alexander Bluhm
ok marco@
2009-11-30Re-initialise the interface upon resume.Mark Kettenis
ok deraadt@, pirofti@, claudio@
2009-11-30regenJasper Lievisse Adriaanse
2009-11-30- add two devices found in dmesgsJasper Lievisse Adriaanse
2009-11-29Merge in some tidying up bits from gem(4). From Brad.Mark Kettenis
2009-11-28Fix previous; pointed out by stsp@Mark Kettenis
2009-11-28Make sure we pass on DVACT_SUSPEND and DVACT_RESUME requests to our childrenMark Kettenis
such that inteldrm(4) stands a chance at actually saving and restoring its state. Makes it possible to start X after a suspend/resume cycle on my Dell laptop with Intel graphics. ok jsg@, miod@
2009-11-26Fix an issue where 82573L based em(4) devices had long latencies on theDariusz Swiderski
recieved packets. fix from intel drivers, via Brad ok claudio@, deraadt@
2009-11-26em_stop() removes IFF_RUNNING flag, so we should rely on the IFF_UP being setDariusz Swiderski
ok deraadt@
2009-11-26unbrak previousDariusz Swiderski
ok deraadt@
2009-11-26handle DV_SUSPEND and DV_RESUMEDariusz Swiderski
tested by deraadt@ and me ok deraadt@
2009-11-26Only re-initialise interfaces on suspend if they were IFF_RUNNING.Mark Kettenis
ok deraadt@, claudio@
2009-11-25fix default phy_addr makes 82545 work againDariusz Swiderski
ok claudio@
2009-11-25oopsy. don't fuck the offset when we wrap the ring with NOOPs.Owain Ainsworth
fixes the lockups for claudio.
2009-11-25Add support for em(4) interfaces found on intel EP80579 SoC. The MAC part isDariusz Swiderski
basicly 82545, but the PHY's are separated form the chip and they are accessed through a special PCI device called GCU which has the MDIO interface. Since there is no direct relationship between MAC and PHY, so for the moment they are assigned to each other the way its done on Axiomtek NA-200, that was danted to us by them. This also adds a device driver for the GCU. tested by me on Axiomtek board reviewed by claudio@, kettenis@, deraadt@ 'commit that as is' deraadt@
2009-11-25Just some minor cleanup. OK deraadt@Claudio Jeker
2009-11-25Consider any tx buffer that is freed in vr_stop() to be an unsentTheo de Raadt
packet, ie. an output error. This way, we'll be able to see if the seized interfaces had tx packets queued. ok claudio
2009-11-25Re-enable the debug messages from bus errors and tx underruns so thatTheo de Raadt
we can dianose if those ever happen. ok claudio
2009-11-25Do not call vr_stop() and vr_reset() before calling vr_init(), becauseTheo de Raadt
the latter does that itself. ok claudio
2009-11-24Add event framework.Marco Peereboom
Map IR volumes & disks at discovery time in predictable manner. From James Giannoules
2009-11-24Reset the chip an re-initialise the interface after reset. Resetting theMark Kettenis
PHY doesn't seem to be necessary on re(4) so don't descend further for now. Based on a diff from mlarkin@ ok deraadt@
2009-11-24Thoroughly reset the chip upon suspend and give the PHY a chance toMark Kettenis
re-initialise itself afterward. ok deraadt@, mlarkin@, claudio@, pirofti@
2009-11-24for MCLGETI to work correctly drivers need to first dequeue all availableClaudio Jeker
packets and then refill the RX ring. When not done this way the rx ring can not grow correctly. Tested by jmc@, OK deraadt@, kettenis@
2009-11-24msk_newbuf() had an off by one when putting the packet onto the clusterClaudio Jeker
and cleared the mbuf pointer of the next element, causing a mbuf leak. While there also ensure that the valid bit of the first buffer is only set when the full chain got assembled. Tested by jmc@, ok kettenis@
2009-11-24implement suspend and resumeJacob Meuser
2009-11-24Bring multicast/promisc handling in line with other network drives.Joel Sing
From Brad.
2009-11-24Save state on suspend and restore that state and the bridge windows on resumeMark Kettenis
such that devices behind bridges get a chance to work after resume. ok deraadt@, mlarkin@
2009-11-23Make vge(4) detachable.Mark Kettenis
ok jsg@, deraadt@
2009-11-23some whitespace cleanups.Owain Ainsworth
there's more in here that needs doing though.
2009-11-23move the lastclose function into i915_drv.c where it belongs.Owain Ainsworth
kill some more dead protos while i'm touching the lines around them anyway.
2009-11-23must return result of config_activate_childrenTheo de Raadt
2009-11-23pci should return the result of it's children's suspend/resume calls backMike Larkin
to its parent. handle suspend failure case and unwind if devices have an activate function that returns failure. ok deraadt@, kettenis@
2009-11-23Add azalia(4) suspend/resume stabs, now some laptops can go all the way.Paul Irofti
Okay deraadt@.
2009-11-23Pad the ringbuffer with NOOPs before wrapping around, instead ofOwain Ainsworth
wrapping our commands over. The documentation says that wrap must not happen in the middle of commands. and upstream have seen some odd bugs that may be attributed to this. Based on a diff by Chris Wilson (ickle) from Intel to the linux driver.
2009-11-23remove a debug printf that won't compile anymore.Owain Ainsworth
2009-11-23G4X chipsets actually have a slightly larger vblank counter register,Owain Ainsworth
so tell the vblank layer this. from upstream, ages ago.
2009-11-23Make it so that instead of grabbing and ungrabbing the spinlock one line apart,Owain Ainsworth
we just grab it once and drop it when we're done. will reduce spl/splx wrangling. While here, clean it up a little bit.
2009-11-23nuke some prototypes from functions that died a fair while ago.Owain Ainsworth
2009-11-23Suspend/resume goop for inteldrm, essentially a big pile of save/restoreOwain Ainsworth
registers (man these things have a lot of state!). ok pirofti@ (who did the activate function and tested).
2009-11-23Later on this will do much more work on suspend/resume, but for nowTheo de Raadt
it must call it's children. ok kettenis
2009-11-23Walk our children in the activate function.Theo de Raadt
ok mlarkin pirofti