VirtualBox

Changeset 4787 in vbox for trunk/include/VBox/pdmdev.h


Ignore:
Timestamp:
Sep 14, 2007 9:08:56 AM (17 years ago)
Author:
vboxsync
Message:

Eliminated HCPTRTYPE and replaced with R3R0PTRTYPE where necessary.

File:
1 edited

Legend:

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

    r4567 r4787  
    682682} PDMPCIHLPR3;
    683683/** Pointer to PCI helpers. */
    684 typedef HCPTRTYPE(PDMPCIHLPR3 *) PPDMPCIHLPR3;
     684typedef R3PTRTYPE(PDMPCIHLPR3 *) PPDMPCIHLPR3;
    685685/** Pointer to const PCI helpers. */
    686 typedef HCPTRTYPE(const PDMPCIHLPR3 *) PCPDMPCIHLPR3;
     686typedef R3PTRTYPE(const PDMPCIHLPR3 *) PCPDMPCIHLPR3;
    687687
    688688/** Current PDMPCIHLPR3 version number. */
     
    905905
    906906/** Pointer to PIC HC helpers. */
    907 typedef HCPTRTYPE(PDMPICHLPR3 *) PPDMPICHLPR3;
     907typedef R3PTRTYPE(PDMPICHLPR3 *) PPDMPICHLPR3;
    908908/** Pointer to const PIC HC helpers. */
    909 typedef HCPTRTYPE(const PDMPICHLPR3 *) PCPDMPICHLPR3;
     909typedef R3PTRTYPE(const PDMPICHLPR3 *) PCPDMPICHLPR3;
    910910
    911911/** Current PDMPICHLPR3 version number. */
     
    12121212} PDMAPICHLPR3;
    12131213/** Pointer to APIC helpers. */
    1214 typedef HCPTRTYPE(PDMAPICHLPR3 *) PPDMAPICHLPR3;
     1214typedef R3PTRTYPE(PDMAPICHLPR3 *) PPDMAPICHLPR3;
    12151215/** Pointer to const APIC helpers. */
    1216 typedef HCPTRTYPE(const PDMAPICHLPR3 *) PCPDMAPICHLPR3;
     1216typedef R3PTRTYPE(const PDMAPICHLPR3 *) PCPDMAPICHLPR3;
    12171217
    12181218/** Current PDMAPICHLP version number. */
     
    14311431} PDMIOAPICHLPR3;
    14321432/** Pointer to IOAPIC HC helpers. */
    1433 typedef HCPTRTYPE(PDMIOAPICHLPR3 *) PPDMIOAPICHLPR3;
     1433typedef R3PTRTYPE(PDMIOAPICHLPR3 *) PPDMIOAPICHLPR3;
    14341434/** Pointer to const IOAPIC helpers. */
    1435 typedef HCPTRTYPE(const PDMIOAPICHLPR3 *) PCPDMIOAPICHLPR3;
     1435typedef R3PTRTYPE(const PDMIOAPICHLPR3 *) PCPDMIOAPICHLPR3;
    14361436
    14371437/** Current PDMIOAPICHLPR3 version number. */
     
    18361836     * @param   ppTimer         Where to store the timer on success.
    18371837     */
    1838     DECLR3CALLBACKMEMBER(int, pfnTMTimerCreate,(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, const char *pszDesc, PPTMTIMERHC ppTimer));
     1838    DECLR3CALLBACKMEMBER(int, pfnTMTimerCreate,(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, const char *pszDesc, PPTMTIMERR3 ppTimer));
    18391839
    18401840    /**
     
    18491849     *                          until the timer is fully destroyed (i.e. a bit after TMTimerDestroy()).
    18501850     */
    1851     DECLR3CALLBACKMEMBER(PTMTIMERHC, pfnTMTimerCreateExternal,(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMEREXT pfnCallback, void *pvUser, const char *pszDesc));
     1851    DECLR3CALLBACKMEMBER(PTMTIMERR3, pfnTMTimerCreateExternal,(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMEREXT pfnCallback, void *pvUser, const char *pszDesc));
    18521852
    18531853    /**
     
    25672567#endif /* !IN_RING3 */
    25682568/** Pointer PDM Device API. */
    2569 typedef HCPTRTYPE(struct PDMDEVHLP *) PPDMDEVHLP;
     2569typedef R3PTRTYPE(struct PDMDEVHLP *) PPDMDEVHLP;
    25702570/** Pointer PDM Device API. */
    2571 typedef HCPTRTYPE(const struct PDMDEVHLP *) PCPDMDEVHLP;
     2571typedef R3PTRTYPE(const struct PDMDEVHLP *) PCPDMDEVHLP;
    25722572
    25732573/** Current PDMDEVHLP version number. */
     
    28232823} PDMDEVHLPR0;
    28242824/** Pointer PDM Device R0 API. */
    2825 typedef HCPTRTYPE(struct PDMDEVHLPR0 *) PPDMDEVHLPR0;
     2825typedef R0PTRTYPE(struct PDMDEVHLPR0 *) PPDMDEVHLPR0;
    28262826/** Pointer PDM Device GC API. */
    2827 typedef HCPTRTYPE(const struct PDMDEVHLPR0 *) PCPDMDEVHLPR0;
     2827typedef R0PTRTYPE(const struct PDMDEVHLPR0 *) PCPDMDEVHLPR0;
    28282828
    28292829/** Current PDMDEVHLP version number. */
     
    29332933 * Converts a PDM Device instance pointer a HC PDM Device instance pointer.
    29342934 */
    2935 #define PDMDEVINS_2_R3PTR(pDevIns)  ( (HCPTRTYPE(PPDMDEVINS))((RTHCUINTPTR)(pDevIns)->pvInstanceDataR3 - RT_OFFSETOF(PDMDEVINS, achInstanceData)) )
     2935#define PDMDEVINS_2_R3PTR(pDevIns)  ( (R3PTRTYPE(PPDMDEVINS))((RTHCUINTPTR)(pDevIns)->pvInstanceDataR3 - RT_OFFSETOF(PDMDEVINS, achInstanceData)) )
    29362936
    29372937/** @def PDMDEVINS_2_R0PTR
     
    30593059 * @copydoc PDMDEVHLP::pfnTMTimerCreate
    30603060 */
    3061 DECLINLINE(int) PDMDevHlpTMTimerCreate(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, const char *pszDesc, PPTMTIMERHC ppTimer)
     3061DECLINLINE(int) PDMDevHlpTMTimerCreate(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, const char *pszDesc, PPTMTIMERR3 ppTimer)
    30623062{
    30633063    return pDevIns->pDevHlp->pfnTMTimerCreate(pDevIns, enmClock, pfnCallback, pszDesc, ppTimer);
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