summaryrefslogtreecommitdiffstats
path: root/sys/alpha/tlsb
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-05-10 06:52:56 +0000
committermjacob <mjacob@FreeBSD.org>2001-05-10 06:52:56 +0000
commitd739b2bcb93a378eb5243ed3019c2c7f3373f223 (patch)
treedc3686802c5e81a0f6c7e1f4d5efb1e5fb086d92 /sys/alpha/tlsb
parent4626a44bc4c5d30ce9deb7c947eec63397dc1fef (diff)
downloadFreeBSD-src-d739b2bcb93a378eb5243ed3019c2c7f3373f223.zip
FreeBSD-src-d739b2bcb93a378eb5243ed3019c2c7f3373f223.tar.gz
add alpha_pci_route_interrupt method
Diffstat (limited to 'sys/alpha/tlsb')
-rw-r--r--sys/alpha/tlsb/dwlpx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/alpha/tlsb/dwlpx.c b/sys/alpha/tlsb/dwlpx.c
index e9b621e..2f778ef 100644
--- a/sys/alpha/tlsb/dwlpx.c
+++ b/sys/alpha/tlsb/dwlpx.c
@@ -66,6 +66,7 @@
#include <sys/module.h>
#include <sys/bus.h>
#include <machine/bus.h>
+#include <machine/md_var.h>
#include <sys/proc.h>
#include <sys/rman.h>
#include <sys/interrupt.h>
@@ -153,7 +154,7 @@ dwlpx_probe(device_t dev)
sc->bushose = (io << 2) | hose;
if (dwlpxs[io][hose]) {
- printf("%s: already attached\n", device_get_nameunit(dev));
+ device_printf(dev, "already attached\n");
return EEXIST;
}
if ((xc = dwlpx_root) == NULL) {
@@ -326,7 +327,7 @@ dwlpx_attach(device_t dev)
/*
- * Register our interrupt service requirements with out parent.
+ * Register our interrupt service requirements with our parent.
*/
i = BUS_SETUP_INTR(parent, dev, NULL,
INTR_TYPE_MISC, dwlpx_intr, 0, &intr);
@@ -856,6 +857,7 @@ static device_method_t dwlpx_methods[] = {
DEVMETHOD(pcib_maxslots, dwlpx_maxslots),
DEVMETHOD(pcib_read_config, dwlpx_read_config),
DEVMETHOD(pcib_write_config, dwlpx_write_config),
+ DEVMETHOD(pcib_route_interrupt, alpha_pci_route_interrupt),
{ 0, 0 }
};
OpenPOWER on IntegriCloud