summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-07-05 11:28:31 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-07-05 11:28:31 +0000
commit17b47486003fe70c059ff3390cea263a71b15be0 (patch)
treeb5bff60da0c24be5ed3a101af64a8d728f20c26e /sys/arch/hppa/dev
parentd8990b18ec56ffc5caec0c113659dd7c03a96437 (diff)
Print offset and irq for devices that attach to ssio(4).
Diffstat (limited to 'sys/arch/hppa/dev')
-rw-r--r--sys/arch/hppa/dev/ssio.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/ssio.c b/sys/arch/hppa/dev/ssio.c
index f6d3cf60c91..2902369f6b0 100644
--- a/sys/arch/hppa/dev/ssio.c
+++ b/sys/arch/hppa/dev/ssio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssio.c,v 1.5 2007/07/03 20:49:57 kettenis Exp $ */
+/* $OpenBSD: ssio.c,v 1.6 2007/07/05 11:28:30 kettenis Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -353,6 +353,12 @@ ssio_print(void *aux, const char *pnp)
struct ssio_attach_args *saa = aux;
if (pnp)
- printf("%s at %s\n", saa->saa_name, pnp);
+ printf("%s at %s offset\n", saa->saa_name, pnp);
+ if (saa->saa_iobase) {
+ printf(" offset %lx", saa->saa_iobase);
+ if (!pnp && saa->saa_irq >= 0)
+ printf(" irq %d", saa->saa_irq);
+ }
+
return (UNCONF);
}