VirtualBox

Changeset 32589 in vbox


Ignore:
Timestamp:
Sep 17, 2010 11:21:32 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65988
Message:

PCI: BIST setter/getter

File:
1 edited

Legend:

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

    r32556 r32589  
    387387}
    388388
    389 
    390389/**
    391390 * Sets the header type config register.
     
    408407{
    409408    return pPciDev->config[VBOX_PCI_HEADER_TYPE];
     409}
     410
     411/**
     412 * Sets the BIST (built-in self-test)config register.
     413 *
     414 * @param   pPciDev         The PCI device.
     415 * @param   u8Bist          The BIST value.
     416 */
     417DECLINLINE(void) PCIDevSetBIST(PPCIDEVICE pPciDev, uint8_t u8Bist)
     418{
     419    pPciDev->config[VBOX_PCI_BIST] = u8Bist;
     420}
     421
     422/**
     423 * Gets the BIST (built-in self-test)config register.
     424 *
     425 * @param   pPciDev         The PCI device.
     426 * @returns u8Bist          The BIST.
     427 */
     428DECLINLINE(uint8_t) PCIDevGetBIST(PPCIDEVICE pPciDev)
     429{
     430    return pPciDev->config[VBOX_PCI_BIST];
    410431}
    411432
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