Changeset 42793 in vbox for trunk/src/VBox/Devices/PC/BIOS
- Timestamp:
- Aug 13, 2012 2:38:20 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80023
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/pcibios.c
r42532 r42793 203 203 * probing will end. 204 204 */ 205 #define INDEX_NOT_FOUND 0xFFFF 205 #define BUSDEVFN_NOT_FOUND 0xFFFF 206 207 /* In the search algorithm, we decrement the device index every time 208 * a matching device is found. If the requested device is indeed found, 209 * the index will have decremented down to -1/0xFFFF. 210 */ 211 #define INDEX_DEV_FOUND 0xFFFF 206 212 207 213 /* Find a specified PCI device, either by vendor+device ID or class. … … 296 302 } while ((bus_dev_fn >> 8) <= max_bus); 297 303 298 if (index == INDEX_ NOT_FOUND)304 if (index == INDEX_DEV_FOUND) 299 305 BX_DEBUG_PCI("PCI: Device found (%02X:%%02X:%01X)\n", bus_dev_fn >> 8, 300 306 bus_dev_fn >> 3 & 31, bus_dev_fn & 7); 301 307 302 return index == INDEX_ NOT_FOUND ? bus_dev_fn : INDEX_NOT_FOUND;308 return index == INDEX_DEV_FOUND ? bus_dev_fn : BUSDEVFN_NOT_FOUND; 303 309 } 304 310 … … 330 336 } else { 331 337 device = PCIxx(find_device)(DX | (uint32_t)CX << 16, SI, 0); 332 if (device == INDEX_NOT_FOUND) {338 if (device == BUSDEVFN_NOT_FOUND) { 333 339 SET_AH(DEVICE_NOT_FOUND); 334 340 SET_CF(); … … 340 346 case FIND_PCI_CLASS_CODE: 341 347 device = PCIxx(find_device)(ECX, SI, 1); 342 if (device == INDEX_NOT_FOUND) {348 if (device == BUSDEVFN_NOT_FOUND) { 343 349 SET_AH(DEVICE_NOT_FOUND); 344 350 SET_CF();
Note:
See TracChangeset
for help on using the changeset viewer.