summaryrefslogtreecommitdiffstats
path: root/sys/dev/ex
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-03-29 15:38:53 +0000
committermdodd <mdodd@FreeBSD.org>2003-03-29 15:38:53 +0000
commit61b476ad29a5ddcff43e7b5a5b747dca58778f6c (patch)
treef39bda079aeb693b4099561d7ba814d32a778c1b /sys/dev/ex
parentd9dea5bf86993ae431683f3e5fc9c7431c3f1146 (diff)
downloadFreeBSD-src-61b476ad29a5ddcff43e7b5a5b747dca58778f6c.zip
FreeBSD-src-61b476ad29a5ddcff43e7b5a5b747dca58778f6c.tar.gz
- Declare ex_devclass in if_ex.c
- Rename module datastructures in if_ex_isa.c to be more standard.
Diffstat (limited to 'sys/dev/ex')
-rw-r--r--sys/dev/ex/if_ex.c2
-rw-r--r--sys/dev/ex/if_ex_isa.c10
-rw-r--r--sys/dev/ex/if_ex_pccard.c2
-rw-r--r--sys/dev/ex/if_exvar.h2
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/ex/if_ex.c b/sys/dev/ex/if_ex.c
index ac05a38..7988d0f 100644
--- a/sys/dev/ex/if_ex.c
+++ b/sys/dev/ex/if_ex.c
@@ -82,6 +82,8 @@ static int exintr_count = 0;
# define DODEBUG(level, action)
#endif
+devclass_t ex_devclass;
+
char irq2eemap[] =
{ -1, -1, 0, 1, -1, 2, -1, -1, -1, 0, 3, 4, -1, -1, -1, -1 };
u_char ee2irqmap[] =
diff --git a/sys/dev/ex/if_ex_isa.c b/sys/dev/ex/if_ex_isa.c
index 13d9d9b..b5d9681 100644
--- a/sys/dev/ex/if_ex_isa.c
+++ b/sys/dev/ex/if_ex_isa.c
@@ -60,7 +60,7 @@ static void ex_pnp_wakeup (void *);
SYSINIT(ex_pnpwakeup, SI_SUB_CPU, SI_ORDER_ANY, ex_pnp_wakeup, NULL);
#endif
-static device_method_t ex_methods[] = {
+static device_method_t ex_isa_methods[] = {
/* Device interface */
DEVMETHOD(device_identify, ex_isa_identify),
DEVMETHOD(device_probe, ex_isa_probe),
@@ -70,15 +70,13 @@ static device_method_t ex_methods[] = {
{ 0, 0 }
};
-static driver_t ex_driver = {
+static driver_t ex_isa_driver = {
"ex",
- ex_methods,
+ ex_isa_methods,
sizeof(struct ex_softc),
};
-devclass_t ex_devclass;
-
-DRIVER_MODULE(ex, isa, ex_driver, ex_devclass, 0, 0);
+DRIVER_MODULE(ex, isa, ex_isa_driver, ex_devclass, 0, 0);
static struct isa_pnp_id ex_ids[] = {
{ 0x3110d425, NULL }, /* INT1031 */
diff --git a/sys/dev/ex/if_ex_pccard.c b/sys/dev/ex/if_ex_pccard.c
index 7087cf5..ca876e6 100644
--- a/sys/dev/ex/if_ex_pccard.c
+++ b/sys/dev/ex/if_ex_pccard.c
@@ -67,8 +67,6 @@ static driver_t ex_pccard_driver = {
sizeof(struct ex_softc),
};
-extern devclass_t ex_devclass;
-
DRIVER_MODULE(ex, pccard, ex_pccard_driver, ex_devclass, 0, 0);
static int
diff --git a/sys/dev/ex/if_exvar.h b/sys/dev/ex/if_exvar.h
index 6539b85..2f94c41 100644
--- a/sys/dev/ex/if_exvar.h
+++ b/sys/dev/ex/if_exvar.h
@@ -67,6 +67,8 @@ struct ex_softc {
/* frame in the chain. */
};
+extern devclass_t ex_devclass;
+
extern char irq2eemap[];
extern u_char ee2irqmap[];
extern char plus_irq2eemap[];
OpenPOWER on IntegriCloud