From ca5028328a4c97b21de01fa9f85849e084e1b15c Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 8 Nov 2002 15:01:02 +0000 Subject: 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__. --- sys/pci/intpm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c index 747f192ceff18..edf8461061ca8 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 -- cgit v1.3