VirtualBox

Changeset 11149 in vbox for trunk/include


Ignore:
Timestamp:
Aug 5, 2008 10:09:35 PM (16 years ago)
Author:
vboxsync
Message:

PDMDEVINS_2_RCPTR

File:
1 edited

Legend:

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

    r10661 r11149  
    30303030/** @def PDMDEVINS_2_GCPTR
    30313031 * Converts a PDM Device instance pointer a GC PDM Device instance pointer.
    3032  */
    3033 #define PDMDEVINS_2_GCPTR(pDevIns)  ( (RCPTRTYPE(PPDMDEVINS))((RTGCUINTPTR)(pDevIns)->pvInstanceDataGC - RT_OFFSETOF(PDMDEVINS, achInstanceData)) )
     3032 * @deprecated Use PDMDEVINS_2_RCPTR.
     3033 */
     3034#define PDMDEVINS_2_GCPTR(pDevIns)  PDMDEVINS_2_RCPTR(pDevIns)
     3035
     3036/** @def PDMDEVINS_2_RCPTR
     3037 * Converts a PDM Device instance pointer a RC PDM Device instance pointer.
     3038 */
     3039#define PDMDEVINS_2_RCPTR(pDevIns)  ( (RCPTRTYPE(PPDMDEVINS))((RTGCUINTPTR)(pDevIns)->pvInstanceDataGC - RT_OFFSETOF(PDMDEVINS, achInstanceData)) )
    30343040
    30353041/** @def PDMDEVINS_2_R3PTR
    3036  * Converts a PDM Device instance pointer a HC PDM Device instance pointer.
     3042 * Converts a PDM Device instance pointer a R3 PDM Device instance pointer.
    30373043 */
    30383044#define PDMDEVINS_2_R3PTR(pDevIns)  ( (R3PTRTYPE(PPDMDEVINS))((RTHCUINTPTR)(pDevIns)->pvInstanceDataR3 - RT_OFFSETOF(PDMDEVINS, achInstanceData)) )
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