summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64/dev
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/hppa64/dev
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/hppa64/dev')
-rw-r--r--sys/arch/hppa64/dev/apic.c4
-rw-r--r--sys/arch/hppa64/dev/elroyvar.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa64/dev/apic.c b/sys/arch/hppa64/dev/apic.c
index d3904c48b24..d351c65d6f3 100644
--- a/sys/arch/hppa64/dev/apic.c
+++ b/sys/arch/hppa64/dev/apic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apic.c,v 1.2 2005/05/22 01:42:49 mickey Exp $ */
+/* $OpenBSD: apic.c,v 1.3 2009/08/22 02:54:50 mk Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -88,7 +88,7 @@ apic_intr_string(void *v, pci_intr_handle_t ih)
void *
apic_intr_establish(void *v, pci_intr_handle_t ih,
- int pri, int (*handler)(void *), void *arg, char *name)
+ int pri, int (*handler)(void *), void *arg, const char *name)
{
/* struct elroy_softc *sc = v; */
/* volatile struct elroy_regs *r = sc->sc_regs; */
diff --git a/sys/arch/hppa64/dev/elroyvar.h b/sys/arch/hppa64/dev/elroyvar.h
index 3a4fcd35ae5..7a319483d07 100644
--- a/sys/arch/hppa64/dev/elroyvar.h
+++ b/sys/arch/hppa64/dev/elroyvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: elroyvar.h,v 1.2 2008/04/20 18:41:45 kettenis Exp $ */
+/* $OpenBSD: elroyvar.h,v 1.3 2009/08/22 02:54:50 mk Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -50,7 +50,7 @@ int apic_intr(void *v);
int apic_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp);
const char *apic_intr_string(void *v, pci_intr_handle_t ih);
void *apic_intr_establish(void *v, pci_intr_handle_t ih, int pri,
- int (*handler)(void *), void *arg, char *name);
+ int (*handler)(void *), void *arg, const char *name);
void apic_intr_disestablish(void *v, void *cookie);
void elroy_write32(volatile u_int32_t *p, u_int32_t v);