Changes in uspace/drv/bus/pci/pciintel/pci.c [65f77f4:82721f5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/pci/pciintel/pci.c
r65f77f4 r82721f5 454 454 { 455 455 /* Value of the BAR */ 456 uint32_t val; 457 uint32_t bar; 458 uint32_t mask; 459 456 uint32_t val, mask; 460 457 /* IO space address */ 461 458 bool io; … … 495 492 /* Get the address mask. */ 496 493 pci_conf_write_32(fun, addr, 0xffffffff); 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 494 mask &= pci_conf_read_32(fun, addr); 495 507 496 /* Restore the original value. */ 508 497 pci_conf_write_32(fun, addr, val); … … 552 541 { 553 542 uint8_t irq = pci_conf_read_8(fun, PCI_BRIDGE_INT_LINE); 554 uint8_t pin = pci_conf_read_8(fun, PCI_BRIDGE_INT_PIN); 555 556 if (pin != 0 && irq != 0xff) 543 if (irq != 0xff) 557 544 pci_add_interrupt(fun, irq); 558 545 }
Note:
See TracChangeset
for help on using the changeset viewer.