Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/powernv/opal_pci.c
Show First 20 Lines • Show All 248 Lines • ▼ Show 20 Lines | if (err < 0) { | ||||
device_printf(dev, "WARNING: PHB IODA reset poll failed: %d\n", err); | device_printf(dev, "WARNING: PHB IODA reset poll failed: %d\n", err); | ||||
} | } | ||||
/* | /* | ||||
* Map all devices on the bus to partitionable endpoint one until | * Map all devices on the bus to partitionable endpoint one until | ||||
* such time as we start wanting to do things like bhyve. | * such time as we start wanting to do things like bhyve. | ||||
*/ | */ | ||||
err = opal_call(OPAL_PCI_SET_PE, sc->phb_id, OPAL_PCI_DEFAULT_PE, | err = opal_call(OPAL_PCI_SET_PE, sc->phb_id, OPAL_PCI_DEFAULT_PE, | ||||
0, 0, 0, 0, /* All devices */ | 0, OPAL_PCI_BUS_ANY, OPAL_IGNORE_RID_DEVICE_NUMBER, | ||||
OPAL_MAP_PE); | OPAL_IGNORE_RID_FUNC_NUMBER, OPAL_MAP_PE); | ||||
if (err != 0) { | if (err != 0) { | ||||
device_printf(dev, "PE mapping failed: %d\n", err); | device_printf(dev, "PE mapping failed: %d\n", err); | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
/* | /* | ||||
* Turn on MMIO, mapped to PE 1 | * Turn on MMIO, mapped to PE 1 | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 348 Lines • Show Last 20 Lines |