VirtualBox

Changeset 35986 in vbox for trunk/src/VBox


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

raw PCI: device open/close

Location:
trunk/src/VBox/HostDrivers/VBoxPci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c

    r35959 r35986  
    3939
    4040
     41#define DEVPORT_2_VBOXRAWPCIINS(pPort) \
     42    ( (PVBOXRAWPCIINS)((uint8_t *)pPort - RT_OFFSETOF(VBOXRAWPCIINS, DevPort)) )
     43
     44
    4145/**
    4246 * Implements the SUPDRV component factor interface query method.
     
    7478 * @copydoc RAWPCIDEVPORT:: pfnRetain
    7579 */
    76 DECLHIDDEN(void) vboxPciDevRetain(PRAWPCIDEVPORT pThis)
     80DECLHIDDEN(void) vboxPciDevRetain(PRAWPCIDEVPORT pPort)
    7781{
    7882}
     
    8185 * @copydoc RAWPCIDEVPORT:: pfnRelease
    8286 */
    83 DECLHIDDEN(void) vboxPciDevRelease(PRAWPCIDEVPORT pThis)
    84 {
    85 }
    86 
    87 /**
    88  * @copydoc RAWPCIDEVPORT:: pfnRelease
    89  */
    90 DECLHIDDEN(int) vboxPciDevInit(PRAWPCIDEVPORT pThis, uint32_t fFlags)
    91 {
    92     return VINF_SUCCESS;
     87DECLHIDDEN(void) vboxPciDevRelease(PRAWPCIDEVPORT pPort)
     88{
     89}
     90
     91/**
     92 * @copydoc RAWPCIDEVPORT:: pfnInit
     93 */
     94DECLHIDDEN(int) vboxPciDevInit(PRAWPCIDEVPORT pPort, uint32_t fFlags)
     95{
     96    PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort);
     97
     98    int rc = vboxPciOsDevInit(pThis, fFlags);
     99
     100    return rc;
    93101}
    94102
     
    144152}
    145153
    146 
    147154/**
    148155 * @copydoc RAWPCIFACTORY::pfnCreateAndConnect
  • trunk/src/VBox/HostDrivers/VBoxPci/VBoxPciInternal.h

    r35946 r35986  
    8888DECLHIDDEN(void) vboxPciShutdown(PVBOXRAWPCIGLOBALS pGlobals);
    8989
     90DECLHIDDEN(int)  vboxPciOsDevInit  (PVBOXRAWPCIINS pIns, uint32_t fFlags);
     91DECLHIDDEN(int)  vboxPciOsDevDeinit(PVBOXRAWPCIINS pIns, uint32_t fFlags);
     92
    9093RT_C_DECLS_END
    9194
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