summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-09-20 05:48:16 +0000
committerpeter <peter@FreeBSD.org>1999-09-20 05:48:16 +0000
commitd65af66bfe8923c6345f7415d0086674f3b7d590 (patch)
tree11974528c000e381c6bb82e4b35c5a9763e5e201 /sys/dev/ed
parentb895b5437522f0b73e31c715714e989f86b9a039 (diff)
downloadFreeBSD-src-d65af66bfe8923c6345f7415d0086674f3b7d590.zip
FreeBSD-src-d65af66bfe8923c6345f7415d0086674f3b7d590.tar.gz
Make if_ed work again on pci, isa, isapnp. The hack to make it work on
PCCARD is pretty revolting but should buy us time while the pccard driver angle is sorted out. A commit for the MCA ed attachment will follow shortly.
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c16
-rw-r--r--sys/dev/ed/if_ed_pci.c6
2 files changed, 16 insertions, 6 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 42537ab..95160ee 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -37,6 +37,11 @@
*
*/
+#include "card.h"
+#if NCARD > 0
+#include <i386/isa/if_ed.c> /* PCCARD version */
+#else
+
#include "bpf.h"
#include <sys/param.h>
@@ -72,8 +77,8 @@
#include <machine/clock.h>
#include <machine/md_var.h>
-#include <i386/isa/if_edreg.h>
-#include <i386/isa/if_edvar.h>
+#include <dev/ed/if_edreg.h>
+#include <dev/ed/if_edvar.h>
#include <isa/isavar.h>
#include <isa/pnpvar.h>
@@ -108,7 +113,7 @@ int ed_attach_NE2000_pci __P((device_t, int));
#endif
#include "card.h"
-#if NCARDxx > 0
+#if NCARD > 0 /* broken pending pccard newbus fixes */
static int ed_probe_pccard __P((struct isa_device *, u_char *));
#endif
@@ -137,7 +142,7 @@ static void ed_setrcr __P((struct ed_softc *));
static u_long ds_crc __P((u_char *ep));
-#if NCARDxx > 0
+#if NCARD > 0
#include <sys/select.h>
#include <sys/module.h>
#include <pccard/cardinfo.h>
@@ -1304,7 +1309,7 @@ ed_probe_Novell(dev)
return ed_probe_Novell_generic(dev, 0, device_get_flags(dev));
}
-#if NCARDxx > 0
+#if NCARD > 0
/*
* Probe framework for pccards. Replicates the standard framework,
* minus the pccard driver registration and ignores the ether address
@@ -3599,3 +3604,4 @@ static driver_t ed_isa_driver = {
static devclass_t ed_isa_devclass;
DRIVER_MODULE(ed, isa, ed_isa_driver, ed_isa_devclass, 0, 0);
+#endif /* NCARD */
diff --git a/sys/dev/ed/if_ed_pci.c b/sys/dev/ed/if_ed_pci.c
index e7df453..c3a270a 100644
--- a/sys/dev/ed/if_ed_pci.c
+++ b/sys/dev/ed/if_ed_pci.c
@@ -20,6 +20,9 @@
* $FreeBSD$
*/
+#include "card.h"
+#if NCARD == 0
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/socket.h>
@@ -35,7 +38,7 @@
#include <net/if_arp.h>
#include <net/if_mib.h>
-#include <i386/isa/if_edvar.h>
+#include <dev/ed/if_edvar.h>
static struct _pcsid
{
@@ -98,3 +101,4 @@ static driver_t ed_pci_driver = {
static devclass_t ed_devclass;
DRIVER_MODULE(ed, pci, ed_pci_driver, ed_devclass, 0, 0);
+#endif
OpenPOWER on IntegriCloud