summaryrefslogtreecommitdiff
path: root/sys/arch/i386
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
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')
-rw-r--r--sys/arch/i386/i386/ioapic.c4
-rw-r--r--sys/arch/i386/include/i82093var.h5
-rw-r--r--sys/arch/i386/isa/isa_machdep.c4
-rw-r--r--sys/arch/i386/isa/isa_machdep.h5
-rw-r--r--sys/arch/i386/pci/pci_machdep.c4
-rw-r--r--sys/arch/i386/pci/pci_machdep.h4
6 files changed, 14 insertions, 12 deletions
diff --git a/sys/arch/i386/i386/ioapic.c b/sys/arch/i386/i386/ioapic.c
index 60b08698845..3ea94c6252c 100644
--- a/sys/arch/i386/i386/ioapic.c
+++ b/sys/arch/i386/i386/ioapic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ioapic.c,v 1.21 2009/08/13 13:24:48 kettenis Exp $ */
+/* $OpenBSD: ioapic.c,v 1.22 2009/08/22 02:54:50 mk Exp $ */
/* $NetBSD: ioapic.c,v 1.7 2003/07/14 22:32:40 lukem Exp $ */
/*-
@@ -647,7 +647,7 @@ ioapic_hwunmask(struct pic *pic, int pin)
void *
apic_intr_establish(int irq, int type, int level, int (*ih_fun)(void *),
- void *ih_arg, char *ih_what)
+ void *ih_arg, const char *ih_what)
{
unsigned int ioapic = APIC_IRQ_APIC(irq);
unsigned int intr = APIC_IRQ_PIN(irq);
diff --git a/sys/arch/i386/include/i82093var.h b/sys/arch/i386/include/i82093var.h
index 42b2d72a39b..3359f5b8fc8 100644
--- a/sys/arch/i386/include/i82093var.h
+++ b/sys/arch/i386/include/i82093var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: i82093var.h,v 1.8 2009/08/13 13:24:48 kettenis Exp $ */
+/* $OpenBSD: i82093var.h,v 1.9 2009/08/22 02:54:50 mk Exp $ */
/* $NetBSD: i82093var.h,v 1.1 2003/02/26 21:26:10 fvdl Exp $ */
/*-
@@ -80,7 +80,8 @@ struct ioapic_softc {
#define APIC_IRQ_APIC(x) ((x & APIC_INT_APIC_MASK) >> APIC_INT_APIC_SHIFT)
#define APIC_IRQ_PIN(x) ((x & APIC_INT_PIN_MASK) >> APIC_INT_PIN_SHIFT)
-void *apic_intr_establish(int, int, int, int (*)(void *), void *, char *);
+void *apic_intr_establish(int, int, int, int (*)(void *), void *,
+ const char *);
void apic_intr_disestablish(void *);
void ioapic_print_redir(struct ioapic_softc *, char *, int);
diff --git a/sys/arch/i386/isa/isa_machdep.c b/sys/arch/i386/isa/isa_machdep.c
index 45ac6a62375..e3ac008cd7e 100644
--- a/sys/arch/i386/isa/isa_machdep.c
+++ b/sys/arch/i386/isa/isa_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa_machdep.c,v 1.67 2009/03/10 15:03:17 oga Exp $ */
+/* $OpenBSD: isa_machdep.c,v 1.68 2009/08/22 02:54:50 mk Exp $ */
/* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */
/*-
@@ -463,7 +463,7 @@ isa_intr_check(isa_chipset_tag_t ic, int irq, int type)
*/
void *
isa_intr_establish(isa_chipset_tag_t ic, int irq, int type, int level,
- int (*ih_fun)(void *), void *ih_arg, char *ih_what)
+ int (*ih_fun)(void *), void *ih_arg, const char *ih_what)
{
struct intrhand **p, *q, *ih;
static struct intrhand fakehand = {fakeintr};
diff --git a/sys/arch/i386/isa/isa_machdep.h b/sys/arch/i386/isa/isa_machdep.h
index 6f3e04cb27e..10c246610ea 100644
--- a/sys/arch/i386/isa/isa_machdep.h
+++ b/sys/arch/i386/isa/isa_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa_machdep.h,v 1.24 2008/12/11 17:07:14 oga Exp $ */
+/* $OpenBSD: isa_machdep.h,v 1.25 2009/08/22 02:54:50 mk Exp $ */
/* $NetBSD: isa_machdep.h,v 1.7 1997/06/06 23:28:42 thorpej Exp $ */
/*-
@@ -104,7 +104,8 @@ void isa_attach_hook(struct device *, struct device *,
int isa_intr_alloc(isa_chipset_tag_t, int, int, int *);
int isa_intr_check(isa_chipset_tag_t, int, int);
void *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type,
- int level, int (*ih_fun)(void *), void *ih_arg, char *ih_what);
+ int level, int (*ih_fun)(void *), void *ih_arg,
+ const char *ih_what);
void isa_intr_disestablish(isa_chipset_tag_t ic, void *handler);
/*
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 *);