Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vmd/vmd_bus.c
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | vmd_bus_attach(device_t dev) | ||||
rman_res_t start, end; | rman_res_t start, end; | ||||
int b, s, f; | int b, s, f; | ||||
int found; | int found; | ||||
sc = device_get_softc(device_get_parent(dev)); | sc = device_get_softc(device_get_parent(dev)); | ||||
/* | /* | ||||
* Start at max PCI vmd_domain and work down. Only VMD | * Start at max PCI vmd_domain and work down. Only VMD | ||||
* starting bus is connect to VMD device directly. Scan al | * starting bus is connect to VMD device directly. Scan | ||||
* lslots and function connected to starting bus. | * all slots and function connected to starting bus. | ||||
*/ | */ | ||||
b = sc->vmd_bus_start; | b = sc->vmd_bus_start; | ||||
found = 0; | found = 0; | ||||
for (s = 0; s < PCI_SLOTMAX; s++) { | for (s = 0; s < PCI_SLOTMAX; s++) { | ||||
for (f = 0; f < PCI_FUNCMAX; f++) { | for (f = 0; f < PCI_FUNCMAX; f++) { | ||||
dinfo = pci_read_device(device_get_parent(dev), dev, | dinfo = pci_read_device(device_get_parent(dev), dev, | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |