summaryrefslogtreecommitdiffstats
path: root/sys/dev/sn
Commit message (Collapse)AuthorAgeFilesLines
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedphk2001-02-061-1/+1
| | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh
* Another round of the <sys/queue.h> FOREACH transmogriffer.phk2001-02-041-2/+1
| | | | | Created with: sed(1) Reviewed by: md5(1)
* Mechanical change to use <sys/queue.h> macro API instead ofphk2001-02-041-2/+2
| | | | | | | fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
* 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 support for SMC91C100FD chip of MELCO LPC-TX.toshi2001-01-152-1/+3
| | | | | | | sn1 at port 0x240-0x24f irq 10 slot 0 on pccard0 sn1: SMC91C100FD UTP MAC address 00:a0:dc:22:26:8c Submitted by: "KOMURO" <komujun@nifty.com>
* Add isa support:imp2000-12-134-20/+18
| | | | | 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-153-3/+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-202-8/+0
|
* Implement indirection in the pccard probe/attach. This should make itimp2000-09-193-22/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-132-5/+2
| | | | | | | | | 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
* Move code to handle BPF and bridging for incoming Ethernet packets outarchie2000-05-141-20/+0
| | | | | | | | | | | | | | | of the individual drivers and into the common routine ether_input(). Also, remove the (incomplete) hack for matching ethernet headers in the ip_fw code. The good news: net result of 1016 lines removed, and this should make bridging now work with *all* Ethernet drivers. The bad news: it's nearly impossible to test every driver, especially for bridging, and I was unable to get much testing help on the mailing lists. Reviewed by: freebsd-net
* Don't claim devices that we fail to probe for. Reverse the sense of a testimp2000-05-071-2/+2
| | | | | | | | so that we return failure when we've failed and succeed when we succeed. Otherwise, users always get a sn device :-(. PR: 18431 Submitted by: <sanpei@sanpei.org> MIHIRA Yoshiro-san
* Remove unneeded #include <sys/kernel.h>phk2000-04-291-1/+0
|
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-191-1/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
* Re-enable probe for isa and correct the plug and play issue thatimp2000-04-081-2/+2
| | | | | caused this device to be disabled. It will no longer claim all devices with PNPBIOS enabled.
* Don't execute MAC address initialization for non-pccard sn devices.hosokawa2000-01-224-7/+19
|
* Added support for hex-encoded MAC address of Megahertz X-Jack Ethernet Cardhosokawa2000-01-212-14/+19
| | | | Reviewed by: Warner Losh <imp@village.org>
* Two nits and disable isa probe due to its overly agressive claiming ofimp1999-12-282-4/+4
| | | | | | | | | | | | devices. o Return ENXIO from sn_isa_probe o Fix SN_DEBUG printf o Use IFQ_MAXLEN rather than 8 I'll fix the isa probe when I get access to a real isa attachment device to test against here in a few days. Overly agressive snagging behavior noticed by: phk
* Newbusify the driver.imp1999-12-225-342/+391
| | | | | | | | | | | | | | | | 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>
* Removed unnecessary include files.nyan1999-12-201-2/+0
|
* Make this compile again.peter1999-12-181-2/+0
| | | | GENERIC-broken-by: imp
* Driver for the smc91xx series of ethernet chips. Ported from PAO toimp1999-12-182-0/+2141
3.3R and then to -current. The pccard support has been left in the driver, but is presently non-functional because we are using the isa_compat layer for the moment. Obtained From: PAO Sponsored by: Timing Solutions
OpenPOWER on IntegriCloud