summaryrefslogtreecommitdiff
path: root/sys/arch/i386/pci
diff options
context:
space:
mode:
authorMichael Knudsen <mk@cvs.openbsd.org>2009-08-22 02:54:52 +0000
committerMichael Knudsen <mk@cvs.openbsd.org>2009-08-22 02:54:52 +0000
commit06e29584d413606b21c240635e12d7500b385ae5 (patch)
tree5e6f8a395a9c0030fc223059bb7a1b39529330c5 /sys/arch/i386/pci
parentc647754eb2c6d41408fe754bf7167383562e01b1 (diff)
Constify the what/name parameter of pci_intr_establish().
Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.)
Diffstat (limited to 'sys/arch/i386/pci')
-rw-r--r--sys/arch/i386/pci/pci_machdep.c4
-rw-r--r--sys/arch/i386/pci/pci_machdep.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/pci/pci_machdep.c b/sys/arch/i386/pci/pci_machdep.c
index 777bd451fdd..186af6a30cc 100644
--- a/sys/arch/i386/pci/pci_machdep.c
+++ b/sys/arch/i386/pci/pci_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.c,v 1.48 2009/04/29 18:28:37 kettenis Exp $ */
+/* $OpenBSD: pci_machdep.c,v 1.49 2009/08/22 02:54:50 mk Exp $ */
/* $NetBSD: pci_machdep.c,v 1.28 1997/06/06 23:29:17 thorpej Exp $ */
/*-
@@ -569,7 +569,7 @@ void acpiprt_route_interrupt(int bus, int dev, int pin);
void *
pci_intr_establish(pci_chipset_tag_t pc, pci_intr_handle_t ih, int level,
- int (*func)(void *), void *arg, char *what)
+ int (*func)(void *), void *arg, const char *what)
{
void *ret;
int bus, dev;
diff --git a/sys/arch/i386/pci/pci_machdep.h b/sys/arch/i386/pci/pci_machdep.h
index cf82ced70a3..543ff59c440 100644
--- a/sys/arch/i386/pci/pci_machdep.h
+++ b/sys/arch/i386/pci/pci_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.h,v 1.16 2009/07/20 23:40:43 miod Exp $ */
+/* $OpenBSD: pci_machdep.h,v 1.17 2009/08/22 02:54:50 mk Exp $ */
/* $NetBSD: pci_machdep.h,v 1.7 1997/06/06 23:29:18 thorpej Exp $ */
/*
@@ -97,7 +97,7 @@ int pci_intr_map(struct pci_attach_args *,
#define pci_intr_line(c, ih) ((ih).line)
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 *);
+ int, int (*)(void *), void *, const char *);
void pci_intr_disestablish(pci_chipset_tag_t, void *);
void pci_decompose_tag(pci_chipset_tag_t, pcitag_t,
int *, int *, int *);