VirtualBox

Changeset 35885 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 8, 2011 1:20:04 AM (14 years ago)
Author:
vboxsync
Message:

Main, VMM, vboxshell: more PCI work (persistent settings, logging, more driver API), API consumer in vboxshell

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/log.h

    r34219 r35885  
    120120    /** PCI Device group. */
    121121    LOG_GROUP_DEV_PCI,
     122    /** PCI Raw Device group. */
     123    LOG_GROUP_DEV_PCI_RAW,
    122124    /** PCNet Device group. */
    123125    LOG_GROUP_DEV_PCNET,
     
    395397    "DEV_PC_BIOS",  \
    396398    "DEV_PCI",      \
     399    "DEV_PCI_RAW",  \
    397400    "DEV_PCNET",    \
    398401    "DEV_PIC",      \
  • trunk/include/VBox/settings.h

    r35146 r35885  
    693693
    694694/**
     695 * NOTE: If you add any fields in here, you must update a) the constructor and b)
     696 * the operator== which is used by MachineConfigFile::operator==(), or otherwise
     697 * your settings might never get saved.
     698 */
     699struct HostPciDeviceAttachment
     700{
     701    HostPciDeviceAttachment()
     702        : uHostAddress(0),
     703          uGuestAddress(0)
     704    {}
     705
     706    bool operator==(const HostPciDeviceAttachment &a) const
     707    {
     708        return (   (uHostAddress   == a.uHostAddress)
     709                && (uGuestAddress  == a.uGuestAddress)
     710                && (strDeviceName  == a.strDeviceName)
     711               );
     712    }
     713
     714    com::Utf8Str    strDeviceName;
     715    uint32_t        uHostAddress;
     716    uint32_t        uGuestAddress;
     717};
     718typedef std::list<HostPciDeviceAttachment> HostPciDeviceAttachmentList;
     719
     720/**
    695721 * Representation of Machine hardware; this is used in the MachineConfigFile.hardwareMachine
    696722 * field.
     
    761787
    762788    IoSettings          ioSettings;             // requires settings version 1.10 (VirtualBox 3.2)
     789    HostPciDeviceAttachmentList pciAttachments; // requires settings version 1.12 (VirtualBox 4.1)
    763790};
    764791
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