summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2009-07-28Garbage-collect softc member stge_if_flags, unused since if_stge.c r1.46.Stuart Henderson
From Brad.
2009-07-28- Don't access VPD even if hardware advertised the capability.Kevin Lo
It seems that some revisions of the controllers hang while accessing the VPD. Because VPD access routine is now unused, nuke it. - Let TWSI reload EEPROM if VPD capability is detected. Reloading the EEPROM will also set the Ethernet address, so age(4) now reads AGE_PAR0 and AGE_PAR1 register to get the Ethernet address. This removes removes a lot of hacks and enhance readability a lot. - Double PHY reset timeout as it takes more time to take the PHY out of power-saving state. - Explicitly check power-saving state by checking undocumented PHY registers. If link is not up, poke undocumented registers to take PHY out of power-saving state. This is the same thing done by the Linux driver. - Don't rely on auto-clearing feature of master reset bit, just wait 1ms and check idle status of MAC. From FreeBSD via Brad.
2009-07-28Replace "XXX ? from linux" with a descriptive comment. From Brad.Stuart Henderson
2009-07-28The firmware is an array of u_int32_t and differs between architectures.Claudio Jeker
From now on install the tigon firmware in little endian byte order and swap it acordingly in the driver. Correctly calculate the length of the FW in the build tool -- now my fiber cards no longer have issues to establish link on bootup. Please put this in deraadt@ On big endian archs (sparc64, macppc) the firmware file needs to be updated.
2009-07-28print the chipset name in the dmesg so it is possible to tellKevin Lo
whether this is an L1E or L2E chipset. From Brad
2009-07-28Add flow control supportKevin Lo
From Brad
2009-07-27Split comment from lint keyword. OK dms@Claudio Jeker
2009-07-26Make sure all platforms understand the flags argument of bus_space_map() andMiod Vallat
bus_space_alloc() as a bitmask of flags, and not a boolean controlling cacheability; and make sure the three MI BUS_SPACE_MAP_xxx values documented in the manual page are defined on all platforms as well.
2009-07-26Add PCIOCGETROM, and ioctl(2) to read PCI ROMs.Mark Kettenis
ok miod@, marco@
2009-07-26Fix flow control support:Mark Kettenis
- un-PAUSE when the rx FIFO gets below 3056 as is done on FreeBSD and Linux. - properly update the MAC according to the negotiated flow control. From Brad.
2009-07-25Better parameter validation in pciioctl(): check for ioctl number andMiod Vallat
access rights before attempting to access the data pointer as a pciio structure. ok jsg@ kettenis@
2009-07-25Stop using rbus to set up the socket BAR if it has been left unitializedMark Kettenis
by the firmware; our PCI code takes care of this now. Also eliminate support for I/O socket BARs. There is no evidence they actually exist. Clean up some unused structure members while there. ok miod@
2009-07-24silent VIA VT6202 workaround; from bradTheo de Raadt
2009-07-23another lava puc that might show upTheo de Raadt
2009-07-23VIA VT6202 defaults to a bus-hoggingly aggressive sleep time, so retune itTheo de Raadt
to a more reasonable default. speeds up the armish machines in particular (perhaps because their pci bus is so slow), and has no downside when tested on other machines. from linux originally, via brad, ok drahn
2009-07-23Use pci_mapreg_map() to map ROM.Mark Kettenis
2009-07-23Use pci_mapreg_map() to map ROM.Mark Kettenis
2009-07-23Avoid twiddling the lower bits of a BAR such that the code becomes usableMark Kettenis
for mapping ROM BARs.
2009-07-22Add big-endian platform support to sis(4). Tested to not break anything onMiod Vallat
sokeris by mk@, and to work on sparc64 by brad@ and on sgi by yours truly.
2009-07-21Use the symbolic constants for the window registers in pci configurationMiod Vallat
space in pccbb_winset(), instead of their bare values. Saves time for grep users. While there, a few grammar and typo fixes in comments.
2009-07-21Rewrite ioctl parts and rx filter handling. From Brad, tested byStuart Henderson
myself and jasper@.
2009-07-21Add a family flag for the original 5700 series chipsets. Idea from FreeBSD.Christian Weisgerber
But also use the flag where it makes sense. From Brad; ok sthen@
2009-07-20Pass a pci_chipset_tag_t to pci_intr_line(), to eventually allow theMiod Vallat
logic to be chipset dependent; no functional change yet. ok kettenis@
2009-07-18Don't forget to read the high bits I/O range register when registeringMiod Vallat
ppb resources in the parent extent. ok kettenis@
2009-07-15regenMark Kettenis
2009-07-15Add VMware virtual PCIE bridge (and adjust the virtual PCI bridge define forMark Kettenis
consistency).
2009-07-14Kill structs and ioctls that were never implemented.Mark Kettenis
ok oga@, miod@, deraadt@
2009-07-11timeout_add -> timeout_add_msecBret Lambert
Been running this on my laptop for a while now with no apparent ill effects. originally from a longer list from grange@ ok krw@ as part of that list
2009-07-10syncStuart Henderson
2009-07-10add a couple of NVIDIA MCP77 PCI-ISA bridges, from Brad.Stuart Henderson
2009-07-10rework link state handling a bit. this reports missing link correctly. theDavid Gwynne
old code showed the nic as active all the time, which makes it suck as part of a trunk. testing and ok by reyk@
2009-07-10timeout_add -> timeout_add_msecBret Lambert
ok damien@
2009-07-09regenJonathan Gray
2009-07-09Intel 55[02]0 and Matrox G200eWJonathan Gray
2009-07-08revert MCLGETI for sk(4) for now. commit requested by deraadt@Stuart Henderson
2009-07-03fix mac address for dual-port 8257[56] cards; ok claudio, kettenis, deraadtMarkus Friedl
2009-07-03fix a typo; from bradTheo de Raadt
2009-07-03this is a rather large change to add support for the BCM5709.David Gwynne
the 5709s use a the b09 firmwares, which is different to the b06 used by all the other chips supported by bnx. the majority of the diff comes from special handling for some indirect reads and writes, and because it needs more host memory to operate with. ive tried to keep the cosmetic changes to a minimum. "go for it" deraadt@
2009-07-03newer bnx chips use a separate firmware to the "old" ones. this updatesDavid Gwynne
the b06 firmware for the older chips, and adds the b09 firmware. there are three variants of the rv2p code thats loaded onto the chips, so this has been split out into separate firmware files as well. the driver has been updated to handle the split firmwares, and to easily allow loading of the different versions. this change only supports the loading of the firmwares for the currently supported chips. after this change you must build the new firmwares and install them as well as your new kernel. "go to it" deraadt@
2009-06-29Whack bridges that have conflicting windows. This prevents us from choosingMark Kettenis
address space that is already in use when reassigning BARs.
2009-06-29the data which is read is never used; ok krwTheo de Raadt
2009-06-29since we link in the 24xx firmware, might as well point to it; ok krw kettenisTheo de Raadt
2009-06-29Bring back rev 1.17, enable hardware vlan tagging/stripping.Jonathan Gray
ok deraadt@
2009-06-28Now the tx dma mapping problem it was exposing is fixedJonathan Gray
bring back rev 1.16, em style MCLGETI based on a diff from reyk with critical fixes by me.
2009-06-28Properly swap tx dma maps so we don't use invalid maps,Jonathan Gray
leak memory, lose maps or cause double frees. Problem courtesy of our good friends at Intel in the original FreeBSD driver. "awesome" dlg@
2009-06-28Restore lost string constant, make DEBUG kernels compile.Kenneth R Westerback
Noticed by deraadt@.
2009-06-26Two pci'd that come from cardbus, in case anyone ever needs them...Theo de Raadt
ok jsg
2009-06-26Add all the cardbus com devices to puc, since these can show up on theTheo de Raadt
pci bus because of the expresscard adaptors... Lacking a better mechanism, also remind people to keep those lists syncronised.
2009-06-26Using information gleamed from the FreeBSD driver, change the MAC addressTheo de Raadt
reading to use the eeprom instead of CIS, and then the Xircom Cardbus cards can work in the expresscard adaptor, as pci devices. ok jsg
2009-06-26Support the ICH10 variants of em(4). All the work done by Dariusz SwiderskiClaudio Jeker
with help from Brad. OK deraadt@