Changeset e8d6ce2 in mainline
- Timestamp:
- 2013-09-10T13:47:34Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- feeac0d
- Parents:
- 4cdcd2b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/pci/pciintel/pci.c
r4cdcd2b re8d6ce2 454 454 { 455 455 /* Value of the BAR */ 456 uint32_t val, mask; 456 uint32_t val; 457 uint32_t bar; 458 uint32_t mask; 459 457 460 /* IO space address */ 458 461 bool io; … … 492 495 /* Get the address mask. */ 493 496 pci_conf_write_32(fun, addr, 0xffffffff); 494 mask &= pci_conf_read_32(fun, addr); 495 497 bar = pci_conf_read_32(fun, addr); 498 499 /* 500 * Unimplemented BARs read back as all 0's. 501 */ 502 if (!bar) 503 return addr + (addrw64 ? 8 : 4); 504 505 mask &= bar; 506 496 507 /* Restore the original value. */ 497 508 pci_conf_write_32(fun, addr, val);
Note:
See TracChangeset
for help on using the changeset viewer.