[1] | 1 | /** @file
|
---|
| 2 | * VirtualBox - Common C and C++ definition.
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | /*
|
---|
[8155] | 6 | * Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
[1] | 7 | *
|
---|
| 8 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
| 9 | * available from http://www.virtualbox.org. This file is free software;
|
---|
| 10 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
[5999] | 11 | * General Public License (GPL) as published by the Free Software
|
---|
| 12 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
| 13 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
| 14 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
| 15 | *
|
---|
| 16 | * The contents of this file may alternatively be used under the terms
|
---|
| 17 | * of the Common Development and Distribution License Version 1.0
|
---|
| 18 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
| 19 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
| 20 | * CDDL are applicable instead of those of the GPL.
|
---|
| 21 | *
|
---|
| 22 | * You may elect to license modified versions of this file under the
|
---|
| 23 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
[8155] | 24 | *
|
---|
| 25 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
| 26 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
| 27 | * additional information or have any questions.
|
---|
[1] | 28 | */
|
---|
| 29 |
|
---|
[3632] | 30 | #ifndef ___VBox_cdefs_h
|
---|
| 31 | #define ___VBox_cdefs_h
|
---|
[1] | 32 |
|
---|
| 33 | #include <iprt/cdefs.h>
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | /** @def VBOX_WITH_STATISTICS
|
---|
| 37 | * When defined all statistics will be included in the build.
|
---|
| 38 | * This is enabled by default in all debug builds.
|
---|
| 39 | */
|
---|
| 40 | #ifndef VBOX_WITH_STATISTICS
|
---|
| 41 | # ifdef DEBUG
|
---|
| 42 | # define VBOX_WITH_STATISTICS
|
---|
| 43 | # endif
|
---|
| 44 | #endif
|
---|
| 45 |
|
---|
| 46 | /** @def VBOX_STRICT
|
---|
| 47 | * Alias for RT_STRICT.
|
---|
| 48 | */
|
---|
| 49 | #ifdef RT_STRICT
|
---|
| 50 | # ifndef VBOX_STRICT
|
---|
| 51 | # define VBOX_STRICT
|
---|
| 52 | # endif
|
---|
| 53 | #endif
|
---|
| 54 |
|
---|
| 55 |
|
---|
| 56 | /*
|
---|
| 57 | * Shut up DOXYGEN warnings and guide it properly thru the code.
|
---|
| 58 | */
|
---|
| 59 | #ifdef __DOXYGEN__
|
---|
| 60 | #define VBOX_WITH_STATISTICS
|
---|
| 61 | #ifndef VBOX_STRICT
|
---|
| 62 | # define VBOX_STRICT
|
---|
| 63 | #endif
|
---|
| 64 | #define IN_CFGM_GC
|
---|
| 65 | #define IN_CFGM_R3
|
---|
| 66 | #define IN_CPUM_GC
|
---|
| 67 | #define IN_CPUM_R0
|
---|
| 68 | #define IN_CPUM_R3
|
---|
| 69 | #define IN_CSAM_R0
|
---|
| 70 | #define IN_CSAM_R3
|
---|
| 71 | #define IN_CSAM_GC
|
---|
| 72 | #define IN_DBGF_R0
|
---|
| 73 | #define IN_DBGF_R3
|
---|
| 74 | #define IN_DBGF_GC
|
---|
| 75 | #define IN_DIS_GC
|
---|
| 76 | #define IN_DIS_R0
|
---|
| 77 | #define IN_DIS_R3
|
---|
| 78 | #define IN_EM_GC
|
---|
| 79 | #define IN_EM_R3
|
---|
| 80 | #define IN_EM_R0
|
---|
| 81 | #define IN_HWACCM_R0
|
---|
| 82 | #define IN_HWACCM_R3
|
---|
| 83 | #define IN_HWACCM_GC
|
---|
| 84 | #define IN_IDE_R3
|
---|
| 85 | #define IN_INTNET_R0
|
---|
| 86 | #define IN_INTNET_R3
|
---|
| 87 | #define IN_IOM_GC
|
---|
| 88 | #define IN_IOM_R3
|
---|
| 89 | #define IN_IOM_R0
|
---|
| 90 | #define IN_MM_GC
|
---|
| 91 | #define IN_MM_R0
|
---|
| 92 | #define IN_MM_R3
|
---|
| 93 | #define IN_PATM_R0
|
---|
| 94 | #define IN_PATM_R3
|
---|
| 95 | #define IN_PATM_GC
|
---|
| 96 | #define IN_PDM_GC
|
---|
| 97 | #define IN_PDM_R3
|
---|
| 98 | #define IN_PGM_GC
|
---|
| 99 | #define IN_PGM_R0
|
---|
| 100 | #define IN_PGM_R3
|
---|
| 101 | #define IN_REM_GC
|
---|
| 102 | #define IN_REM_R0
|
---|
| 103 | #define IN_REM_R3
|
---|
| 104 | #define IN_SELM_GC
|
---|
| 105 | #define IN_SELM_R0
|
---|
| 106 | #define IN_SELM_R3
|
---|
| 107 | #define IN_SSM_R3
|
---|
| 108 | #define IN_STAM_GC
|
---|
| 109 | #define IN_STAM_R0
|
---|
| 110 | #define IN_STAM_R3
|
---|
| 111 | #define IN_SUP_R0
|
---|
| 112 | #define IN_SUP_R3
|
---|
| 113 | #define IN_SUP_GC
|
---|
| 114 | #define IN_TM_GC
|
---|
| 115 | #define IN_TM_R0
|
---|
| 116 | #define IN_TM_R3
|
---|
| 117 | #define IN_TRPM_GC
|
---|
| 118 | #define IN_TRPM_R0
|
---|
| 119 | #define IN_TRPM_R3
|
---|
| 120 | #define IN_USB_GC
|
---|
| 121 | #define IN_USB_R0
|
---|
| 122 | #define IN_USB_R3
|
---|
[5562] | 123 | #define IN_USBLIB
|
---|
[1] | 124 | #define IN_VGADEVICE_GC
|
---|
| 125 | #define IN_VGADEVICE_R3
|
---|
| 126 | #define IN_VHHD_R3
|
---|
| 127 | #define IN_VM_GC
|
---|
| 128 | #define IN_VM_R0
|
---|
| 129 | #define IN_VM_R3
|
---|
| 130 | #define IN_VMM_GC
|
---|
| 131 | #define IN_VMM_R0
|
---|
| 132 | #define IN_VMM_R3
|
---|
| 133 | /** @todo fixme */
|
---|
| 134 | #endif
|
---|
| 135 |
|
---|
| 136 |
|
---|
| 137 |
|
---|
| 138 |
|
---|
| 139 | /** @def VBOXCALL
|
---|
| 140 | * The standard calling convention for VBOX interfaces.
|
---|
| 141 | */
|
---|
| 142 | #define VBOXCALL RTCALL
|
---|
| 143 |
|
---|
| 144 |
|
---|
| 145 |
|
---|
| 146 | /** @def IN_VM_R3
|
---|
| 147 | * Used to indicate whether we're inside the same link module as the ring 3 part of the
|
---|
| 148 | * virtual machine (the module) or not.
|
---|
| 149 | */
|
---|
| 150 | /** @def VMR3DECL
|
---|
| 151 | * Ring 3 VM export or import declaration.
|
---|
| 152 | * @param type The return type of the function declaration.
|
---|
| 153 | */
|
---|
| 154 | #ifdef IN_VM_R3
|
---|
| 155 | # define VMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 156 | #else
|
---|
| 157 | # define VMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 158 | #endif
|
---|
| 159 |
|
---|
| 160 | /** @def IN_VM_R0
|
---|
| 161 | * Used to indicate whether we're inside the same link module as the ring 0
|
---|
| 162 | * part of the virtual machine (the module) or not.
|
---|
| 163 | */
|
---|
| 164 | /** @def VMR0DECL
|
---|
| 165 | * Ring 0 VM export or import declaration.
|
---|
| 166 | * @param type The return type of the function declaration.
|
---|
| 167 | */
|
---|
| 168 | #ifdef IN_VM_R0
|
---|
| 169 | # define VMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 170 | #else
|
---|
| 171 | # define VMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 172 | #endif
|
---|
| 173 |
|
---|
| 174 | /** @def IN_VM_GC
|
---|
| 175 | * Used to indicate whether we're inside the same link module as the guest context
|
---|
| 176 | * part of the virtual machine (the module) or not.
|
---|
| 177 | */
|
---|
| 178 | /** @def VMGCDECL
|
---|
| 179 | * Guest context VM export or import declaration.
|
---|
| 180 | * @param type The return type of the function declaration.
|
---|
| 181 | */
|
---|
| 182 | #ifdef IN_VM_GC
|
---|
| 183 | # define VMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 184 | #else
|
---|
| 185 | # define VMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 186 | #endif
|
---|
| 187 |
|
---|
| 188 | /** @def VMDECL
|
---|
| 189 | * VM export or import declaration.
|
---|
| 190 | * @param type The return type of the function declaration.
|
---|
| 191 | */
|
---|
| 192 | #if defined(IN_VM_R3) || defined(IN_VM_R0) || defined(IN_VM_GC)
|
---|
| 193 | # define VMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 194 | #else
|
---|
| 195 | # define VMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 196 | #endif
|
---|
| 197 |
|
---|
| 198 |
|
---|
| 199 | /** @def IN_VMM_R3
|
---|
| 200 | * Used to indicate whether we're inside the same link module as the ring 3 part of the
|
---|
| 201 | * virtual machine monitor or not.
|
---|
| 202 | */
|
---|
| 203 | /** @def VMMR3DECL
|
---|
| 204 | * Ring 3 VMM export or import declaration.
|
---|
| 205 | * @param type The return type of the function declaration.
|
---|
| 206 | */
|
---|
| 207 | #ifdef IN_VMM_R3
|
---|
| 208 | # define VMMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 209 | #else
|
---|
| 210 | # define VMMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 211 | #endif
|
---|
| 212 |
|
---|
| 213 | /** @def IN_VMM_R0
|
---|
| 214 | * Used to indicate whether we're inside the same link module as the ring 0 part of the
|
---|
| 215 | * virtual machine monitor or not.
|
---|
| 216 | */
|
---|
| 217 | /** @def VMMR0DECL
|
---|
| 218 | * Ring 0 VMM export or import declaration.
|
---|
| 219 | * @param type The return type of the function declaration.
|
---|
| 220 | */
|
---|
| 221 | #ifdef IN_VMM_R0
|
---|
| 222 | # define VMMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 223 | #else
|
---|
| 224 | # define VMMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 225 | #endif
|
---|
| 226 |
|
---|
| 227 | /** @def IN_VMM_GC
|
---|
| 228 | * Used to indicate whether we're inside the same link module as the guest context
|
---|
| 229 | * part of the virtual machine monitor or not.
|
---|
| 230 | */
|
---|
| 231 | /** @def VMMGCDECL
|
---|
| 232 | * Guest context VMM export or import declaration.
|
---|
| 233 | * @param type The return type of the function declaration.
|
---|
| 234 | */
|
---|
| 235 | #ifdef IN_VMM_GC
|
---|
| 236 | # define VMMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 237 | #else
|
---|
| 238 | # define VMMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 239 | #endif
|
---|
| 240 |
|
---|
| 241 | /** @def VMMDECL
|
---|
| 242 | * VMM export or import declaration.
|
---|
| 243 | * @param type The return type of the function declaration.
|
---|
| 244 | */
|
---|
| 245 | #if defined(IN_VMM_R3) || defined(IN_VMM_R0) || defined(IN_VMM_GC)
|
---|
| 246 | # define VMMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 247 | #else
|
---|
| 248 | # define VMMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 249 | #endif
|
---|
| 250 |
|
---|
| 251 |
|
---|
| 252 | /** @def IN_DIS_R3
|
---|
| 253 | * Used to indicate whether we're inside the same link module as the
|
---|
| 254 | * Ring-3 disassembler or not.
|
---|
| 255 | */
|
---|
| 256 | /** @def DISR3DECL(type)
|
---|
| 257 | * Disassembly export or import declaration.
|
---|
| 258 | * @param type The return type of the function declaration.
|
---|
| 259 | */
|
---|
| 260 | #ifdef IN_DIS_R3
|
---|
| 261 | # define DISR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 262 | #else
|
---|
| 263 | # define DISR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 264 | #endif
|
---|
| 265 |
|
---|
| 266 | /** @def IN_DIS_R0
|
---|
| 267 | * Used to indicate whether we're inside the same link module as the
|
---|
| 268 | * Ring-0 disassembler or not.
|
---|
| 269 | */
|
---|
| 270 | /** @def DISR0DECL(type)
|
---|
| 271 | * Disassembly export or import declaration.
|
---|
| 272 | * @param type The return type of the function declaration.
|
---|
| 273 | */
|
---|
| 274 | #ifdef IN_DIS_R0
|
---|
| 275 | # define DISR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 276 | #else
|
---|
| 277 | # define DISR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 278 | #endif
|
---|
| 279 |
|
---|
| 280 | /** @def IN_DIS_GC
|
---|
| 281 | * Used to indicate whether we're inside the same link module as the
|
---|
| 282 | * GC disassembler or not.
|
---|
| 283 | */
|
---|
| 284 | /** @def DISGCDECL(type)
|
---|
| 285 | * Disassembly export or import declaration.
|
---|
| 286 | * @param type The return type of the function declaration.
|
---|
| 287 | */
|
---|
| 288 | #ifdef IN_DIS_GC
|
---|
| 289 | # define DISGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 290 | #else
|
---|
| 291 | # define DISGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 292 | #endif
|
---|
| 293 |
|
---|
| 294 | /** @def DISDECL(type)
|
---|
| 295 | * Disassembly export or import declaration.
|
---|
| 296 | * @param type The return type of the function declaration.
|
---|
| 297 | */
|
---|
| 298 | #if defined(IN_DIS_R3) ||defined(IN_DIS_R0) || defined(IN_DIS_GC)
|
---|
| 299 | # define DISDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 300 | #else
|
---|
| 301 | # define DISDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 302 | #endif
|
---|
| 303 |
|
---|
| 304 |
|
---|
| 305 | /** @def IN_SUP_R3
|
---|
| 306 | * Used to indicate whether we're inside the same link module as the Ring 3 Support Library or not.
|
---|
| 307 | */
|
---|
| 308 | /** @def SUPR3DECL(type)
|
---|
| 309 | * Support library export or import declaration.
|
---|
| 310 | * @param type The return type of the function declaration.
|
---|
| 311 | */
|
---|
| 312 | #ifdef IN_SUP_R3
|
---|
| 313 | # define SUPR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 314 | #else
|
---|
| 315 | # define SUPR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 316 | #endif
|
---|
| 317 |
|
---|
| 318 | /** @def IN_SUP_R0
|
---|
| 319 | * Used to indicate whether we're inside the same link module as the Ring 0 Support Library or not.
|
---|
| 320 | */
|
---|
| 321 | /** @def SUPR0DECL(type)
|
---|
| 322 | * Support library export or import declaration.
|
---|
| 323 | * @param type The return type of the function declaration.
|
---|
| 324 | */
|
---|
| 325 | #ifdef IN_SUP_R0
|
---|
| 326 | # define SUPR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 327 | #else
|
---|
| 328 | # define SUPR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 329 | #endif
|
---|
| 330 |
|
---|
| 331 | /** @def IN_SUP_GC
|
---|
| 332 | * Used to indicate whether we're inside the same link module as the GC Support Library or not.
|
---|
| 333 | */
|
---|
| 334 | /** @def SUPGCDECL(type)
|
---|
| 335 | * Support library export or import declaration.
|
---|
| 336 | * @param type The return type of the function declaration.
|
---|
| 337 | */
|
---|
| 338 | #ifdef IN_SUP_GC
|
---|
| 339 | # define SUPGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 340 | #else
|
---|
| 341 | # define SUPGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 342 | #endif
|
---|
| 343 |
|
---|
| 344 | /** @def IN_SUP_R0
|
---|
| 345 | * Used to indicate whether we're inside the same link module as the Ring 0 Support Library or not.
|
---|
| 346 | */
|
---|
| 347 | /** @def SUPR0DECL(type)
|
---|
| 348 | * Support library export or import declaration.
|
---|
| 349 | * @param type The return type of the function declaration.
|
---|
| 350 | */
|
---|
| 351 | #if defined(IN_SUP_R0) || defined(IN_SUP_R3) || defined(IN_SUP_GC)
|
---|
| 352 | # define SUPDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 353 | #else
|
---|
| 354 | # define SUPDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 355 | #endif
|
---|
| 356 |
|
---|
| 357 |
|
---|
| 358 |
|
---|
| 359 |
|
---|
| 360 | /** @def IN_PDM_R3
|
---|
| 361 | * Used to indicate whether we're inside the same link module as the Ring 3
|
---|
| 362 | * Pluggable Device Manager.
|
---|
| 363 | */
|
---|
| 364 | /** @def PDMR3DECL(type)
|
---|
| 365 | * Pluggable Device Manager export or import declaration.
|
---|
| 366 | * @param type The return type of the function declaration.
|
---|
| 367 | */
|
---|
| 368 | #ifdef IN_PDM_R3
|
---|
| 369 | # define PDMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 370 | #else
|
---|
| 371 | # define PDMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 372 | #endif
|
---|
| 373 |
|
---|
| 374 | /** @def IN_PDM_GC
|
---|
| 375 | * Used to indicate whether we're inside the same link module as the GC
|
---|
| 376 | * Pluggable Device Manager.
|
---|
| 377 | */
|
---|
| 378 | /** @def PDMGCDECL(type)
|
---|
| 379 | * Pluggable Device Manager export or import declaration.
|
---|
| 380 | * @param type The return type of the function declaration.
|
---|
| 381 | */
|
---|
| 382 | #ifdef IN_PDM_GC
|
---|
| 383 | # define PDMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 384 | #else
|
---|
| 385 | # define PDMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 386 | #endif
|
---|
| 387 |
|
---|
| 388 | /** @def PDMDECL(type)
|
---|
| 389 | * Pluggable Device Manager export or import declaration.
|
---|
| 390 | * Functions declared using this macro exists in all contexts.
|
---|
| 391 | * @param type The return type of the function declaration.
|
---|
| 392 | */
|
---|
| 393 | #if defined(IN_PDM_R3) || defined(IN_PDM_GC) || defined(IN_PDM_R0)
|
---|
| 394 | # define PDMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 395 | #else
|
---|
| 396 | # define PDMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 397 | #endif
|
---|
| 398 |
|
---|
| 399 |
|
---|
| 400 |
|
---|
| 401 |
|
---|
| 402 | /** @def IN_CFGM_R3
|
---|
| 403 | * Used to indicate whether we're inside the same link module as the Ring 3
|
---|
| 404 | * Configuration Manager.
|
---|
| 405 | */
|
---|
| 406 | /** @def CFGMR3DECL(type)
|
---|
| 407 | * Configuration Manager export or import declaration.
|
---|
| 408 | * @param type The return type of the function declaration.
|
---|
| 409 | */
|
---|
| 410 | #ifdef IN_CFGM_R3
|
---|
| 411 | # define CFGMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 412 | #else
|
---|
| 413 | # define CFGMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 414 | #endif
|
---|
| 415 |
|
---|
| 416 | /** @def IN_CFGM_GC
|
---|
| 417 | * Used to indicate whether we're inside the same link module as the GC
|
---|
| 418 | * Configuration Manager.
|
---|
| 419 | */
|
---|
| 420 | /** @def CFGMGCDECL(type)
|
---|
| 421 | * Configuration Manager export or import declaration.
|
---|
| 422 | * @param type The return type of the function declaration.
|
---|
| 423 | */
|
---|
| 424 | #ifdef IN_CFGM_GC
|
---|
| 425 | # define CFGMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 426 | #else
|
---|
| 427 | # define CFGMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 428 | #endif
|
---|
| 429 |
|
---|
| 430 |
|
---|
| 431 | /** @def IN_CPUM_R0
|
---|
| 432 | * Used to indicate whether we're inside the same link module as
|
---|
| 433 | * the HC Ring-0 CPU Monitor(/Manager).
|
---|
| 434 | */
|
---|
| 435 | /** @def CPUMR0DECL(type)
|
---|
| 436 | * CPU Monitor(/Manager) HC Ring-0 export or import declaration.
|
---|
| 437 | * @param type The return type of the function declaration.
|
---|
| 438 | */
|
---|
| 439 | #ifdef IN_CPUM_R0
|
---|
| 440 | # define CPUMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 441 | #else
|
---|
| 442 | # define CPUMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 443 | #endif
|
---|
| 444 |
|
---|
| 445 | /** @def IN_CPUM_R3
|
---|
| 446 | * Used to indicate whether we're inside the same link module as
|
---|
| 447 | * the HC Ring-3 CPU Monitor(/Manager).
|
---|
| 448 | */
|
---|
| 449 | /** @def CPUMR3DECL(type)
|
---|
| 450 | * CPU Monitor(/Manager) HC Ring-3 export or import declaration.
|
---|
| 451 | * @param type The return type of the function declaration.
|
---|
| 452 | */
|
---|
| 453 | #ifdef IN_CPUM_R3
|
---|
| 454 | # define CPUMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 455 | #else
|
---|
| 456 | # define CPUMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 457 | #endif
|
---|
| 458 |
|
---|
| 459 | /** @def IN_CPUM_GC
|
---|
| 460 | * Used to indicate whether we're inside the same link module as
|
---|
| 461 | * the GC CPU Monitor(/Manager).
|
---|
| 462 | */
|
---|
| 463 | /** @def CPUMGCDECL(type)
|
---|
| 464 | * CPU Monitor(/Manager) HC Ring-3 export or import declaration.
|
---|
| 465 | * @param type The return type of the function declaration.
|
---|
| 466 | */
|
---|
| 467 | #ifdef IN_CPUM_GC
|
---|
| 468 | # define CPUMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 469 | #else
|
---|
| 470 | # define CPUMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 471 | #endif
|
---|
| 472 |
|
---|
| 473 | /** @def CPUMDECL(type)
|
---|
| 474 | * CPU Monitor(/Manager) export or import declaration.
|
---|
| 475 | * Functions declared using this macro exists in all contexts.
|
---|
| 476 | * @param type The return type of the function declaration.
|
---|
| 477 | */
|
---|
| 478 | #if defined(IN_CPUM_R3) || defined(IN_CPUM_GC) || defined(IN_CPUM_R0)
|
---|
| 479 | # define CPUMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 480 | #else
|
---|
| 481 | # define CPUMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 482 | #endif
|
---|
| 483 |
|
---|
| 484 |
|
---|
| 485 |
|
---|
| 486 | /** @def IN_PATM_R0
|
---|
| 487 | * Used to indicate whether we're inside the same link module as
|
---|
| 488 | * the HC Ring-0 CPU Monitor(/Manager).
|
---|
| 489 | */
|
---|
| 490 | /** @def PATMR0DECL(type)
|
---|
| 491 | * Patch Manager HC Ring-0 export or import declaration.
|
---|
| 492 | * @param type The return type of the function declaration.
|
---|
| 493 | */
|
---|
| 494 | #ifdef IN_PATM_R0
|
---|
| 495 | # define PATMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 496 | #else
|
---|
| 497 | # define PATMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 498 | #endif
|
---|
| 499 |
|
---|
| 500 | /** @def IN_PATM_R3
|
---|
| 501 | * Used to indicate whether we're inside the same link module as
|
---|
| 502 | * the HC Ring-3 CPU Monitor(/Manager).
|
---|
| 503 | */
|
---|
| 504 | /** @def PATMR3DECL(type)
|
---|
| 505 | * Patch Manager HC Ring-3 export or import declaration.
|
---|
| 506 | * @param type The return type of the function declaration.
|
---|
| 507 | */
|
---|
| 508 | #ifdef IN_PATM_R3
|
---|
| 509 | # define PATMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 510 | #else
|
---|
| 511 | # define PATMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 512 | #endif
|
---|
| 513 |
|
---|
| 514 | /** @def IN_PATM_GC
|
---|
| 515 | * Used to indicate whether we're inside the same link module as
|
---|
| 516 | * the GC Patch Manager.
|
---|
| 517 | */
|
---|
| 518 | /** @def PATMGCDECL(type)
|
---|
| 519 | * Patch Manager HC Ring-3 export or import declaration.
|
---|
| 520 | * @param type The return type of the function declaration.
|
---|
| 521 | */
|
---|
| 522 | #ifdef IN_PATM_GC
|
---|
| 523 | # define PATMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 524 | #else
|
---|
| 525 | # define PATMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 526 | #endif
|
---|
| 527 |
|
---|
| 528 | /** @def PATMDECL(type)
|
---|
| 529 | * Patch Manager all contexts export or import declaration.
|
---|
| 530 | * @param type The return type of the function declaration.
|
---|
| 531 | */
|
---|
| 532 | #if defined(IN_PATM_R3) || defined(IN_PATM_R0) || defined(IN_PATM_GC)
|
---|
| 533 | # define PATMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 534 | #else
|
---|
| 535 | # define PATMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 536 | #endif
|
---|
| 537 |
|
---|
| 538 |
|
---|
| 539 |
|
---|
| 540 | /** @def IN_CSAM_R0
|
---|
| 541 | * Used to indicate whether we're inside the same link module as
|
---|
| 542 | * the HC Ring-0 CPU Monitor(/Manager).
|
---|
| 543 | */
|
---|
| 544 | /** @def CSAMR0DECL(type)
|
---|
| 545 | * Code Scanning and Analysis Manager HC Ring-0 export or import declaration.
|
---|
| 546 | * @param type The return type of the function declaration.
|
---|
| 547 | */
|
---|
| 548 | #ifdef IN_CSAM_R0
|
---|
| 549 | # define CSAMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 550 | #else
|
---|
| 551 | # define CSAMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 552 | #endif
|
---|
| 553 |
|
---|
| 554 | /** @def IN_CSAM_R3
|
---|
| 555 | * Used to indicate whether we're inside the same link module as
|
---|
| 556 | * the HC Ring-3 CPU Monitor(/Manager).
|
---|
| 557 | */
|
---|
| 558 | /** @def CSAMR3DECL(type)
|
---|
| 559 | * Code Scanning and Analysis Manager HC Ring-3 export or import declaration.
|
---|
| 560 | * @param type The return type of the function declaration.
|
---|
| 561 | */
|
---|
| 562 | #ifdef IN_CSAM_R3
|
---|
| 563 | # define CSAMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 564 | #else
|
---|
| 565 | # define CSAMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 566 | #endif
|
---|
| 567 |
|
---|
| 568 | /** @def IN_CSAM_GC
|
---|
| 569 | * Used to indicate whether we're inside the same link module as
|
---|
| 570 | * the GC Code Scanning and Analysis Manager.
|
---|
| 571 | */
|
---|
| 572 | /** @def CSAMGCDECL(type)
|
---|
| 573 | * Code Scanning and Analysis Manager HC Ring-3 export or import declaration.
|
---|
| 574 | * @param type The return type of the function declaration.
|
---|
| 575 | */
|
---|
| 576 | #ifdef IN_CSAM_GC
|
---|
| 577 | # define CSAMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 578 | #else
|
---|
| 579 | # define CSAMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 580 | #endif
|
---|
| 581 |
|
---|
| 582 | /** @def CSAMDECL(type)
|
---|
| 583 | * Code Scanning and Analysis Manager export or import declaration.
|
---|
| 584 | * Functions declared using this macro exists in all contexts.
|
---|
| 585 | * @param type The return type of the function declaration.
|
---|
| 586 | */
|
---|
| 587 | #if defined(IN_CSAM_R3) || defined(IN_CSAM_GC) || defined(IN_CSAM_R0)
|
---|
| 588 | # define CSAMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 589 | #else
|
---|
| 590 | # define CSAMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 591 | #endif
|
---|
| 592 |
|
---|
| 593 |
|
---|
| 594 |
|
---|
| 595 | /** @def IN_MM_R0
|
---|
| 596 | * Used to indicate whether we're inside the same link module as
|
---|
| 597 | * the HC Ring-0 Memory Monitor(/Manager).
|
---|
| 598 | */
|
---|
| 599 | /** @def MMR0DECL(type)
|
---|
| 600 | * Memory Monitor(/Manager) HC Ring-0 export or import declaration.
|
---|
| 601 | * @param type The return type of the function declaration.
|
---|
| 602 | */
|
---|
| 603 | #ifdef IN_MM_R0
|
---|
| 604 | # define MMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 605 | #else
|
---|
| 606 | # define MMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 607 | #endif
|
---|
| 608 |
|
---|
| 609 | /** @def IN_MM_R3
|
---|
| 610 | * Used to indicate whether we're inside the same link module as
|
---|
| 611 | * the HC Ring-3 Memory Monitor(/Manager).
|
---|
| 612 | */
|
---|
| 613 | /** @def MMR3DECL(type)
|
---|
| 614 | * Memory Monitor(/Manager) HC Ring-3 export or import declaration.
|
---|
| 615 | * @param type The return type of the function declaration.
|
---|
| 616 | */
|
---|
| 617 | #ifdef IN_MM_R3
|
---|
| 618 | # define MMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 619 | #else
|
---|
| 620 | # define MMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 621 | #endif
|
---|
| 622 |
|
---|
| 623 | /** @def IN_MM_GC
|
---|
| 624 | * Used to indicate whether we're inside the same link module as
|
---|
| 625 | * the GC Memory Monitor(/Manager).
|
---|
| 626 | */
|
---|
| 627 | /** @def MMGCDECL(type)
|
---|
| 628 | * Memory Monitor(/Manager) HC Ring-3 export or import declaration.
|
---|
| 629 | * @param type The return type of the function declaration.
|
---|
| 630 | */
|
---|
| 631 | #ifdef IN_MM_GC
|
---|
| 632 | # define MMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 633 | #else
|
---|
| 634 | # define MMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 635 | #endif
|
---|
| 636 |
|
---|
| 637 | /** @def MMDECL(type)
|
---|
| 638 | * Memory Monitor(/Manager) export or import declaration.
|
---|
| 639 | * Functions declared using this macro exists in all contexts.
|
---|
| 640 | * @param type The return type of the function declaration.
|
---|
| 641 | */
|
---|
| 642 | #if defined(IN_MM_R3) || defined(IN_MM_GC) || defined(IN_MM_R0)
|
---|
| 643 | # define MMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 644 | #else
|
---|
| 645 | # define MMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 646 | #endif
|
---|
| 647 |
|
---|
| 648 |
|
---|
| 649 |
|
---|
| 650 |
|
---|
| 651 | /** @def IN_SELM_R0
|
---|
| 652 | * Used to indicate whether we're inside the same link module as
|
---|
| 653 | * the HC Ring-0 Selector Monitor(/Manager).
|
---|
| 654 | */
|
---|
| 655 | /** @def SELMR0DECL(type)
|
---|
| 656 | * Selector Monitor(/Manager) HC Ring-0 export or import declaration.
|
---|
| 657 | * @param type The return type of the function declaration.
|
---|
| 658 | */
|
---|
| 659 | #ifdef IN_SELM_R0
|
---|
| 660 | # define SELMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 661 | #else
|
---|
| 662 | # define SELMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 663 | #endif
|
---|
| 664 |
|
---|
| 665 | /** @def IN_SELM_R3
|
---|
| 666 | * Used to indicate whether we're inside the same link module as
|
---|
| 667 | * the HC Ring-3 Selector Monitor(/Manager).
|
---|
| 668 | */
|
---|
| 669 | /** @def SELMR3DECL(type)
|
---|
| 670 | * Selector Monitor(/Manager) HC Ring-3 export or import declaration.
|
---|
| 671 | * @param type The return type of the function declaration.
|
---|
| 672 | */
|
---|
| 673 | #ifdef IN_SELM_R3
|
---|
| 674 | # define SELMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 675 | #else
|
---|
| 676 | # define SELMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 677 | #endif
|
---|
| 678 |
|
---|
| 679 | /** @def IN_SELM_GC
|
---|
| 680 | * Used to indicate whether we're inside the same link module as
|
---|
| 681 | * the GC Selector Monitor(/Manager).
|
---|
| 682 | */
|
---|
| 683 | /** @def SELMGCDECL(type)
|
---|
| 684 | * Selector Monitor(/Manager) HC Ring-3 export or import declaration.
|
---|
| 685 | * @param type The return type of the function declaration.
|
---|
| 686 | */
|
---|
| 687 | #ifdef IN_SELM_GC
|
---|
| 688 | # define SELMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 689 | #else
|
---|
| 690 | # define SELMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 691 | #endif
|
---|
| 692 |
|
---|
| 693 | /** @def SELMDECL(type)
|
---|
| 694 | * Selector Monitor(/Manager) export or import declaration.
|
---|
| 695 | * Functions declared using this macro exists in all contexts.
|
---|
| 696 | * @param type The return type of the function declaration.
|
---|
| 697 | */
|
---|
| 698 | #if defined(IN_SELM_R3) || defined(IN_SELM_GC) || defined(IN_SELM_R0)
|
---|
| 699 | # define SELMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 700 | #else
|
---|
| 701 | # define SELMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 702 | #endif
|
---|
| 703 |
|
---|
| 704 |
|
---|
| 705 |
|
---|
| 706 | /** @def IN_HWACCM_R0
|
---|
| 707 | * Used to indicate whether we're inside the same link module as
|
---|
| 708 | * the HC Ring-0 VMX Monitor(/Manager).
|
---|
| 709 | */
|
---|
| 710 | /** @def HWACCMR0DECL(type)
|
---|
| 711 | * Selector Monitor(/Manager) HC Ring-0 export or import declaration.
|
---|
| 712 | * @param type The return type of the function declaration.
|
---|
| 713 | */
|
---|
| 714 | #ifdef IN_HWACCM_R0
|
---|
| 715 | # define HWACCMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 716 | #else
|
---|
| 717 | # define HWACCMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 718 | #endif
|
---|
| 719 |
|
---|
| 720 | /** @def IN_HWACCM_R3
|
---|
| 721 | * Used to indicate whether we're inside the same link module as
|
---|
| 722 | * the HC Ring-3 VMX Monitor(/Manager).
|
---|
| 723 | */
|
---|
| 724 | /** @def HWACCMR3DECL(type)
|
---|
| 725 | * Selector Monitor(/Manager) HC Ring-3 export or import declaration.
|
---|
| 726 | * @param type The return type of the function declaration.
|
---|
| 727 | */
|
---|
| 728 | #ifdef IN_HWACCM_R3
|
---|
| 729 | # define HWACCMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 730 | #else
|
---|
| 731 | # define HWACCMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 732 | #endif
|
---|
| 733 |
|
---|
| 734 | /** @def IN_HWACCM_GC
|
---|
| 735 | * Used to indicate whether we're inside the same link module as
|
---|
| 736 | * the GC VMX Monitor(/Manager).
|
---|
| 737 | */
|
---|
| 738 | /** @def HWACCMGCDECL(type)
|
---|
| 739 | * Selector Monitor(/Manager) HC Ring-3 export or import declaration.
|
---|
| 740 | * @param type The return type of the function declaration.
|
---|
| 741 | */
|
---|
| 742 | #ifdef IN_HWACCM_GC
|
---|
| 743 | # define HWACCMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 744 | #else
|
---|
| 745 | # define HWACCMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 746 | #endif
|
---|
| 747 |
|
---|
| 748 | /** @def HWACCMDECL(type)
|
---|
| 749 | * VMX Monitor(/Manager) export or import declaration.
|
---|
| 750 | * Functions declared using this macro exists in all contexts.
|
---|
| 751 | * @param type The return type of the function declaration.
|
---|
| 752 | */
|
---|
| 753 | #if defined(IN_HWACCM_R3) || defined(IN_HWACCM_GC) || defined(IN_HWACCM_R0)
|
---|
| 754 | # define HWACCMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 755 | #else
|
---|
| 756 | # define HWACCMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 757 | #endif
|
---|
| 758 |
|
---|
| 759 |
|
---|
| 760 |
|
---|
| 761 | /** @def IN_TM_R0
|
---|
| 762 | * Used to indicate whether we're inside the same link module as
|
---|
| 763 | * the HC Ring-0 Time Manager.
|
---|
| 764 | */
|
---|
| 765 | /** @def TMR0DECL(type)
|
---|
| 766 | * Time Manager HC Ring-0 export or import declaration.
|
---|
| 767 | * @param type The return type of the function declaration.
|
---|
| 768 | */
|
---|
| 769 | #ifdef IN_TM_R0
|
---|
| 770 | # define TMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 771 | #else
|
---|
| 772 | # define TMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 773 | #endif
|
---|
| 774 |
|
---|
| 775 | /** @def IN_TM_R3
|
---|
| 776 | * Used to indicate whether we're inside the same link module as
|
---|
| 777 | * the HC Ring-3 Time Manager.
|
---|
| 778 | */
|
---|
| 779 | /** @def TMR3DECL(type)
|
---|
| 780 | * Time Manager HC Ring-3 export or import declaration.
|
---|
| 781 | * @param type The return type of the function declaration.
|
---|
| 782 | */
|
---|
| 783 | #ifdef IN_TM_R3
|
---|
| 784 | # define TMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 785 | #else
|
---|
| 786 | # define TMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 787 | #endif
|
---|
| 788 |
|
---|
| 789 | /** @def IN_TM_GC
|
---|
| 790 | * Used to indicate whether we're inside the same link module as
|
---|
| 791 | * the GC Time Manager.
|
---|
| 792 | */
|
---|
| 793 | /** @def TMGCDECL(type)
|
---|
| 794 | * Time Manager HC Ring-3 export or import declaration.
|
---|
| 795 | * @param type The return type of the function declaration.
|
---|
| 796 | */
|
---|
| 797 | #ifdef IN_TM_GC
|
---|
| 798 | # define TMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 799 | #else
|
---|
| 800 | # define TMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 801 | #endif
|
---|
| 802 |
|
---|
| 803 | /** @def TMDECL(type)
|
---|
| 804 | * Time Manager export or import declaration.
|
---|
| 805 | * Functions declared using this macro exists in all contexts.
|
---|
| 806 | * @param type The return type of the function declaration.
|
---|
| 807 | */
|
---|
| 808 | #if defined(IN_TM_R3) || defined(IN_TM_GC) || defined(IN_TM_R0)
|
---|
| 809 | # define TMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 810 | #else
|
---|
| 811 | # define TMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 812 | #endif
|
---|
| 813 |
|
---|
| 814 |
|
---|
| 815 |
|
---|
| 816 |
|
---|
| 817 | /** @def IN_TRPM_R0
|
---|
| 818 | * Used to indicate whether we're inside the same link module as
|
---|
| 819 | * the HC Ring-0 Trap Monitor.
|
---|
| 820 | */
|
---|
| 821 | /** @def TRPMR0DECL(type)
|
---|
| 822 | * Trap Monitor HC Ring-0 export or import declaration.
|
---|
| 823 | * @param type The return type of the function declaration.
|
---|
| 824 | */
|
---|
| 825 | #ifdef IN_TRPM_R0
|
---|
| 826 | # define TRPMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 827 | #else
|
---|
| 828 | # define TRPMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 829 | #endif
|
---|
| 830 |
|
---|
| 831 | /** @def IN_TRPM_R3
|
---|
| 832 | * Used to indicate whether we're inside the same link module as
|
---|
| 833 | * the HC Ring-3 Trap Monitor.
|
---|
| 834 | */
|
---|
| 835 | /** @def TRPMR3DECL(type)
|
---|
| 836 | * Trap Monitor HC Ring-3 export or import declaration.
|
---|
| 837 | * @param type The return type of the function declaration.
|
---|
| 838 | */
|
---|
| 839 | #ifdef IN_TRPM_R3
|
---|
| 840 | # define TRPMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 841 | #else
|
---|
| 842 | # define TRPMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 843 | #endif
|
---|
| 844 |
|
---|
| 845 | /** @def IN_TRPM_GC
|
---|
| 846 | * Used to indicate whether we're inside the same link module as
|
---|
| 847 | * the GC Trap Monitor.
|
---|
| 848 | */
|
---|
| 849 | /** @def TRPMGCDECL(type)
|
---|
| 850 | * Trap Monitor GC export or import declaration.
|
---|
| 851 | * @param type The return type of the function declaration.
|
---|
| 852 | */
|
---|
| 853 | #ifdef IN_TRPM_GC
|
---|
| 854 | # define TRPMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 855 | #else
|
---|
| 856 | # define TRPMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 857 | #endif
|
---|
| 858 |
|
---|
| 859 | /** @def TRPMDECL(type)
|
---|
| 860 | * Trap Monitor export or import declaration.
|
---|
| 861 | * Functions declared using this macro exists in all contexts.
|
---|
| 862 | * @param type The return type of the function declaration.
|
---|
| 863 | */
|
---|
| 864 | #if defined(IN_TRPM_R3) || defined(IN_TRPM_GC) || defined(IN_TRPM_R0)
|
---|
| 865 | # define TRPMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 866 | #else
|
---|
| 867 | # define TRPMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 868 | #endif
|
---|
| 869 |
|
---|
| 870 |
|
---|
| 871 |
|
---|
| 872 |
|
---|
| 873 | /** @def IN_USB_R0
|
---|
| 874 | * Used to indicate whether we're inside the same link module as
|
---|
| 875 | * the HC Ring-0 USB device / service.
|
---|
| 876 | */
|
---|
| 877 | /** @def USBR0DECL(type)
|
---|
| 878 | * USB device / service HC Ring-0 export or import declaration.
|
---|
| 879 | * @param type The return type of the function declaration.
|
---|
| 880 | */
|
---|
| 881 | #ifdef IN_USB_R0
|
---|
| 882 | # define USBR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 883 | #else
|
---|
| 884 | # define USBR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 885 | #endif
|
---|
| 886 |
|
---|
| 887 | /** @def IN_USB_R3
|
---|
| 888 | * Used to indicate whether we're inside the same link module as
|
---|
| 889 | * the HC Ring-3 USB device / service.
|
---|
| 890 | */
|
---|
| 891 | /** @def USBR3DECL(type)
|
---|
| 892 | * USB device / services HC Ring-3 export or import declaration.
|
---|
| 893 | * @param type The return type of the function declaration.
|
---|
| 894 | */
|
---|
| 895 | #ifdef IN_USB_R3
|
---|
| 896 | # define USBR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 897 | #else
|
---|
| 898 | # define USBR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 899 | #endif
|
---|
| 900 |
|
---|
| 901 | /** @def IN_USB_GC
|
---|
| 902 | * Used to indicate whether we're inside the same link module as
|
---|
| 903 | * the GC USB device.
|
---|
| 904 | */
|
---|
| 905 | /** @def USBGCDECL(type)
|
---|
| 906 | * USB device GC export or import declaration.
|
---|
| 907 | * @param type The return type of the function declaration.
|
---|
| 908 | */
|
---|
| 909 | #ifdef IN_USB_GC
|
---|
| 910 | # define USBGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 911 | #else
|
---|
| 912 | # define USBGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 913 | #endif
|
---|
| 914 |
|
---|
| 915 | /** @def USBDECL(type)
|
---|
| 916 | * Trap Monitor export or import declaration.
|
---|
| 917 | * Functions declared using this macro exists in all contexts.
|
---|
| 918 | * @param type The return type of the function declaration.
|
---|
| 919 | */
|
---|
| 920 | #if defined(IN_USB_R3) || defined(IN_USB_GC) || defined(IN_USB_R0)
|
---|
| 921 | # define USBDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 922 | #else
|
---|
| 923 | # define USBDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 924 | #endif
|
---|
| 925 |
|
---|
| 926 |
|
---|
| 927 |
|
---|
[5562] | 928 | /** @def IN_USBLIB
|
---|
| 929 | * Used to indicate whether we're inside the same link module as the USBLib.
|
---|
| 930 | */
|
---|
| 931 | /** @def USBLIB_DECL
|
---|
| 932 | * USBLIB export or import declaration.
|
---|
| 933 | * @param type The return type of the function declaration.
|
---|
| 934 | */
|
---|
| 935 | #ifdef IN_RING0
|
---|
| 936 | # define USBLIB_DECL(type) type VBOXCALL
|
---|
| 937 | #elif defined(IN_USBLIB)
|
---|
| 938 | # define USBLIB_DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 939 | #else
|
---|
| 940 | # define USBLIB_DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 941 | #endif
|
---|
| 942 |
|
---|
| 943 |
|
---|
| 944 |
|
---|
[1] | 945 | /** @def IN_INTNET_R3
|
---|
| 946 | * Used to indicate whether we're inside the same link module as the Ring 3
|
---|
| 947 | * Internal Networking Service.
|
---|
| 948 | */
|
---|
| 949 | /** @def INTNETR3DECL(type)
|
---|
| 950 | * Internal Networking Service export or import declaration.
|
---|
| 951 | * @param type The return type of the function declaration.
|
---|
| 952 | */
|
---|
| 953 | #ifdef IN_INTNET_R3
|
---|
| 954 | # define INTNETR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 955 | #else
|
---|
| 956 | # define INTNETR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 957 | #endif
|
---|
| 958 |
|
---|
| 959 | /** @def IN_INTNET_R0
|
---|
| 960 | * Used to indicate whether we're inside the same link module as the R0
|
---|
| 961 | * Internal Network Service.
|
---|
| 962 | */
|
---|
| 963 | /** @def INTNETR0DECL(type)
|
---|
| 964 | * Internal Networking Service export or import declaration.
|
---|
| 965 | * @param type The return type of the function declaration.
|
---|
| 966 | */
|
---|
| 967 | #ifdef IN_INTNET_R0
|
---|
| 968 | # define INTNETR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 969 | #else
|
---|
| 970 | # define INTNETR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 971 | #endif
|
---|
| 972 |
|
---|
| 973 |
|
---|
| 974 |
|
---|
| 975 | /** @def IN_IOM_R3
|
---|
| 976 | * Used to indicate whether we're inside the same link module as the Ring 3
|
---|
| 977 | * Input/Output Monitor.
|
---|
| 978 | */
|
---|
| 979 | /** @def IOMR3DECL(type)
|
---|
| 980 | * Input/Output Monitor export or import declaration.
|
---|
| 981 | * @param type The return type of the function declaration.
|
---|
| 982 | */
|
---|
| 983 | #ifdef IN_IOM_R3
|
---|
| 984 | # define IOMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 985 | #else
|
---|
| 986 | # define IOMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 987 | #endif
|
---|
| 988 |
|
---|
| 989 | /** @def IN_IOM_GC
|
---|
| 990 | * Used to indicate whether we're inside the same link module as the GC
|
---|
| 991 | * Input/Output Monitor.
|
---|
| 992 | */
|
---|
| 993 | /** @def IOMGCDECL(type)
|
---|
| 994 | * Input/Output Monitor export or import declaration.
|
---|
| 995 | * @param type The return type of the function declaration.
|
---|
| 996 | */
|
---|
| 997 | #ifdef IN_IOM_GC
|
---|
| 998 | # define IOMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 999 | #else
|
---|
| 1000 | # define IOMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1001 | #endif
|
---|
| 1002 |
|
---|
| 1003 | /** @def IN_IOM_R0
|
---|
| 1004 | * Used to indicate whether we're inside the same link module as the R0
|
---|
| 1005 | * Input/Output Monitor.
|
---|
| 1006 | */
|
---|
| 1007 | /** @def IOMR0DECL(type)
|
---|
| 1008 | * Input/Output Monitor export or import declaration.
|
---|
| 1009 | * @param type The return type of the function declaration.
|
---|
| 1010 | */
|
---|
| 1011 | #ifdef IN_IOM_R0
|
---|
| 1012 | # define IOMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1013 | #else
|
---|
| 1014 | # define IOMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1015 | #endif
|
---|
| 1016 |
|
---|
| 1017 | /** @def IOMDECL(type)
|
---|
| 1018 | * Input/Output Monitor export or import declaration.
|
---|
| 1019 | * Functions declared using this macro exists in all contexts.
|
---|
| 1020 | * @param type The return type of the function declaration.
|
---|
| 1021 | */
|
---|
| 1022 | #if defined(IN_IOM_R3) || defined(IN_IOM_GC) || defined(IN_IOM_R0)
|
---|
| 1023 | # define IOMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1024 | #else
|
---|
| 1025 | # define IOMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1026 | #endif
|
---|
| 1027 |
|
---|
| 1028 |
|
---|
| 1029 | /** @def IN_VGADEVICE_R3
|
---|
| 1030 | * Used to indicate whether we're inside the same link module as
|
---|
| 1031 | * the HC Ring-3 VGA Monitor(/Manager).
|
---|
| 1032 | */
|
---|
| 1033 | /** @def VGAR3DECL(type)
|
---|
| 1034 | * VGA Monitor(/Manager) HC Ring-3 export or import declaration.
|
---|
| 1035 | * @param type The return type of the function declaration.
|
---|
| 1036 | */
|
---|
| 1037 | #ifdef IN_VGADEVICE_R3
|
---|
| 1038 | # define VGAR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1039 | #else
|
---|
| 1040 | # define VGAR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1041 | #endif
|
---|
| 1042 |
|
---|
| 1043 | /** @def IN_VGADEVICE_GC
|
---|
| 1044 | * Used to indicate whether we're inside the same link module as
|
---|
| 1045 | * the GC VGA Monitor(/Manager).
|
---|
| 1046 | */
|
---|
| 1047 | /** @def VGAGCDECL(type)
|
---|
| 1048 | * VGA Monitor(/Manager) HC Ring-3 export or import declaration.
|
---|
| 1049 | * @param type The return type of the function declaration.
|
---|
| 1050 | */
|
---|
| 1051 | #ifdef IN_VGADEVICE_GC
|
---|
| 1052 | # define VGAGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1053 | #else
|
---|
| 1054 | # define VGAGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1055 | #endif
|
---|
| 1056 |
|
---|
| 1057 | /** @def VGADECL(type)
|
---|
| 1058 | * VGA Monitor(/Manager) export or import declaration.
|
---|
| 1059 | * Functions declared using this macro exists in all contexts.
|
---|
| 1060 | * @param type The return type of the function declaration.
|
---|
| 1061 | */
|
---|
| 1062 | #if defined(IN_VGADEVICE_R3) || defined(IN_VGADEVICE_GC)
|
---|
| 1063 | # define VGADECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1064 | #else
|
---|
| 1065 | # define VGADECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1066 | #endif
|
---|
| 1067 |
|
---|
| 1068 |
|
---|
| 1069 | /** @def IN_PGM_R3
|
---|
| 1070 | * Used to indicate whether we're inside the same link module as the Ring 3
|
---|
| 1071 | * Page Monitor and Manager.
|
---|
| 1072 | */
|
---|
| 1073 | /** @def PGMR3DECL(type)
|
---|
| 1074 | * Page Monitor and Manager export or import declaration.
|
---|
| 1075 | * @param type The return type of the function declaration.
|
---|
| 1076 | */
|
---|
| 1077 | #ifdef IN_PGM_R3
|
---|
| 1078 | # define PGMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1079 | #else
|
---|
| 1080 | # define PGMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1081 | #endif
|
---|
| 1082 |
|
---|
| 1083 | /** @def IN_PGM_GC
|
---|
| 1084 | * Used to indicate whether we're inside the same link module as the GC
|
---|
| 1085 | * Page Monitor and Manager.
|
---|
| 1086 | */
|
---|
| 1087 | /** @def PGMGCDECL(type)
|
---|
| 1088 | * Page Monitor and Manager export or import declaration.
|
---|
| 1089 | * @param type The return type of the function declaration.
|
---|
| 1090 | */
|
---|
| 1091 | #ifdef IN_PGM_GC
|
---|
| 1092 | # define PGMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1093 | #else
|
---|
| 1094 | # define PGMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1095 | #endif
|
---|
| 1096 |
|
---|
| 1097 | /** @def IN_PGM_R0
|
---|
| 1098 | * Used to indicate whether we're inside the same link module as the R0
|
---|
| 1099 | * Page Monitor and Manager.
|
---|
| 1100 | */
|
---|
| 1101 | /** @def PGMR0DECL(type)
|
---|
| 1102 | * Page Monitor and Manager export or import declaration.
|
---|
| 1103 | * @param type The return type of the function declaration.
|
---|
| 1104 | */
|
---|
| 1105 | #ifdef IN_PGM_R0
|
---|
| 1106 | # define PGMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1107 | #else
|
---|
| 1108 | # define PGMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1109 | #endif
|
---|
| 1110 |
|
---|
| 1111 | /** @def PGMDECL(type)
|
---|
| 1112 | * Page Monitor and Manager export or import declaration.
|
---|
| 1113 | * @param type The return type of the function declaration.
|
---|
| 1114 | */
|
---|
| 1115 | #if defined(IN_PGM_R3) || defined(IN_PGM_R0) || defined(IN_PGM_GC)
|
---|
| 1116 | # define PGMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1117 | #else
|
---|
| 1118 | # define PGMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1119 | #endif
|
---|
| 1120 |
|
---|
| 1121 |
|
---|
| 1122 | /** @def IN_DBGF_R3
|
---|
| 1123 | * Used to indicate whether we're inside the same link module as the Ring 3
|
---|
| 1124 | * Debugging Facility.
|
---|
| 1125 | */
|
---|
| 1126 | /** @def DBGFR3DECL(type)
|
---|
| 1127 | * R3 Debugging Facility export or import declaration.
|
---|
| 1128 | * @param type The return type of the function declaration.
|
---|
| 1129 | */
|
---|
| 1130 | #ifdef IN_DBGF_R3
|
---|
| 1131 | # define DBGFR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1132 | #else
|
---|
| 1133 | # define DBGFR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1134 | #endif
|
---|
| 1135 |
|
---|
| 1136 | /** @def IN_DBGF_R0
|
---|
| 1137 | * Used to indicate whether we're inside the same link module as the Ring 0
|
---|
| 1138 | * Debugging Facility.
|
---|
| 1139 | */
|
---|
| 1140 | /** @def DBGFR0DECL(type)
|
---|
| 1141 | * R0 Debugging Facility export or import declaration.
|
---|
| 1142 | * @param type The return type of the function declaration.
|
---|
| 1143 | */
|
---|
| 1144 | #ifdef IN_DBGF_R0
|
---|
| 1145 | # define DBGFR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1146 | #else
|
---|
| 1147 | # define DBGFR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1148 | #endif
|
---|
| 1149 |
|
---|
| 1150 | /** @def IN_DBGF_GC
|
---|
| 1151 | * Used to indicate whether we're inside the same link module as the GC
|
---|
| 1152 | * Debugging Facility.
|
---|
| 1153 | */
|
---|
| 1154 | /** @def DBGFGCDECL(type)
|
---|
| 1155 | * GC Debugging Facility export or import declaration.
|
---|
| 1156 | * @param type The return type of the function declaration.
|
---|
| 1157 | */
|
---|
| 1158 | #ifdef IN_DBGF_GC
|
---|
| 1159 | # define DBGFGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1160 | #else
|
---|
| 1161 | # define DBGFGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1162 | #endif
|
---|
| 1163 |
|
---|
| 1164 | /** @def DBGFGCDECL(type)
|
---|
| 1165 | * Debugging Facility export or import declaration.
|
---|
| 1166 | * @param type The return type of the function declaration.
|
---|
| 1167 | */
|
---|
| 1168 | #if defined(IN_DBGF_R3) || defined(IN_DBGF_R0) || defined(IN_DBGF_GC)
|
---|
| 1169 | # define DBGFDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1170 | #else
|
---|
| 1171 | # define DBGFDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1172 | #endif
|
---|
| 1173 |
|
---|
| 1174 |
|
---|
| 1175 |
|
---|
| 1176 | /** @def IN_SSM_R3
|
---|
| 1177 | * Used to indicate whether we're inside the same link module as the Ring 3
|
---|
| 1178 | * Saved State Manager.
|
---|
| 1179 | */
|
---|
| 1180 | /** @def SSMR3DECL(type)
|
---|
| 1181 | * R3 Saved State export or import declaration.
|
---|
| 1182 | * @param type The return type of the function declaration.
|
---|
| 1183 | */
|
---|
| 1184 | #ifdef IN_SSM_R3
|
---|
| 1185 | # define SSMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1186 | #else
|
---|
| 1187 | # define SSMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1188 | #endif
|
---|
| 1189 |
|
---|
| 1190 |
|
---|
| 1191 |
|
---|
| 1192 | /** @def IN_STAM_R3
|
---|
| 1193 | * Used to indicate whether we're inside the same link module as the Ring 3
|
---|
| 1194 | * Statistics Manager.
|
---|
| 1195 | */
|
---|
| 1196 | /** @def STAMR3DECL(type)
|
---|
| 1197 | * R3 Statistics Manager export or import declaration.
|
---|
| 1198 | * @param type The return type of the function declaration.
|
---|
| 1199 | */
|
---|
| 1200 | #ifdef IN_STAM_R3
|
---|
| 1201 | # define STAMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1202 | #else
|
---|
| 1203 | # define STAMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1204 | #endif
|
---|
| 1205 |
|
---|
| 1206 | /** @def IN_STAM_R0
|
---|
| 1207 | * Used to indicate whether we're inside the same link module as the Ring 0
|
---|
| 1208 | * Statistics Manager.
|
---|
| 1209 | */
|
---|
| 1210 | /** @def STAMR0DECL(type)
|
---|
| 1211 | * R0 Statistics Manager export or import declaration.
|
---|
| 1212 | * @param type The return type of the function declaration.
|
---|
| 1213 | */
|
---|
| 1214 | #ifdef IN_STAM_R0
|
---|
| 1215 | # define STAMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1216 | #else
|
---|
| 1217 | # define STAMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1218 | #endif
|
---|
| 1219 |
|
---|
| 1220 | /** @def IN_STAM_GC
|
---|
| 1221 | * Used to indicate whether we're inside the same link module as the GC
|
---|
| 1222 | * Statistics Manager.
|
---|
| 1223 | */
|
---|
| 1224 | /** @def STAMGCDECL(type)
|
---|
| 1225 | * GC Statistics Manager export or import declaration.
|
---|
| 1226 | * @param type The return type of the function declaration.
|
---|
| 1227 | */
|
---|
| 1228 | #ifdef IN_STAM_GC
|
---|
| 1229 | # define STAMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1230 | #else
|
---|
| 1231 | # define STAMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1232 | #endif
|
---|
| 1233 |
|
---|
| 1234 | /** @def STAMGCDECL(type)
|
---|
| 1235 | * Debugging Facility export or import declaration.
|
---|
| 1236 | * @param type The return type of the function declaration.
|
---|
| 1237 | */
|
---|
| 1238 | #if defined(IN_STAM_R3) || defined(IN_STAM_R0) || defined(IN_STAM_GC)
|
---|
| 1239 | # define STAMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1240 | #else
|
---|
| 1241 | # define STAMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1242 | #endif
|
---|
| 1243 |
|
---|
| 1244 |
|
---|
| 1245 |
|
---|
| 1246 | /** @def IN_EM_R3
|
---|
| 1247 | * Used to indicate whether we're inside the same link module as the Ring 3
|
---|
| 1248 | * Execution Monitor.
|
---|
| 1249 | */
|
---|
| 1250 | /** @def EMR3DECL(type)
|
---|
| 1251 | * Execution Monitor export or import declaration.
|
---|
| 1252 | * @param type The return type of the function declaration.
|
---|
| 1253 | */
|
---|
| 1254 | #ifdef IN_EM_R3
|
---|
| 1255 | # define EMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1256 | #else
|
---|
| 1257 | # define EMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1258 | #endif
|
---|
| 1259 |
|
---|
| 1260 | /** @def IN_EM_GC
|
---|
| 1261 | * Used to indicate whether we're inside the same link module as the GC
|
---|
| 1262 | * Execution Monitor.
|
---|
| 1263 | */
|
---|
| 1264 | /** @def EMGCDECL(type)
|
---|
| 1265 | * Execution Monitor export or import declaration.
|
---|
| 1266 | * @param type The return type of the function declaration.
|
---|
| 1267 | */
|
---|
| 1268 | #ifdef IN_EM_GC
|
---|
| 1269 | # define EMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1270 | #else
|
---|
| 1271 | # define EMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1272 | #endif
|
---|
| 1273 |
|
---|
| 1274 |
|
---|
| 1275 | /** @def EMDECL(type)
|
---|
| 1276 | * Execution Monitor export or import declaration.
|
---|
| 1277 | * @param type The return type of the function declaration.
|
---|
| 1278 | */
|
---|
| 1279 | #if defined(IN_EM_R3) || defined(IN_EM_GC) || defined(IN_EM_R0)
|
---|
| 1280 | # define EMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1281 | #else
|
---|
| 1282 | # define EMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1283 | #endif
|
---|
| 1284 |
|
---|
| 1285 |
|
---|
| 1286 | /** @def IN_IDE_R3
|
---|
| 1287 | * Used to indicate whether we're inside the same link module as the Ring 3
|
---|
| 1288 | * IDE device.
|
---|
| 1289 | */
|
---|
| 1290 | /** @def IDER3DECL(type)
|
---|
| 1291 | * Ring-3 IDE device export or import declaration.
|
---|
| 1292 | * @param type The return type of the function declaration.
|
---|
| 1293 | */
|
---|
| 1294 | #ifdef IN_IDE_R3
|
---|
| 1295 | # define IDER3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1296 | #else
|
---|
| 1297 | # define IDER3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1298 | #endif
|
---|
| 1299 |
|
---|
| 1300 |
|
---|
[1566] | 1301 | /** @def IN_VBOXDDU
|
---|
| 1302 | * Used to indicate whether we're inside the VBoxDDU shared object.
|
---|
| 1303 | */
|
---|
| 1304 | /** @def VBOXDDU_DECL(type)
|
---|
| 1305 | * VBoxDDU export or import (ring-3).
|
---|
| 1306 | * @param type The return type of the function declaration.
|
---|
| 1307 | */
|
---|
| 1308 | #ifdef IN_VBOXDDU
|
---|
| 1309 | # define VBOXDDU_DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1310 | #else
|
---|
| 1311 | # define VBOXDDU_DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1312 | #endif
|
---|
[1] | 1313 |
|
---|
[1566] | 1314 |
|
---|
| 1315 |
|
---|
[1] | 1316 | /** @def IN_REM_R0
|
---|
| 1317 | * Used to indicate whether we're inside the same link module as
|
---|
| 1318 | * the HC Ring-0 Recompiled Execution Manager.
|
---|
| 1319 | */
|
---|
| 1320 | /** @def REMR0DECL(type)
|
---|
| 1321 | * Recompiled Execution Manager HC Ring-0 export or import declaration.
|
---|
| 1322 | * @param type The return type of the function declaration.
|
---|
| 1323 | */
|
---|
| 1324 | #ifdef IN_REM_R0
|
---|
| 1325 | # define REMR0DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1326 | #else
|
---|
| 1327 | # define REMR0DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1328 | #endif
|
---|
| 1329 |
|
---|
| 1330 | /** @def IN_RT_R3
|
---|
| 1331 | * Used to indicate whether we're inside the same link module as
|
---|
| 1332 | * the HC Ring-3 Recompiled Execution Manager.
|
---|
| 1333 | */
|
---|
| 1334 | /** @def RTR3DECL(type)
|
---|
| 1335 | * Recompiled Execution Manager HC Ring-3 export or import declaration.
|
---|
| 1336 | * @param type The return type of the function declaration.
|
---|
| 1337 | */
|
---|
| 1338 | #ifdef IN_REM_R3
|
---|
| 1339 | # define REMR3DECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1340 | #else
|
---|
| 1341 | # define REMR3DECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1342 | #endif
|
---|
| 1343 |
|
---|
| 1344 | /** @def IN_REM_GC
|
---|
| 1345 | * Used to indicate whether we're inside the same link module as
|
---|
| 1346 | * the GC Recompiled Execution Manager.
|
---|
| 1347 | */
|
---|
| 1348 | /** @def REMGCDECL(type)
|
---|
| 1349 | * Recompiled Execution Manager HC Ring-3 export or import declaration.
|
---|
| 1350 | * @param type The return type of the function declaration.
|
---|
| 1351 | */
|
---|
| 1352 | #ifdef IN_REM_GC
|
---|
| 1353 | # define REMGCDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1354 | #else
|
---|
| 1355 | # define REMGCDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1356 | #endif
|
---|
| 1357 |
|
---|
| 1358 | /** @def REMDECL(type)
|
---|
| 1359 | * Recompiled Execution Manager export or import declaration.
|
---|
| 1360 | * Functions declared using this macro exists in all contexts.
|
---|
| 1361 | * @param type The return type of the function declaration.
|
---|
| 1362 | */
|
---|
| 1363 | #if defined(IN_REM_R3) || defined(IN_REM_GC) || defined(IN_REM_R0)
|
---|
| 1364 | # define REMDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1365 | #else
|
---|
| 1366 | # define REMDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1367 | #endif
|
---|
| 1368 |
|
---|
| 1369 |
|
---|
| 1370 |
|
---|
| 1371 |
|
---|
| 1372 | /** @def DBGDECL(type)
|
---|
| 1373 | * Debugger module export or import declaration.
|
---|
| 1374 | * Functions declared using this exists only in R3 since the
|
---|
| 1375 | * debugger modules is R3 only.
|
---|
| 1376 | * @param type The return type of the function declaration.
|
---|
| 1377 | */
|
---|
| 1378 | #if defined(IN_DBG_R3) || defined(IN_DBG)
|
---|
| 1379 | # define DBGDECL(type) DECLEXPORT(type) VBOXCALL
|
---|
| 1380 | #else
|
---|
| 1381 | # define DBGDECL(type) DECLIMPORT(type) VBOXCALL
|
---|
| 1382 | #endif
|
---|
| 1383 |
|
---|
| 1384 |
|
---|
[6475] | 1385 | /** @def NoDmik(expr)
|
---|
| 1386 | * Turns the given expression into NOOP when DEBUG_dmik is defined. Evaluates
|
---|
| 1387 | * the expression normally otherwise.
|
---|
| 1388 | * @param expr Expression to guard.
|
---|
[6489] | 1389 | * @todo r=bird: please rename to NO_DMIK or NOT_DMIK.
|
---|
[6475] | 1390 | */
|
---|
| 1391 | #if defined(DEBUG_dmik)
|
---|
[6489] | 1392 | # define NoDmik(expr) do { } while (0)
|
---|
[6475] | 1393 | #else
|
---|
| 1394 | # define NoDmik(expr) expr
|
---|
| 1395 | #endif
|
---|
[1] | 1396 |
|
---|
| 1397 |
|
---|
[3633] | 1398 | #endif
|
---|
[1] | 1399 |
|
---|