Added the ICS SB486PV.
This commit is contained in:
10
src/device.c
10
src/device.c
@@ -897,8 +897,14 @@ device_is_valid(const device_t *device, int mch)
|
||||
{
|
||||
int ret = 1;
|
||||
|
||||
if ((device != NULL) && ((device->flags & DEVICE_BUS) != 0))
|
||||
ret = machine_has_bus(mch, device->flags & DEVICE_BUS);
|
||||
if ((device != NULL) && ((device->flags & DEVICE_BUS) != 0)) {
|
||||
/* Hide PCI devices on machines with only an internal PCI bus. */
|
||||
if ((device->flags & DEVICE_PCI) &&
|
||||
machine_has_flags(mch, MACHINE_PCI_INTERNAL))
|
||||
ret = 0;
|
||||
else
|
||||
ret = machine_has_bus(mch, device->flags & DEVICE_BUS);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user