summaryrefslogtreecommitdiff
path: root/sys/dev/sbus/stp4020.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2005-01-27 17:03:25 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2005-01-27 17:03:25 +0000
commit7b4677abf4abc2b0e1c8b1d23b4f711f4839f65c (patch)
treea873aec91b706115de534c5732ac00b9bf1dd03d /sys/dev/sbus/stp4020.c
parent7ff5140d1641cb333749e5f6eea39ad4eb1ede09 (diff)
Add pcmcia_intr_string() to format the intr string for pcmcia attach
routines.
Diffstat (limited to 'sys/dev/sbus/stp4020.c')
-rw-r--r--sys/dev/sbus/stp4020.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/dev/sbus/stp4020.c b/sys/dev/sbus/stp4020.c
index c9617ad0264..86fc55aa4fc 100644
--- a/sys/dev/sbus/stp4020.c
+++ b/sys/dev/sbus/stp4020.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stp4020.c,v 1.12 2004/03/03 21:47:39 miod Exp $ */
+/* $OpenBSD: stp4020.c,v 1.13 2005/01/27 17:03:24 millert Exp $ */
/* $NetBSD: stp4020.c,v 1.23 2002/06/01 23:51:03 lukem Exp $ */
/*-
@@ -120,6 +120,7 @@ void stp4020_chip_socket_disable(pcmcia_chipset_handle_t);
void *stp4020_chip_intr_establish(pcmcia_chipset_handle_t,
struct pcmcia_function *, int, int (*) (void *), void *, char *);
void stp4020_chip_intr_disestablish(pcmcia_chipset_handle_t, void *);
+const char *stp4020_chip_intr_string(pcmcia_chipset_handle_t, void *);
/* Our PCMCIA chipset methods */
static struct pcmcia_chip_functions stp4020_functions = {
@@ -135,6 +136,7 @@ static struct pcmcia_chip_functions stp4020_functions = {
stp4020_chip_intr_establish,
stp4020_chip_intr_disestablish,
+ stp4020_chip_intr_string,
stp4020_chip_socket_enable,
stp4020_chip_socket_disable
@@ -834,6 +836,17 @@ stp4020_chip_intr_disestablish(pch, ih)
h->intrarg = NULL;
}
+const char *
+stp4020_chip_intr_string(pch, ih)
+ pcmcia_chipset_handle_t pch;
+ void *ih;
+{
+ if (ih == NULL)
+ return ("couldn't establish interrupt");
+ else
+ return (""); /* nothing for now */
+}
+
/*
* Delay and possibly yield CPU.
* XXX - assumes a context