aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/lge
Commit message (Collapse)AuthorAgeFilesLines
...
* Hide link up/down/media printfs behind bootverbosePoul-Henning Kamp2004-11-081-2/+3
| | | | Notes: svn path=/head/; revision=137402
* Since if_lge doesn't contain locking or run with INTR_MPSAFE, markRobert Watson2004-08-131-1/+2
| | | | | | | the interface as IFF_NEEDSGIANT so if_start is run holding Giant. Notes: svn path=/head/; revision=133691
* Remove the setting of the pci config variables on power state changes.Warner Losh2004-06-281-24/+0
| | | | | | | The bus does this now. Notes: svn path=/head/; revision=131255
* Replace handrolled CRC calculation with ether_crc32_[lb]e().Christian Weisgerber2004-06-091-28/+2
| | | | Notes: svn path=/head/; revision=130270
* Add missing <sys/module.h> includesPoul-Henning Kamp2004-05-301-0/+1
| | | | Notes: svn path=/head/; revision=129879
* We don't need to initialize if_output, ether_ifattach() does itMaxime Henrion2004-05-231-1/+0
| | | | | | | for us. Notes: svn path=/head/; revision=129616
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-3/+2
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Announce ethernet MAC addresss in ether_ifattach().Matthew N. Dodd2004-03-141-5/+0
| | | | Notes: svn path=/head/; revision=126966
* Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones.David E. O'Brien2003-12-081-6/+6
| | | | | | | Requested by: bde,imp Notes: svn path=/head/; revision=123289
* Remove duplicate FBSDID's, move others to their right place.David E. O'Brien2003-11-141-3/+0
| | | | Notes: svn path=/head/; revision=122678
* Try to create some sort of consistency in how the routings to find theDavid E. O'Brien2003-11-131-13/+10
| | | | | | | | | | multicast hash are written. There are still two distinct algorithms used, and there actually isn't any reason each driver should have its own copy of this function as they could all share one copy of it (if it grew an additional argument). Notes: svn path=/head/; revision=122625
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-311-2/+1
| | | | | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname) Notes: svn path=/head/; revision=121816
* Use __FBSDID().David E. O'Brien2003-08-241-0/+3
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Prefer new location of pci include files (which have only been in theWarner Losh2003-08-221-2/+2
| | | | | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD. Notes: svn path=/head/; revision=119291
* All current uses of pci_set_powerstate are bogus, at least in theory.Warner Losh2003-07-031-2/+2
| | | | | | | | | | | | | However, they are presently necessary due to bigger bogusness in the pci bus layer not doing the right thing on suspend/resume or on initial device probe. This is exactly the sort of thing that the BURN_BRIDGES option was invented for. Mark all of them as BURN_BRIDGES. As soon as I have the powerstate stuff properly integrated into the pci bus code, I intend to remove all these workarounds. Notes: svn path=/head/; revision=117198
* - Don't call pci_enable_io() in drivers (unless needed for resume).Matthew N. Dodd2003-04-161-18/+0
| | | | | | | | - Don't test memory/port status and emit an error message; the PCI bus code will do this now. Notes: svn path=/head/; revision=113545
* - Express hard dependencies on bus (pci, isa, pccard) andMatthew N. Dodd2003-04-151-1/+4
| | | | | | | | | | | network layer (ether). - Don't abuse module names to facilitate ifconfig module loading; such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.) Notes: svn path=/head/; revision=113506
* Use __FBSDID rather than rcsid[].David E. O'Brien2003-04-031-12/+3
| | | | Notes: svn path=/head/; revision=113038
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-1/+1
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-1/+1
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* network interface driver changes:Sam Leffler2002-11-142-16/+5
| | | | | | | | | | | | | | | | | o don't strip the Ethernet header from inbound packets; pass packets up the stack intact (required significant changes to some drivers) o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN) o track ether_ifattach/ether_ifdetach API changes o track bpf changes (use BPF_TAP and BPF_MTAP) o track vlan changes (ifnet capabilities, revised processing scheme, etc.) o use if_input to pass packets "up" o call ether_ioctl for default handling of ioctls Reviewed by: many Approved by: re Notes: svn path=/head/; revision=106937
* Be consistent about "static" functions: if the function is markedPoul-Henning Kamp2002-09-281-1/+1
| | | | | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512 Notes: svn path=/head/; revision=104094
* Cleanup after my de-__P (remove leading whitespace before prototype args).Alfred Perlstein2002-07-061-67/+96
| | | | | | | | | Add newlines after function return types in function declarations. Approved by: wpaul (a long time ago) Notes: svn path=/head/; revision=99498
* catch up with ext_free prototype change.Alfred Perlstein2002-06-291-2/+2
| | | | Notes: svn path=/head/; revision=99004
* Follow NetBSD and s/IFM_1000_TX/IFM_1000_T/Poul-Henning Kamp2002-04-281-2/+2
| | | | Notes: svn path=/head/; revision=95673
* Remove __P.Alfred Perlstein2002-03-201-35/+34
| | | | Notes: svn path=/head/; revision=92739
* Do not call mii_polltick() immediately after mii_tick().Jonathan Lemon2001-09-291-1/+0
| | | | | | | Poiinted out by: wpaul Notes: svn path=/head/; revision=84148
* Have the driver announce its rxcsum capabilities.Jonathan Lemon2001-09-181-0/+2
| | | | Notes: svn path=/head/; revision=83638
* Apply patch supplied by Jonathan Chen: use the correct arguments toBill Paul2001-07-091-2/+2
| | | | | | | | pci_enable_io(). We need to use SYS_RES_IOPORT/SYS_RES_MEMORY instead of PCIM_CMD_PORTEN/PCIM_CMD_MEMEN. Notes: svn path=/head/; revision=79472
* Change m_devget()'s outdated and unused `offset' argument to actually meanBosko Milekic2001-06-201-3/+2
| | | | | | | | | | | | | | | | | | | | | | | something: offset into the first mbuf of the target chain before copying the source data over. Make drivers using m_devget() with a first argument "data - ETHER_ALIGN" to use the offset argument to pass ETHER_ALIGN in. The way it was previously done is potentially dangerous if the source data was at the top of a page and the offset caused the previous page to be copied (if the previous page has not yet been appropriately mapped). The old `offset' argument in m_devget() is not used anywhere (it's always 0) and dates back to ~1995 (and earlier?) when support for ethernet trailers existed. With that support gone, it was merely collecting dust. Tested on alpha by: jlemon Partially submitted by: jlemon Reviewed by: jlemon MFC after: 3 weeks Notes: svn path=/head/; revision=78508
* Fix some memory bugs with regard to jumbo buffers. I made a mistake whenBill Paul2001-06-182-8/+5
| | | | | | | | | | | | | converting from the old external mbuf buffer code to the new (with the MEXTADD() macro). Also free free list memory correctly in foo_free_jumbo_mem() routines: grab the head of the list, then remove it, _then_ free() it. This fixes the memory corruption problem I've been chasing in the level 1 driver. Notes: svn path=/head/; revision=78440
* Turn TCP and UDP hardware RX checksumming back on. jlemon pointed out whereBill Paul2001-06-151-3/+2
| | | | | | | I'd gone wrong before: we have to set csum_data to 0xffff, not 0. Notes: svn path=/head/; revision=78287
* Use LGE_INC() macro to increment tx producer index in lge_encap().Bill Paul2001-06-061-2/+3
| | | | | | | | Disable the extra TCP/UCP checksum checking in lge_rxeof() since it doesn't appear to actually work as advertised. Notes: svn path=/head/; revision=77827
* In lge_detach(), don't contigfree() the jumbogram buffer memory;Bill Paul2001-06-051-1/+0
| | | | | | | lge_free_jumbo_mem() does it for us. Notes: svn path=/head/; revision=77793
* Add device driver support for the Level 1 LXT1001 NetCelleratorBill Paul2001-05-312-0/+2240
gigabit ethernet controller chip. This device is used on some fiber optic gigE cards from SMC, D-Link and Addtron. Jumbograms and TCP/IP checksum offload on receive are supported. Hardware VLAN filtering is not, because it doesn't play well with our existing VLAN code. Also add manual page. There is a 4.x version of this driver available at http://www.freebsd.org/~wpaul/Level1/4.x if anyone feels adventurous and wants to test it. I still need to do performance testing and tuning with this device. (For my next trick, I will make the 3Com 3cR990 sit up and beg.) Notes: svn path=/head/; revision=77542