VirtualBox

Changeset 30898 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 19, 2010 7:27:44 AM (14 years ago)
Author:
vboxsync
Message:

PCI: PCIDev{Get|Set}CapabilityList have been added.

File:
1 edited

Legend:

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

    r30488 r30898  
    450450}
    451451
     452/**
     453 * Sets offset to capability list.
     454 *
     455 * @param   pPciDev         The PCI device.
     456 * @param   u8Offset        The offset to capability list.
     457 */
     458DECLINLINE(void) PCIDevSetCapabilityList(PPCIDEVICE pPciDev, uint8_t u8Offset)
     459{
     460    pPciDev->config[VBOX_PCI_CAPABILITY_LIST] = u8Offset;
     461}
     462
     463/**
     464 * Returns offset to capability list.
     465 *
     466 * @returns offset to capability list.
     467 * @param   pPciDev         The PCI device.
     468 */
     469DECLINLINE(uint8_t) PCIDevGetCapabilityList(PPCIDEVICE pPciDev)
     470{
     471    return pPciDev->config[VBOX_PCI_CAPABILITY_LIST];
     472}
    452473
    453474/**
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