aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fe/if_fevar.h
Commit message (Collapse)AuthorAgeFilesLines
* - Use bus_foo() rather than bus_space_foo() and retire the bus tag and handleJohn Baldwin2008-06-231-12/+11
| | | | | | | | | | | | | | | from the softc. - Rework the watchdog timer to match other NIC drivers: - Start a timer in fe_init() that runs once a second and checks a counter in the softc that is identical to the deprecated 'if_timer'. - Just adjust the softc tx timeout value when sending packets instead of scheduling the timer. - Use IFQ_SET_MAXLEN(). Tested by: WATANABE Kazuhiro Notes: svn path=/head/; revision=179959
* Make fe(4) MPSAFE:John Baldwin2008-06-021-0/+5
| | | | | | | | | | | | - Add a mutex to the softc to protect the softc and device hardware. - Don't leak bus resources if if_alloc() fails during attach. - Setup the interrupt handler after calling ether_ifattach(). - Use a private timer to manage the transmit watchdog. Tested by: WATANABE Kazuhiro CQG00620 of nifty.ne.jp Notes: svn path=/head/; revision=179493
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-101-6/+2
| | | | | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam Notes: svn path=/head/; revision=147256
* don't pollute global namespace with valid_Ether_p, instead, prependWarner Losh2005-01-101-1/+1
| | | | | | | fe_ to it. Notes: svn path=/head/; revision=139972
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-311-1/+2
| | | | | | | | | | | | | | | | 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
* - Newbus'ify and bus_space'ify.Yoshihiro Takahashi2000-09-141-0/+182
- Separate bus dependent part and independent part. - Moved source files to sys/dev/fe (repo copied). - Fixed some comments by chi@bd.mbn.or.jp (Chiharu Shibata) Tested by: bsd-nomads@clave.gr.jp and FreeBSD98-testers@jp.freebsd.org Notes: svn path=/head/; revision=65832