Ticket #1770: rtl8169 - extra device id.diff

File rtl8169 - extra device id.diff, 1.0 KB (added by anxiety, 17 years ago)
  • src/add-ons/kernel/drivers/network/rtl8169/driver.c

     
    5050    if (get_module(B_PCI_MODULE_NAME, (module_info **)&pci) < B_OK)
    5151        return B_ERROR;
    5252    for (res = B_ERROR, i = 0; pci->get_nth_pci_info(i, &info) == B_OK; i++) {
    53         if (info.vendor_id == 0x10ec && (info.device_id == 0x8169 || info.device_id == 0x8167)) {
     53        if (info.vendor_id == 0x10ec && (info.device_id >= 0x8167 || info.device_id <= 0x8169)) {
    5454            res = B_OK;
    5555            break;
    5656        }
     
    8686    }
    8787   
    8888    for (cards = 0, index = 0; gPci->get_nth_pci_info(index++, item) == B_OK; ) {
    89         if (item->vendor_id == 0x10ec && (item->device_id == 0x8169 || item->device_id == 0x8167)) {
     89        if (item->vendor_id == 0x10ec && (item->device_id >= 0x8167 || item->device_id <= 0x8169)) {
    9090            char name[64];
    9191            sprintf(name, "net/rtl8169/%d", cards);
    9292            gDevList[cards] = item;