Ticket #1853: RTL8169 - Offset Bug.diff
File RTL8169 - Offset Bug.diff, 777 bytes (added by , 16 years ago) |
---|
-
src/add-ons/kernel/drivers/network/rtl8169/device.c
499 499 } 500 500 501 501 TRACE("IRQ %d\n", device->irq); 502 502 503 503 // map registers into memory 504 val = gPci->read_pci_config(device->pciInfo->bus, device->pciInfo->device, device->pciInfo->function, 0x1 4, 4);504 val = gPci->read_pci_config(device->pciInfo->bus, device->pciInfo->device, device->pciInfo->function, 0x18, 4); 505 505 val &= PCI_address_memory_32_mask; 506 506 TRACE("hardware register address %p\n", (void *) val); 507 507 device->regArea = map_mem(&device->regAddr, (void *)val, 256, 0, "rtl8169 register");