Ticket #1770: rtl8169 - extra device id.diff
File rtl8169 - extra device id.diff, 1.0 KB (added by , 17 years ago) |
---|
-
src/add-ons/kernel/drivers/network/rtl8169/driver.c
50 50 if (get_module(B_PCI_MODULE_NAME, (module_info **)&pci) < B_OK) 51 51 return B_ERROR; 52 52 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)) { 54 54 res = B_OK; 55 55 break; 56 56 } … … 86 86 } 87 87 88 88 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)) { 90 90 char name[64]; 91 91 sprintf(name, "net/rtl8169/%d", cards); 92 92 gDevList[cards] = item;