aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sn/if_snvar.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC: pccard updatesWarner Losh2005-09-171-1/+3
| | | | | | | | | | | | o New APIs to access CIS, attribute memory and pccard registers o Lock ed driver o Support more cards in ed, ep, sn, xe o Use new APIs to get MAC address right more often. Approved by: re (scottl) Notes: svn path=/stable/6/; revision=150238
* Add support for Farallon EtherMAC PC Card.Warner Losh2005-07-061-2/+1
| | | | | | | | | | | | Move ethernet MAC address setting into pccard attachment Fix panic from IFP2ENADDR() use prior to if_alloc Remove OLDCARD compat support. This should work still on oldcard, however. sn_attach now requires that the resources be activated now, so adjust. Approved by: re (scottl) Notes: svn path=/head/; revision=147797
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-101-7/+1
| | | | | | | | | | | | | | | | | | | | | | | 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
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Make sn MPSAFE. This has survived a couple of make buildworlds withWarner Losh2003-10-261-0/+1
| | | | | | | my Megahertz XJ10BT. Notes: svn path=/head/; revision=121589
* Convert to bus_space.Warner Losh2003-10-251-1/+26
| | | | | | | | | | | | Make the pccard attachment work with NEWCARD Start locking of the driver, but only the macros are defined right now Tested on: Megahertz CC10BT/2 # (These cards are very popular on ebay these days, and run < $10 including # shipping from some sellers). Notes: svn path=/head/; revision=121514
* Add isa support:Warner Losh2000-12-131-0/+1
| | | | | | | | o write isa driver routines. o factor detach routine in sn_detach. Notes: svn path=/head/; revision=69955
* Don't execute MAC address initialization for non-pccard sn devices.Tatsumi Hosokawa2000-01-221-0/+1
| | | | Notes: svn path=/head/; revision=56397
* Newbusify the driver.Warner Losh1999-12-221-0/+59
Add support, kinda, for megaheartz xjack nic cards. This support works well for one machine per ethernet segment because it hard codes the MAC address. The pccardd in -current doesn't have support to parse the ethernet address from the CIS in the funky way that the megaheartz card does things (it includes it in the info tuple, as ascii, which is non-standard). I'd rather kludge this for the moment and work to read the CIS from the kernel rather than mess with pccardd. The isa attachment is untested. The pccard attachment is known to work since I'm committing over it. Card Obtained from: Chris D. Faulhaber <jedger@fxp.org> Notes: svn path=/head/; revision=54994