Staticise the aac devclass.

This commit is contained in:
Mike Smith 2002-01-09 03:32:40 +00:00
parent 47927c198b
commit e45bef2aa9
5 changed files with 5 additions and 6 deletions

View file

@ -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);

View file

@ -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);
}

View file

@ -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;

View file

@ -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

View file

@ -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,