From 17b47486003fe70c059ff3390cea263a71b15be0 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 5 Jul 2007 11:28:31 +0000 Subject: Print offset and irq for devices that attach to ssio(4). --- sys/arch/hppa/dev/ssio.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sys/arch/hppa/dev/ssio.c') 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); } -- cgit v1.2.3