From bf90740990f4ef10d6b640723985bd9bc6b79e1e Mon Sep 17 00:00:00 2001 From: jhb 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(+) (limited to 'sys/pci/intpm.c') 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 -- cgit v1.1