diff options
author | msmith <msmith@FreeBSD.org> | 2002-01-09 03:32:40 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2002-01-09 03:32:40 +0000 |
commit | d41e8aa9b7dd5cb133cc085cf10891aa5dfce6f4 (patch) | |
tree | c2da036ae6bdd4092ab54976ec86dda4e541b152 /sys/dev/aac | |
parent | 4b04cada9319ee4ce88335eead3bb690bfb630bc (diff) | |
download | FreeBSD-src-d41e8aa9b7dd5cb133cc085cf10891aa5dfce6f4.zip FreeBSD-src-d41e8aa9b7dd5cb133cc085cf10891aa5dfce6f4.tar.gz |
Staticise the aac devclass.
Diffstat (limited to 'sys/dev/aac')
-rw-r--r-- | sys/dev/aac/aac.c | 2 | ||||
-rw-r--r-- | sys/dev/aac/aac_debug.c | 4 | ||||
-rw-r--r-- | sys/dev/aac/aac_disk.c | 2 | ||||
-rw-r--r-- | sys/dev/aac/aac_pci.c | 2 | ||||
-rw-r--r-- | sys/dev/aac/aacvar.h | 1 |
5 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c index eb5dc6b..42e3697 100644 --- a/sys/dev/aac/aac.c +++ b/sys/dev/aac/aac.c @@ -69,8 +69,6 @@ #include <dev/aac/aacvar.h> #include <dev/aac/aac_tables.h> -devclass_t aac_devclass; - static void aac_startup(void *arg); static void aac_add_container(struct aac_softc *sc, struct aac_mntinforesponse *mir, int f); diff --git a/sys/dev/aac/aac_debug.c b/sys/dev/aac/aac_debug.c index 0d54223..3f29a83 100644 --- a/sys/dev/aac/aac_debug.c +++ b/sys/dev/aac/aac_debug.c @@ -133,7 +133,7 @@ aac_printstate0(void) { struct aac_softc *sc; - sc = devclass_get_softc(aac_devclass, 0); + sc = devclass_get_softc(devclass_find("aac"), 0); aac_print_queues(sc); switch (sc->aac_hwif) { @@ -163,7 +163,7 @@ aac_intr0(void) { struct aac_softc *sc; - sc = devclass_get_softc(aac_devclass, 0); + sc = devclass_get_softc(devclass_find("aac"), 0); aac_intr(sc); } diff --git a/sys/dev/aac/aac_disk.c b/sys/dev/aac/aac_disk.c index 0af2b50..3dd2586 100644 --- a/sys/dev/aac/aac_disk.c +++ b/sys/dev/aac/aac_disk.c @@ -89,7 +89,7 @@ static struct cdevsw aac_disk_cdevsw = { #endif }; -devclass_t aac_disk_devclass; +static devclass_t aac_disk_devclass; static struct cdevsw aac_disk_disk_cdevsw; #ifdef FREEBSD_4 static int disks_registered = 0; diff --git a/sys/dev/aac/aac_pci.c b/sys/dev/aac/aac_pci.c index acaf6a4..c5d9dc6 100644 --- a/sys/dev/aac/aac_pci.c +++ b/sys/dev/aac/aac_pci.c @@ -79,6 +79,8 @@ static driver_t aac_pci_driver = { sizeof(struct aac_softc) }; +static devclass_t aac_devclass; + DRIVER_MODULE(aac, pci, aac_pci_driver, aac_devclass, 0, 0); struct aac_ident diff --git a/sys/dev/aac/aacvar.h b/sys/dev/aac/aacvar.h index 69faf2f..012c7d2 100644 --- a/sys/dev/aac/aacvar.h +++ b/sys/dev/aac/aacvar.h @@ -369,7 +369,6 @@ extern int aac_shutdown(device_t dev); extern int aac_suspend(device_t dev); extern int aac_resume(device_t dev); extern void aac_intr(void *arg); -extern devclass_t aac_devclass; extern void aac_submit_bio(struct bio *bp); extern void aac_biodone(struct bio *bp); extern int aac_dump_enqueue(struct aac_disk *ad, u_int32_t lba, |