summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-08-04 16:39:16 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-08-04 16:39:16 +0000
commit84b496c7b4bd76bcd44c9f379fc27c7aa4ef3759 (patch)
tree4eff9648b8595fc7bbfe456f30d864176b92f6a3
parent97fcc3b83be1e3871c314abe7dedfca906b14431 (diff)
Add missing pci_intr_line() implementation.
ok deraadt@
-rw-r--r--sys/arch/sparc64/dev/pci_machdep.c8
-rw-r--r--sys/arch/sparc64/include/pci_machdep.h3
2 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/pci_machdep.c b/sys/arch/sparc64/dev/pci_machdep.c
index 509e6f7c790..d3e83d0753f 100644
--- a/sys/arch/sparc64/dev/pci_machdep.c
+++ b/sys/arch/sparc64/dev/pci_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.c,v 1.29 2007/05/28 16:14:27 kettenis Exp $ */
+/* $OpenBSD: pci_machdep.c,v 1.30 2007/08/04 16:39:15 kettenis Exp $ */
/* $NetBSD: pci_machdep.c,v 1.22 2001/07/20 00:07:13 eeh Exp $ */
/*
@@ -426,6 +426,12 @@ pci_intr_map(pa, ihp)
return (0);
}
+int
+pci_intr_line(pci_intr_handle_t ih)
+{
+ return (ih);
+}
+
const char *
pci_intr_string(pc, ih)
pci_chipset_tag_t pc;
diff --git a/sys/arch/sparc64/include/pci_machdep.h b/sys/arch/sparc64/include/pci_machdep.h
index edd8ed60e8d..5381ae7a90e 100644
--- a/sys/arch/sparc64/include/pci_machdep.h
+++ b/sys/arch/sparc64/include/pci_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.h,v 1.16 2007/04/01 12:26:15 kettenis Exp $ */
+/* $OpenBSD: pci_machdep.h,v 1.17 2007/08/04 16:39:15 kettenis Exp $ */
/* $NetBSD: pci_machdep.h,v 1.7 2001/07/20 00:07:14 eeh Exp $ */
/*
@@ -81,6 +81,7 @@ pcireg_t pci_conf_read(pci_chipset_tag_t, pcitag_t, int);
void pci_conf_write(pci_chipset_tag_t, pcitag_t, int,
pcireg_t);
int pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
+int pci_intr_line(pci_intr_handle_t);
const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t);
void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
int, int (*)(void *), void *, char *);