VirtualBox

Changeset 35855 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 4, 2011 5:02:44 PM (14 years ago)
Author:
vboxsync
Message:

PCI: start of driver communication infrastructure

Location:
trunk/include/VBox
Files:
3 edited

Legend:

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

    r31508 r35855  
    6060#define IN_INTNET_R0
    6161#define IN_INTNET_R3
     62#define IN_PCIRAW_R0
     63#define IN_PCIRAW_R3
    6264#define IN_REM_R3
    6365#define IN_SUP_R0
     
    145147#endif
    146148
     149/** @def IN_PCIRAW_R3
     150 * Used to indicate whether we're inside the same link module as the Ring-3
     151 * PCI passthrough support.
     152 */
     153/** @def PCIRAWR3DECL(type)
     154 * PCI passthrough export or import declaration.
     155 * @param   type    The return type of the function declaration.
     156 */
     157#ifdef IN_PCIRAW_R3
     158# define PCIRAWR3DECL(type) DECLEXPORT(type) VBOXCALL
     159#else
     160# define PCIRAWR3DECL(type) DECLIMPORT(type) VBOXCALL
     161#endif
     162
     163/** @def IN_PCIRAW_R0
     164 * Used to indicate whether we're inside the same link module as the R0
     165 * PCI passthrough support.
     166 */
     167/** @def PCIRAWR0DECL(type)
     168 * PCI passthroug export or import declaration.
     169 * @param   type    The return type of the function declaration.
     170 */
     171#ifdef IN_PCIRAW_R0
     172# define PCIRAWR0DECL(type) DECLEXPORT(type) VBOXCALL
     173#else
     174# define PCIRAWR0DECL(type) DECLIMPORT(type) VBOXCALL
     175#endif
    147176
    148177
  • trunk/include/VBox/sup.h

    r35191 r35855  
    11171117    /** Multiple release event semaphore. */
    11181118    SUPDRVOBJTYPE_SEM_EVENT_MULTI,
     1119    /** Raw PCI device. */
     1120    SUPDRVOBJTYPE_RAW_PCI_DEVICE,
    11191121    /** The first invalid object type in this end. */
    11201122    SUPDRVOBJTYPE_END,
  • trunk/include/VBox/vmm/vmm.h

    r35361 r35855  
    376376    /** Call IntNetR0IfAbortWait(). */
    377377    VMMR0_DO_INTNET_IF_ABORT_WAIT,
     378
     379    /** Forward call to the PCI driver */
     380    VMMR0_DO_PCIRAW_REQ,
     381
    378382    /** The end of the R0 service operations. */
    379383    VMMR0_DO_SRV_END,
     
    456460
    457461#endif
    458 
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