summaryrefslogtreecommitdiffstats
path: root/sys/pci/intpm.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-08 15:01:02 +0000
committerjhb <jhb@FreeBSD.org>2002-11-08 15:01:02 +0000
commitbf90740990f4ef10d6b640723985bd9bc6b79e1e (patch)
treef79590c9e0966ed5273aa05f4ad98d17dd6dbae1 /sys/pci/intpm.c
parentd102d4721a988b96f45977755319c212919e2a8f (diff)
downloadFreeBSD-src-bf90740990f4ef10d6b640723985bd9bc6b79e1e.zip
FreeBSD-src-bf90740990f4ef10d6b640723985bd9bc6b79e1e.tar.gz
Wrap a device_printf() that violates bus space abstractions to figure out
if it's IO port resource is IO or memory mapped for the sake of a printf using i386-specific values in #ifdef __i386__.
Diffstat (limited to 'sys/pci/intpm.c')
-rw-r--r--sys/pci/intpm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c
index 747f192..edf8461 100644
--- a/sys/pci/intpm.c
+++ b/sys/pci/intpm.c
@@ -672,10 +672,12 @@ intpm_attach(device_t dev)
sciic->smbst=rman_get_bustag(res);
sciic->smbsh=rman_get_bushandle(res);
+#ifdef __i386__
device_printf(dev,"%s %x\n",
(sciic->smbst==I386_BUS_SPACE_IO)?
"I/O mapped":"Memory",
sciic->smbsh);
+#endif
#ifndef NO_CHANGE_PCICONF
OpenPOWER on IntegriCloud