VirtualBox

Changeset 35986 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 15, 2011 5:50:34 PM (14 years ago)
Author:
vboxsync
Message:

raw PCI: device open/close

File:
1 edited

Legend:

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

    r35959 r35986  
    3232RT_C_DECLS_BEGIN
    3333
     34/**
     35 * Handle for the raw PCI device.
     36 */
     37typedef RTR0PTR PCIRAWDEVHANDLE;
     38
     39
     40/** Parameters buffer for PCIRAWR0_DO_OPEN_DEVICE call */
     41typedef struct
     42{
     43    /* in */
     44    uint32_t PciAddress;
     45    uint32_t fFlags;
     46    /* out */
     47    PCIRAWDEVHANDLE Device;
     48} PCIRAWREQOPENDEVICE;
     49
     50/** Parameters buffer for PCIRAWR0_DO_CLOSE_DEVICE call */
     51typedef struct
     52{
     53    /* in */
     54    uint32_t fFlags;
     55} PCIRAWREQCLOSEDEVICE;
     56
     57
    3458/** Parameters buffer for PCIRAWR0_DO_GET_REGION_INFO call */
    3559typedef struct
     
    130154} PCIRAWREQPCICFGREAD;
    131155
    132 
    133 /**
    134  * Handle for the raw PCI device.
    135  */
    136 typedef RTR0PTR PCIRAWDEVHANDLE;
    137 
    138156/**
    139157 * Request buffer use for communication with the driver.
     
    154172    union
    155173    {
     174        PCIRAWREQOPENDEVICE    aOpenDevice;
     175        PCIRAWREQCLOSEDEVICE   aCloseDevice;
    156176        PCIRAWREQGETREGIONINFO aGetRegionInfo;
    157177        PCIRAWREQMAPREGION     aMapRegion;
     
    172192typedef enum PCIRAWR0OPERATION
    173193{
     194    /* Open device. */
     195    PCIRAWR0_DO_OPEN_DEVICE,
     196    /* Close device. */
     197    PCIRAWR0_DO_CLOSE_DEVICE,
    174198    /* Get PCI region info. */
    175199    PCIRAWR0_DO_GET_REGION_INFO,
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