VirtualBox

Changeset 36028 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 21, 2011 9:54:29 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70134
Message:

PCI: more host API, lifetime issues

File:
1 edited

Legend:

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

    r35986 r36028  
    6262    int32_t  iRegion;
    6363    /* out */
    64     RTHCPHYS RegionStart;
     64    RTGCPHYS RegionStart;
    6565    uint64_t u64RegionSize;
    6666    bool     fPresent;
     
    258258     * @param   fFlags    Initialization flags.
    259259     */
    260     DECLR0CALLBACKMEMBER(int,  pfnInit,(PRAWPCIDEVPORT pPort, 
     260    DECLR0CALLBACKMEMBER(int,  pfnInit,(PRAWPCIDEVPORT pPort,
    261261                                        uint32_t       fFlags));
    262    
    263    
     262
     263
     264    /**
     265     * Deinit device.
     266     *
     267     * @param   pPort     Pointer to this structure.
     268     * @param   fFlags    Initialization flags.
     269     */
     270    DECLR0CALLBACKMEMBER(int,  pfnDeinit,(PRAWPCIDEVPORT pPort,
     271                                          uint32_t       fFlags));
     272
     273
     274    /**
     275     * Get PCI region info.
     276     *
     277     * @param   pPort     Pointer to this structure.
     278     */
     279    DECLR0CALLBACKMEMBER(int,  pfnGetRegionInfo,(PRAWPCIDEVPORT pPort,
     280                                                 int32_t        iRegion,
     281                                                 RTHCPHYS       *pRegionStart,
     282                                                 uint64_t       *pu64RegionSize,
     283                                                 bool           *pfPresent,
     284                                                 bool           *pfMmio));
     285
     286
     287    /**
     288     * Map PCI region.
     289     *
     290     * @param   pPort     Pointer to this structure.
     291     */
     292    DECLR0CALLBACKMEMBER(int,  pfnMapRegion,(PRAWPCIDEVPORT pPort,
     293                                             int32_t        iRegion,
     294                                             RTHCPHYS       pRegionStart,
     295                                             uint64_t       u64RegionSize,
     296                                             RTR0PTR        *pRegionBase));
     297
     298    /**
     299     * Read device PCI register.
     300     *
     301     * @param   pPort     Pointer to this structure.
     302     * @param   fFlags    Initialization flags.
     303     */
     304    DECLR0CALLBACKMEMBER(int,  pfnPciCfgRead,(PRAWPCIDEVPORT pPort,
     305                                              uint32_t          Register,
     306                                              PCIRAWMEMLOC      *pValue));
     307
     308
     309    /**
     310     * Write device PCI register.
     311     *
     312     * @param   pPort     Pointer to this structure.
     313     * @param   fFlags    Initialization flags.
     314     */
     315    DECLR0CALLBACKMEMBER(int,  pfnPciCfgWrite,(PRAWPCIDEVPORT pPort,
     316                                               uint32_t          Register,
     317                                               PCIRAWMEMLOC      *pValue));
    264318
    265319    /** Structure version number. (RAWPCIDEVPORT_VERSION) */
     
    299353     *
    300354     */
    301     DECLR0CALLBACKMEMBER(int, pfnCreateAndConnect,(PRAWPCIFACTORY       pFactory, 
    302                                                    uint32_t             u32HostAddress, 
     355    DECLR0CALLBACKMEMBER(int, pfnCreateAndConnect,(PRAWPCIFACTORY       pFactory,
     356                                                   uint32_t             u32HostAddress,
    303357                                                   uint32_t             fFlags,
    304358                                                   PRAWPCIDEVPORT       *ppDevPort));
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