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__.
This commit is contained in:
parent
f47789c828
commit
ca5028328a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user