VirtualBox

Changeset 18622 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 2, 2009 9:03:45 AM (16 years ago)
Author:
vboxsync
Message:

e1000: Changed card ids for 82545EM to VMWare Network Adapter for compatibility.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r18591 r18622  
    129129/*****************************************************************************/
    130130
    131 /* Intel */
    132 #define E1K_VENDOR_ID            0x8086
    133 /* 82540EM-A (Desktop) */
    134 #define E1K_DEVICE_ID_82540EM    0x100E
    135 /* 82545EM-A (Server) */
    136 #define E1K_DEVICE_ID_82545EM    0x100F
    137 /* 82543GC (Server) */
    138 #define E1K_DEVICE_ID_82543GC    0x1004
    139 /* Intel */
    140 #define E1K_SUBSYSTEM_VENDOR_ID  0x8086
    141 /* PRO/1000 MT Desktop Ethernet */
    142 #define E1K_SUBSYSTEM_ID_82540EM 0x001E
    143 /* PRO/1000 MT Server Ethernet */
    144 #define E1K_SUBSYSTEM_ID_82545EM 0x1001
    145 /* PRO/1000 T Server Ethernet */
    146 #define E1K_SUBSYSTEM_ID_82543GC 0x1004
    147 
    148131typedef uint32_t E1KCHIP;
    149132#define E1K_CHIP_82540EM 0
     
    153136struct E1kChips
    154137{
     138    uint16_t uPCIVendorId;
    155139    uint16_t uPCIDeviceId;
     140    uint16_t uPCISubsystemVendorId;
    156141    uint16_t uPCISubsystemId;
    157142    const char *pcszName;
    158143} g_Chips[] =
    159144{
    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 */
    163149};
    164150
     
    45784564    Assert(eChip < RT_ELEMENTS(g_Chips));
    45794565    /* Configure PCI Device, assume 32-bit mode ******************************/
    4580     PCIDevSetVendorId(&pci, E1K_VENDOR_ID);
     4566    PCIDevSetVendorId(&pci, g_Chips[eChip].uPCIVendorId);
    45814567    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);
    45834569    e1kPCICfgSetU16(pci, VBOX_PCI_SUBSYSTEM_ID, g_Chips[eChip].uPCISubsystemId);
    45844570
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette