It seems the RTL 8167 chip works with our 8169 driver unchanged, even though I might just got
lucky. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23234 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -50,7 +50,7 @@ init_hardware(void)
|
|||||||
if (get_module(B_PCI_MODULE_NAME, (module_info **)&pci) < B_OK)
|
if (get_module(B_PCI_MODULE_NAME, (module_info **)&pci) < B_OK)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
for (res = B_ERROR, i = 0; pci->get_nth_pci_info(i, &info) == B_OK; i++) {
|
for (res = B_ERROR, i = 0; pci->get_nth_pci_info(i, &info) == B_OK; i++) {
|
||||||
if (info.vendor_id == 0x10ec && info.device_id == 0x8169) {
|
if (info.vendor_id == 0x10ec && (info.device_id == 0x8169 || info.device_id == 0x8167)) {
|
||||||
res = B_OK;
|
res = B_OK;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -86,7 +86,7 @@ init_driver(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (cards = 0, index = 0; gPci->get_nth_pci_info(index++, item) == B_OK; ) {
|
for (cards = 0, index = 0; gPci->get_nth_pci_info(index++, item) == B_OK; ) {
|
||||||
if (item->vendor_id == 0x10ec && item->device_id == 0x8169) {
|
if (item->vendor_id == 0x10ec && (item->device_id == 0x8169 || item->device_id == 0x8167)) {
|
||||||
char name[64];
|
char name[64];
|
||||||
sprintf(name, "net/rtl8169/%d", cards);
|
sprintf(name, "net/rtl8169/%d", cards);
|
||||||
gDevList[cards] = item;
|
gDevList[cards] = item;
|
||||||
|
|||||||
Reference in New Issue
Block a user