- Declare ex_devclass in if_ex.c

- Rename module datastructures in if_ex_isa.c to be more standard.
This commit is contained in:
mdodd 2003-03-29 15:38:53 +00:00
parent 520c569b33
commit a87bfac17e
4 changed files with 8 additions and 8 deletions

View File

@ -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[] =

View File

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

View File

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

View File

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