It isn't a whinable offence to want memory when the bar says ioport.
Put that behind bootverbose to make the ata driver less chatty on advanced hardware. Requested by: sos
This commit is contained in:
parent
2005d17979
commit
ca44abece9
@ -1629,16 +1629,18 @@ pci_alloc_map(device_t dev, device_t child, int type, int *rid,
|
||||
return (NULL);
|
||||
if (pci_maptype(testval) & PCI_MAPMEM) {
|
||||
if (type != SYS_RES_MEMORY) {
|
||||
device_printf(child,
|
||||
"failed: rid %#x is memory, requested %d\n",
|
||||
*rid, type);
|
||||
if (bootverbose)
|
||||
device_printf(child,
|
||||
"rid %#x is memory, requested %d\n",
|
||||
*rid, type);
|
||||
goto out;
|
||||
}
|
||||
} else {
|
||||
if (type != SYS_RES_IOPORT) {
|
||||
device_printf(child,
|
||||
"failed: rid %#x is ioport, requested %d\n",
|
||||
*rid, type);
|
||||
if (bootverbose)
|
||||
device_printf(child,
|
||||
"rid %#x is ioport, requested %d\n",
|
||||
*rid, type);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user