mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
Enable EISA interrupts if the mcpcia has an attached EISA bus.
This commit is contained in:
parent
d6ccb80c97
commit
e3227bc7a6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60533
@ -80,6 +80,9 @@ static int mcpcia_setup_intr(device_t, device_t, struct resource *, int,
|
||||
static int
|
||||
mcpcia_teardown_intr(device_t, device_t, struct resource *, void *);
|
||||
static driver_intr_t mcpcia_intr;
|
||||
static void mcpcia_enable_intr(struct mcpcia_softc *, int);
|
||||
static void mcpcia_disable_intr(struct mcpcia_softc *, int);
|
||||
|
||||
|
||||
static device_method_t mcpcia_methods[] = {
|
||||
/* Device interface */
|
||||
@ -566,16 +569,17 @@ mcpcia_attach(device_t dev)
|
||||
if (sc == mcpcia_eisa) {
|
||||
printf("Attaching Real Console\n");
|
||||
dec_kn300_cons_init();
|
||||
/*
|
||||
* Enable EISA interrupts.
|
||||
*/
|
||||
mcpcia_enable_intr(sc, 16);
|
||||
}
|
||||
bus_generic_attach(dev);
|
||||
}
|
||||
return (rval);
|
||||
}
|
||||
|
||||
static void mcpcia_enable_intr(struct mcpcia_softc *, int);
|
||||
static void mcpcia_disable_intr(struct mcpcia_softc *, int);
|
||||
|
||||
void
|
||||
static void
|
||||
mcpcia_enable_intr(struct mcpcia_softc *sc, int irq)
|
||||
{
|
||||
alpha_mb();
|
||||
@ -583,7 +587,7 @@ mcpcia_enable_intr(struct mcpcia_softc *sc, int irq)
|
||||
alpha_mb();
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
mcpcia_disable_intr(struct mcpcia_softc *sc, int irq)
|
||||
{
|
||||
alpha_mb();
|
||||
|
Loading…
Reference in New Issue
Block a user