VirtualBox

Changeset 2598 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 11, 2007 7:14:52 PM (18 years ago)
Author:
vboxsync
Message:

Added a bunch of pci register defines and created a couple of the setters/getters that should be created to make that pci config setup easier to read.

File:
1 edited

Legend:

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

    r2291 r2598  
    41244124
    41254125    /* PCI Device */
    4126     pData->PciDev.config[0x00] = 0x22; /* vendor id */
    4127     pData->PciDev.config[0x01] = 0x10;
    4128     pData->PciDev.config[0x02] = 0x00; /* device id */
    4129     pData->PciDev.config[0x03] = 0x20;
     4126    PCIDevSetVendorId(&pData->PciDev, 0x1022);
     4127    PCIDevSetDeviceId(&pData->PciDev, 0x2000);
    41304128    pData->PciDev.config[0x04] = 0x07; /* command */
    41314129    pData->PciDev.config[0x05] = 0x00;
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