From d066b073153b986a54fd18a31d6bcc5d697933a2 Mon Sep 17 00:00:00 2001 From: dfr Date: Sat, 13 May 2000 21:33:57 +0000 Subject: Enable EISA interrupts if the mcpcia has an attached EISA bus. --- sys/alpha/mcbus/mcpcia.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sys/alpha/mcbus/mcpcia.c b/sys/alpha/mcbus/mcpcia.c index 10de6a8..c359e95 100644 --- a/sys/alpha/mcbus/mcpcia.c +++ b/sys/alpha/mcbus/mcpcia.c @@ -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(); -- cgit v1.1