Changeset 18622 in vbox for trunk/src/VBox
- Timestamp:
- Apr 2, 2009 9:03:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r18591 r18622 129 129 /*****************************************************************************/ 130 130 131 /* Intel */132 #define E1K_VENDOR_ID 0x8086133 /* 82540EM-A (Desktop) */134 #define E1K_DEVICE_ID_82540EM 0x100E135 /* 82545EM-A (Server) */136 #define E1K_DEVICE_ID_82545EM 0x100F137 /* 82543GC (Server) */138 #define E1K_DEVICE_ID_82543GC 0x1004139 /* Intel */140 #define E1K_SUBSYSTEM_VENDOR_ID 0x8086141 /* PRO/1000 MT Desktop Ethernet */142 #define E1K_SUBSYSTEM_ID_82540EM 0x001E143 /* PRO/1000 MT Server Ethernet */144 #define E1K_SUBSYSTEM_ID_82545EM 0x1001145 /* PRO/1000 T Server Ethernet */146 #define E1K_SUBSYSTEM_ID_82543GC 0x1004147 148 131 typedef uint32_t E1KCHIP; 149 132 #define E1K_CHIP_82540EM 0 … … 153 136 struct E1kChips 154 137 { 138 uint16_t uPCIVendorId; 155 139 uint16_t uPCIDeviceId; 140 uint16_t uPCISubsystemVendorId; 156 141 uint16_t uPCISubsystemId; 157 142 const char *pcszName; 158 143 } g_Chips[] = 159 144 { 160 { E1K_DEVICE_ID_82540EM, E1K_SUBSYSTEM_ID_82540EM, "82540EM" }, 161 { E1K_DEVICE_ID_82543GC, E1K_SUBSYSTEM_ID_82543GC, "82543GC" }, 162 { E1K_DEVICE_ID_82545EM, E1K_SUBSYSTEM_ID_82545EM, "82545EM" } 145 /* Vendor Device SSVendor SubSys Name */ 146 { 0x8086, 0x100E, 0x8086, 0x001E, "82540EM" }, /* Intel 82540EM-A in Intel PRO/1000 MT Desktop */ 147 { 0x8086, 0x1004, 0x8086, 0x1004, "82543GC" }, /* Intel 82543GC in Intel PRO/1000 T Server */ 148 { 0x8086, 0x100F, 0x15AD, 0x0750, "82545EM" } /* Intel 82545EM-A in VMWare Network Adapter */ 163 149 }; 164 150 … … 4578 4564 Assert(eChip < RT_ELEMENTS(g_Chips)); 4579 4565 /* Configure PCI Device, assume 32-bit mode ******************************/ 4580 PCIDevSetVendorId(&pci, E1K_VENDOR_ID);4566 PCIDevSetVendorId(&pci, g_Chips[eChip].uPCIVendorId); 4581 4567 PCIDevSetDeviceId(&pci, g_Chips[eChip].uPCIDeviceId); 4582 e1kPCICfgSetU16(pci, VBOX_PCI_SUBSYSTEM_VENDOR_ID, E1K_SUBSYSTEM_VENDOR_ID);4568 e1kPCICfgSetU16(pci, VBOX_PCI_SUBSYSTEM_VENDOR_ID, g_Chips[eChip].uPCISubsystemVendorId); 4583 4569 e1kPCICfgSetU16(pci, VBOX_PCI_SUBSYSTEM_ID, g_Chips[eChip].uPCISubsystemId); 4584 4570
Note:
See TracChangeset
for help on using the changeset viewer.