summaryrefslogtreecommitdiffstats
path: root/sys/dev/sn/if_sn_isa.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for Farallon EtherMAC PC Card.imp2005-07-061-6/+15
| | | | | | | | | 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)
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Don't establish the ISR in the sn_activate routine. I've had twoimp2003-11-101-5/+0
| | | | | | | crashes that had sn0 as the irq that's being serviced, when there was no sn0 in the system. This seems to prevent them. Also, we want to wait until after we've registered with the network layer before we turn on the interrupt spigot to avoid races.
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* - Express hard dependencies on bus (pci, isa, pccard) andmdodd2003-04-151-1/+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.)
* Add isa support:imp2000-12-131-8/+5
| | | | | o write isa driver routines. o factor detach routine in sn_detach.
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Remove 8 unnecessary includes from phk's scriptimp2000-09-201-5/+0
|
* Implement indirection in the pccard probe/attach. This should make itimp2000-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 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
* 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-221-0/+7
|
* Two nits and disable isa probe due to its overly agressive claiming ofimp1999-12-281-1/+2
| | | | | | | | | | | | 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-221-0/+91
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