Ticket #1853: RTL8169 - Slight Change.diff

File RTL8169 - Slight Change.diff, 685 bytes (added by anxiety, 14 years ago)

Slight change to axeld's fix.

  • src/add-ons/kernel/drivers/network/rtl8169/device.c

     
    512512
    513513    // map registers into memory
    514514
    515     if (device->pciInfo->device == 0x8168)
    516         mmioIndex = 0;
     515    if (device->pciInfo->device_id == 0x8168)
     516        mmioIndex = 2;
    517517    else
    518518        mmioIndex = 1;
    519519
    520     TRACE("hardware register address %p\n",
     520    TRACE("hardware register address [%i] %p\n", mmioIndex,
    521521        (void *)device->pciInfo->u.h0.base_registers[mmioIndex]);
    522522
    523523    device->regArea = map_mem(&device->regAddr,