summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_bge.c
AgeCommit message (Collapse)Author
2006-10-28M_TRAILINGSPACE(m) returns 0 if M_READONLY(m) is true,Brad Smith
so no need to call both. From tsutsui@NetBSD
2006-10-26Fix this by commiting the proper revision of the bge_encap() diff.Brad Smith
2006-10-26bge_encap():Brad Smith
- Move TX ring full sanity check further up and check the number of DMA segments from the DMA map, instead of counting the DMA segments in the for loop and breaking out later. - Unload the DMA map if encountering an error condition. Tested by brad@ sturm@ wilfried@
2006-10-25replace a few more instances of hand rolled code with theBrad Smith
LIST_FOREACH macro.
2006-10-22recognize the BCM5715 A3 chipset.Brad Smith
2006-10-17disable the firmware fastboot feature on 5752/5755 and 5787 ASICs,Brad Smith
eliminates firmware timeouts. Tested by pedro la peu <pedro at am-gen dot org> with a 5752 ASIC and Benjamin Black <ben at layer8 dot net> with a 5787 ASIC.
2006-10-15recognize the BCM5787 A2 chipset.Brad Smith
2006-10-10revert the firmware synchronization change in rev 1.178, this is the causeBrad Smith
of the first port of a dual port MAC to not work.
2006-10-09The mickey (/brad) jumbo allocation avoidance patch triggers the sameTheo de Raadt
ami bug "on a particular machine" as the uvm anon change that needed to be backed out on jul 13. at least now you are getting close to knowing whether this is a uvm bug or an ami bug or somewhere else; something starves or cuts memory up badly enough to cause a big problem.
2006-10-07add a no Ethernet@Wirespeed flag.Brad Smith
2006-10-07add and set PHY workaround flags depending on the ASIC revisionBrad Smith
or chip id.
2006-10-01pack several boolean fields into the existing bge_flags field.Brad Smith
2006-10-01add the PCI ids for the BCM5722, BCM5756, BCM5906 and BCM5906M chipsets.Brad Smith
the BCM5906/BCM5906M ids are not enabled for now; these chips are quite a bit different from the others and are currently unsupported.
2006-09-26update the comment for bge_chipinit().Brad Smith
2006-09-26do not alloc jumbo buffers (3.5m per iface) and also do not allow card to ↵Michael Shalayeff
receive large frames until mtu is set to higher value (later piece from brad); brad@ ok
2006-09-17add a flag to indicate which boards are only capable of 10/100 modes ofBrad Smith
operation.
2006-09-17Readd the Dell PHY LED setup workaround and the Jumbo capability flag.Brad Smith
2006-09-17- correct the firmware synchronization in bge_reset(), thisBrad Smith
eliminates firmware timeouts for the BCM5752 as the hw firmware was coming up too fast for the driver. - remove the redundant firmware check in bge_chipinit(). Tested by pedro la peu <pedro at am-gen dot org> on an IBM ThinksPpad Z61m with a BCM5752, as well as the 5700/5703/5704 and 5750. The initial diff for bge_reset() and other information from David Christensen <davidch at broadcom dot com>.
2006-09-17defer establishing the interrupt until later during attach, to let theBrad Smith
driver finish initializing. fixes a panic in bge_intr() upon bootup on some systems running non-MP kernels. Issue reported/fix tested by jolan@, also mentioned in PR 5114 though the issue is intermisttent on the IBM e326m.
2006-09-16Get subvendor from the PROM instead of the PCI configuration space, since theMark Kettenis
latter gets reset if you netboot from an interface. ok miod@, brad@, deraadt@
2006-08-30Try to read station address from the chip first, then try the EEPROM (if weMark Kettenis
think it is there). On sparc64 try to read the local-mac-address property from Open Firmware and as a last resort use the idprom property. Hopefully fixes reading the station address on the Blade 1500. ok deraadt@
2006-08-29Add support for onboard bge(4)'s on Sun UltraSPARC hardware that apparentlyMark Kettenis
come without an attached SEEPROM. ok deraadt@
2006-08-28Get MAC address from the OpenFirmware local-mac-address property on sparc64.Mark Kettenis
Needed to support onboard bge(4)'s on Sun machines which don't seem to be fitted with the EEPROM that normally contains the MAC address. ok brad@
2006-08-28revert flags usage commits. too close to release. will go in post release ↵Brad Smith
instead. requested by deraadt@
2006-08-28add a BGE_JUMBO flag.Brad Smith
2006-08-28Set the BGE_NO3LED flag to properly adjust the PHY LED mode if attachingBrad Smith
to either a BCM5700 or BCM5701 chip and have the Dell PCI vendor subid. The appropriate code has been in brgphy for 2 years, now the bge(4) driver will use it. Also found in the Broadcom bcm5700 and Linux tg3 drivers.
2006-08-27it works a little better like this.Brad Smith
2006-08-27pack several boolean fields into the existing bge_flags field.Brad Smith
2006-08-04move the promiscuous mode handling code into bge_setpromisc() and simplifyBrad Smith
the interface flags ioctl handler.
2006-07-01recognize the 5750 C2.Brad Smith
2006-06-29do not return from the reset function if there was a timeoutBrad Smith
with the firmware.
2006-06-27don't set BGE_DEBUG by default, reduces the bloat a bit. noticed by deraadt.Brad Smith
no one noticed this has been here since rev 1.1.
2006-06-27Disable Jumbos on the 5714 family of chips for now. The bge driver assumesBrad Smith
that all chips which have Jumbo capability have a separate Jumbo receive ring. It seems as if the 5714 family has done away with the separate receive ring, according to the Linux driver.
2006-06-22recognize the BCM5703 B0.Brad Smith
2006-06-21remove some unused code.Brad Smith
ok reyk@
2006-06-21add the BCM5786 PCI id.Brad Smith
From the Linux tg3 driver.
2006-06-20have bge_start() check for an empty send queue instead.Brad Smith
2006-06-20- check for revision B2 intead of B1 in one more spot.Brad Smith
- fix no link check in bge_start().
2006-06-20add the BCM5755 and BCM5787 ASICs to the appropriate macros.Brad Smith
2006-06-19add the new ASIC revs to the bge_majorrevs table.Brad Smith
2006-06-19add new PCI ids.Brad Smith
2006-06-17add sys/timeout.hBrad Smith
2006-06-15make these tables look a little bit nicer.Brad Smith
2006-06-11the link state detection code should be checking for revision B2 insteadBrad Smith
of B1 to account for the differences with the revision defines used in OpenBSD's if_bgereg.h vs FreeBSD's.
2006-06-02Deja-vu - again I make bge stop claiming all interrupts for it's own.Bob Beck
This appears to have been due to driver changes and the fact that the status word seems to not be cleared. linux may have the same bug. freebsd does clear the status word with and atomic read and clear ops. we instead do best effort here to check for the interrupt being ours by reading the status from the status block to a local copy, then clearing the status word once we enter the interrupt handler and using the local copy for checking link status ok jason@
2006-05-31xcs -> xscBrad Smith
2006-05-28- remove ETHER_MAX_LEN_JUMBO and ETHERMTU_JUMBO.Brad Smith
- use if_hardmtu for MTU ioctl handlers. ok reyk@
2006-05-28unknown ioctl is ENOTTY not EINVALJason Wright
2006-05-27remove IFCAP_JUMBO_MTU interface capabilities flag and set if_hardmtu in a fewBrad Smith
more drivers. ok reyk@
2006-05-20remove commented out and unused capabilities flags.Brad Smith