summaryrefslogtreecommitdiffstats
path: root/sys/dev/sn/if_sn_pccard.c
Commit message (Collapse)AuthorAgeFilesLines
* Use the bus_*() routines rather than bus_space_*() for register operations.jhb2009-11-171-2/+0
|
* Use new convenience function to read CIS rather than the older, harder toimp2005-09-131-2/+1
| | | | use version.
* Some preliminary support for Megahertz XJEM and CCEM (same cards really)imp2005-08-151-28/+159
| | | | combo cards.
* Comment out a few entries in the sn_pccard_products table untilimp2005-07-131-27/+40
| | | | | | | support for them can really be added. Eliminate the check for network card, because many of the cards in the commented out section are combo cards and report themselves as either multifunction or modem. They will be added back as I obtain hardware and test them more fully.
* Add a boatload of new device ids, gleaned from the pcmcia-cs-3.2.8imp2005-07-101-2/+5
| | | | | | | distribution. Add the appropriate devices to the man pages. Obtained from: pcmcia-cs Approved by: re (scottl)
* Fix the build. The SMC_8020BT define doesn't exist yet.scottl2005-07-091-0/+2
| | | | Approved by: re (implicit)
* Noticed that NetBSD's sm driver has the PSION GOLDCARD listed, so listimp2005-07-091-3/+2
| | | | | | | | | | | that since I can't test it directly. The driver also lists the EM1144 as being supported, but in reality it isn't. The EM1144-T, {XJ,CC}{3288,3336} have the SMC chips in them, but aren't conformant MFC cards, so they need their own driver. Also, it does little harm to list the 8020BT, so remove #if 0. Approved by: re (scottl)
* Add support for Farallon EtherMAC PC Card.imp2005-07-061-30/+34
| | | | | | | | | 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)
* Eliminate unused argument in PCMCIA_CARD macro.imp2005-06-241-3/+3
| | | | | | | | Provide a backwards compatible way to have the extra macro by defining PCCARD_API_LEVEL 5 before including pccarddevs for driver writers that want/need to have the same driver on 5 and 6 with pccard attachments. Approved by: re (dwhite)
* Stop embedding struct ifnet at the top of driver softcs. Instead thebrooks2005-06-101-1/+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
* Only attach to network functions. I'm not aware of any multifunctionimp2005-01-201-0/+10
| | | | | (pccard sense) sn based cards, but this won't hurt. The pseudo-multifunction cards need a special driver anyway...
* Add missing <sys/module.h> includesphk2004-05-301-0/+1
|
* Include required machine/bus.himp2004-05-281-0/+2
|
* Fix disordering of pccarddevs.h noticed by bde. Also remove a fewimp2004-05-271-9/+4
| | | | | | redundant includes and fix some of the include disordering. Submitted by: bde
* Move to generating pccarddevs.h on the fly, both for the kernel andimp2004-05-261-1/+1
| | | | | | | the modules. Also generate usbdevs.h automatically now, but a non-kernel file is stopping that at the moment.
* It turns out that the module dependency on pccard is in error. Sinceimp2004-05-081-1/+0
| | | | | | | | | | | | there's not dependencies on pccard symboles, such a dependency is not necessary. This means that drivers that have multiple attachments can not drag bogus devices into the kernel at load time. We can't (yet) do this with pci and isa. Drivers written for them actually do seem to have symbols that depend on these busses' implementation code. ndis not touched until other things can be tested.
* Convert to bus_space.imp2003-10-251-0/+42
| | | | | | | | | 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).
* Use __FBSDID().obrien2003-08-241-4/+4
| | | | Also some minor style cleanups.
* DSP Solutions, Inc made the XJEM1144 and XJACK ethernet cards. Updateimp2003-08-211-1/+1
| | | | MEGAHERTZ2 to DSPSI.
* - Express hard dependencies on bus (pci, isa, pccard) andmdodd2003-04-151-2/+3
| | | | | | | | 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.)
* Make sure that pp_name is non-null before setting the deviceimp2003-04-101-1/+2
| | | | | description. This allows us to rely entirely on the CIS entries if necessary...
* Don't bogusly depend on pcic. pccard should be enough.imp2002-08-081-1/+0
| | | | | Noticed by: jhay Forgotten about for two years by: imp
* Minor whitespace nits. remove #if 1 and #endif pair, but not code between.imp2002-07-211-0/+1
|
* Migrate to PCMCIA_CARD() macrosimp2001-11-151-9/+3
|
* s/PCCARD_/PCMCIA_/g in NEWCARD device tables to enable easier NetBSD sharingimp2001-11-111-9/+9
|
* Use PCCARD_CIS_xxx #defines for the table of oem ids. These usuallyimp2001-01-211-5/+6
| | | | translate to all NULLs (as for all the ones in this commit).
* Add isa support:imp2000-12-131-12/+1
| | | | | o write isa driver routines. o factor detach routine in sn_detach.
* Make sn_pccard_products[] staticpeter2000-11-251-1/+1
|
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Implement sn_pccard_match. The match routines are the compromiseimp2000-09-281-11/+24
| | | | | | | | | | matching methods so that we can run the same driver on both NEWCARD and OLDCARD. Also set the device description to the card that we found, if any. The sn driver should be ready when the NEWCARD catches up. There's a config activation issue as well as a kernel thread issue to resolve first.
* Remove 8 unnecessary includes from phk's scriptimp2000-09-201-3/+0
|
* Implement indirection in the pccard probe/attach. This should make itimp2000-09-191-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | possible to have different probe/attach semantics between the two systems and yet still use the same driver for both. Compatibility methods for OLDCARD drivers. We use these routines to make it possible to call the OLDCARD driver's probe routine in the context that it expects. For OLDCARD these are implemented as pass throughs to the device_{probe,attach} routines. For NEWCARD they are implemented such such that probe becomes strictly a matching routine and attach does both the old probe and old attach. compat devices should use the following: /* Device interface */ DEVMETHOD(device_probe), pccard_compat_probe), DEVMETHOD(device_attach), pccard_compat_attach), /* Card interface */ DEVMETHOD(card_compat_match, foo_match), /* newly written */ DEVMETHOD(card_compat_probe, foo_probe), /* old probe */ DEVMETHOD(card_compat_attach, foo_attach), /* old attach */ This will allow a single driver binary image to be used for both OLDCARD and NEWCARD. Drivers wishing to not retain OLDCARD compatibility needn't do this. ep driver minorly updated. sn driver updated more than minorly. Add module dependencies to allow module to load. Also change name to if_sn. Add some debugging code. attempt to fix the cannot allocate memory problem I'd been seeing. Minor formatting nits.
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-07-131-1/+1
| | | | | | | | | ether_ifdetach(). The former consolidates the operations of if_attach(), ng_ether_attach(), and bpfattach(). The latter consolidates the corresponding detach operations. Reviewed by: julian, freebsd-net
* Don't execute MAC address initialization for non-pccard sn devices.hosokawa2000-01-221-1/+4
|
* Added support for hex-encoded MAC address of Megahertz X-Jack Ethernet Cardhosokawa2000-01-211-0/+13
| | | | Reviewed by: Warner Losh <imp@village.org>
* Newbusify the driver.imp1999-12-221-0/+99
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>
OpenPOWER on IntegriCloud