Changeset 82883 in vbox for trunk/src/VBox/Devices/testcase/tstDeviceInternal.h
- Timestamp:
- Jan 27, 2020 6:20:21 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/testcase/tstDeviceInternal.h
r76565 r82883 21 21 #endif 22 22 23 #include <VBox/param.h> 23 24 #include <VBox/types.h> 24 25 #include <iprt/assert.h> … … 27 28 28 29 #include "tstDevicePlugin.h" 29 #include "tstDeviceVMMInternal.h"30 30 31 31 RT_C_DECLS_BEGIN … … 34 34 /** Converts PDM device instance to the device under test structure. */ 35 35 #define TSTDEV_PDMDEVINS_2_DUT(a_pDevIns) ((a_pDevIns)->Internal.s.pDut) 36 37 /** Forward declaration of internal test device instance data. */ 38 typedef struct TSTDEVDUTINT *PTSTDEVDUTINT; 39 40 41 /** 42 * CFGM node structure. 43 */ 44 typedef struct CFGMNODE 45 { 46 /** Device under test this CFGM node is for. */ 47 PTSTDEVDUTINT pDut; 48 /** @todo: */ 49 } CFGMNODE; 50 51 52 /** 53 * Private device instance data. 54 */ 55 typedef struct PDMDEVINSINTR3 56 { 57 /** Pointer to the device under test the PDM device instance is for. */ 58 PTSTDEVDUTINT pDut; 59 } PDMDEVINSINTR3; 60 AssertCompile(sizeof(PDMDEVINSINTR3) <= (HC_ARCH_BITS == 32 ? 72 : 112 + 0x28)); 61 62 /** 63 * Private device instance data. 64 */ 65 typedef struct PDMDEVINSINTR0 66 { 67 /** Pointer to the device under test the PDM device instance is for. */ 68 PTSTDEVDUTINT pDut; 69 } PDMDEVINSINTR0; 70 AssertCompile(sizeof(PDMDEVINSINTR0) <= (HC_ARCH_BITS == 32 ? 72 : 112 + 0x28)); 71 72 /** 73 * Private device instance data. 74 */ 75 typedef struct PDMDEVINSINTRC 76 { 77 /** Pointer to the device under test the PDM device instance is for. */ 78 PTSTDEVDUTINT pDut; 79 } PDMDEVINSINTRC; 80 AssertCompile(sizeof(PDMDEVINSINTRC) <= (HC_ARCH_BITS == 32 ? 72 : 112 + 0x28)); 81 82 typedef struct PDMPCIDEVINT 83 { 84 bool fRegistered; 85 } PDMPCIDEVINT; 86 87 #define PDMDEVINSINT_DECLARED 88 #define PDMPCIDEVINT_DECLARED 89 #define VMM_INCLUDED_SRC_include_VMInternal_h 90 #define VMM_INCLUDED_SRC_include_VMMInternal_h 91 RT_C_DECLS_END 92 #include <VBox/vmm/pdmdev.h> 93 #include <VBox/vmm/pdmpci.h> 94 #include <VBox/vmm/pdmdrv.h> 95 RT_C_DECLS_BEGIN 96 36 97 37 98 /** … … 66 127 void *pvUserR3; 67 128 /** Out handler - R3. */ 68 PFNIOMIOPORT OUTpfnOutR3;129 PFNIOMIOPORTNEWOUT pfnOutR3; 69 130 /** In handler - R3. */ 70 PFNIOMIOPORT INpfnInR3;131 PFNIOMIOPORTNEWIN pfnInR3; 71 132 /** Out string handler - R3. */ 72 PFNIOMIOPORT OUTSTRINGpfnOutStrR3;133 PFNIOMIOPORTNEWOUTSTRING pfnOutStrR3; 73 134 /** In string handler - R3. */ 74 PFNIOMIOPORT INSTRINGpfnInStrR3;135 PFNIOMIOPORTNEWINSTRING pfnInStrR3; 75 136 76 137 /** Opaque user data - R0. */ 77 138 void *pvUserR0; 78 139 /** Out handler - R0. */ 79 PFNIOMIOPORT OUTpfnOutR0;140 PFNIOMIOPORTNEWOUT pfnOutR0; 80 141 /** In handler - R0. */ 81 PFNIOMIOPORT INpfnInR0;142 PFNIOMIOPORTNEWIN pfnInR0; 82 143 /** Out string handler - R0. */ 83 PFNIOMIOPORT OUTSTRINGpfnOutStrR0;144 PFNIOMIOPORTNEWOUTSTRING pfnOutStrR0; 84 145 /** In string handler - R0. */ 85 PFNIOMIOPORT INSTRINGpfnInStrR0;146 PFNIOMIOPORTNEWINSTRING pfnInStrR0; 86 147 87 148 #ifdef TSTDEV_SUPPORTS_RC … … 89 150 void *pvUserRC; 90 151 /** Out handler - RC. */ 91 PFNIOMIOPORT OUTpfnOutRC;152 PFNIOMIOPORTNEWOUT pfnOutRC; 92 153 /** In handler - RC. */ 93 PFNIOMIOPORT INpfnInRC;154 PFNIOMIOPORTNEWIN pfnInRC; 94 155 /** Out string handler - RC. */ 95 PFNIOMIOPORT OUTSTRINGpfnOutStrRC;156 PFNIOMIOPORTNEWOUTSTRING pfnOutStrRC; 96 157 /** In string handler - RC. */ 97 PFNIOMIOPORT INSTRINGpfnInStrRC;158 PFNIOMIOPORTNEWINSTRING pfnInStrRC; 98 159 #endif 99 160 } RTDEVDUTIOPORT; … … 204 265 /** The SUP session we emulate. */ 205 266 TSTDEVSUPDRVSESSION SupSession; 206 /** The VM state asso icated with this device. */267 /** The VM state associated with this device. */ 207 268 PVM pVm; 208 269 /** The registered PCI device instance if this is a PCI device. */ … … 213 274 214 275 276 extern const PDMDEVHLPR3 g_tstDevPdmDevHlpR3; 277 278 215 279 DECLHIDDEN(int) tstDevPdmLdrGetSymbol(PTSTDEVDUTINT pThis, const char *pszMod, TSTDEVPDMMODTYPE enmModType, 216 280 const char *pszSymbol, PFNRT *ppfn);
Note:
See TracChangeset
for help on using the changeset viewer.