Changeset 30788 in vbox for trunk/include/VBox
- Timestamp:
- Jul 12, 2010 11:20:45 AM (15 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxHDD.h
r30555 r30788 274 274 DECLINLINE(PVDINTERFACE) VDInterfaceGet(PVDINTERFACE pVDIfs, VDINTERFACETYPE enmInterface) 275 275 { 276 AssertMsgReturn( (enmInterface >= VDINTERFACETYPE_FIRST)277 && (enmInterface < VDINTERFACETYPE_INVALID),276 AssertMsgReturn( enmInterface >= VDINTERFACETYPE_FIRST 277 && enmInterface < VDINTERFACETYPE_INVALID, 278 278 ("enmInterface=%u", enmInterface), NULL); 279 279 … … 308 308 void *pvUser, PVDINTERFACE *ppVDIfs) 309 309 { 310 311 /** Argument checks. */ 312 AssertMsgReturn( (enmInterface >= VDINTERFACETYPE_FIRST) 313 && (enmInterface < VDINTERFACETYPE_INVALID), 310 /* Argument checks. */ 311 AssertMsgReturn( enmInterface >= VDINTERFACETYPE_FIRST 312 && enmInterface < VDINTERFACETYPE_INVALID, 314 313 ("enmInterface=%u", enmInterface), VERR_INVALID_PARAMETER); 315 314 … … 347 346 int rc = VERR_NOT_FOUND; 348 347 349 /* *Argument checks. */348 /* Argument checks. */ 350 349 AssertMsgReturn(VALID_PTR(pInterface), 351 350 ("pInterface=%#p", pInterface), … … 436 435 DECLINLINE(PVDINTERFACEERROR) VDGetInterfaceError(PVDINTERFACE pInterface) 437 436 { 437 PVDINTERFACEERROR pInterfaceError; 438 438 439 /* Check that the interface descriptor is a error interface. */ 439 AssertMsgReturn( (pInterface->enmInterface == VDINTERFACETYPE_ERROR)440 && (pInterface->cbSize == sizeof(VDINTERFACE)),440 AssertMsgReturn( pInterface->enmInterface == VDINTERFACETYPE_ERROR 441 && pInterface->cbSize == sizeof(VDINTERFACE), 441 442 ("Not an error interface"), NULL); 442 443 443 PVDINTERFACEERRORpInterfaceError = (PVDINTERFACEERROR)pInterface->pCallbacks;444 pInterfaceError = (PVDINTERFACEERROR)pInterface->pCallbacks; 444 445 445 446 /* Do basic checks. */ 446 AssertMsgReturn( (pInterfaceError->cbSize == sizeof(VDINTERFACEERROR))447 && (pInterfaceError->enmInterface == VDINTERFACETYPE_ERROR),447 AssertMsgReturn( pInterfaceError->cbSize == sizeof(VDINTERFACEERROR) 448 && pInterfaceError->enmInterface == VDINTERFACETYPE_ERROR, 448 449 ("A non error callback table attached to a error interface descriptor\n"), NULL); 449 450 … … 632 633 DECLINLINE(PVDINTERFACEASYNCIO) VDGetInterfaceAsyncIO(PVDINTERFACE pInterface) 633 634 { 635 PVDINTERFACEASYNCIO pInterfaceAsyncIO; 636 634 637 /* Check that the interface descriptor is a async I/O interface. */ 635 638 AssertMsgReturn( (pInterface->enmInterface == VDINTERFACETYPE_ASYNCIO) … … 637 640 ("Not an async I/O interface"), NULL); 638 641 639 PVDINTERFACEASYNCIOpInterfaceAsyncIO = (PVDINTERFACEASYNCIO)pInterface->pCallbacks;642 pInterfaceAsyncIO = (PVDINTERFACEASYNCIO)pInterface->pCallbacks; 640 643 641 644 /* Do basic checks. */ … … 691 694 DECLINLINE(PVDINTERFACEPROGRESS) VDGetInterfaceProgress(PVDINTERFACE pInterface) 692 695 { 696 PVDINTERFACEPROGRESS pInterfaceProgress; 697 693 698 /* Check that the interface descriptor is a progress interface. */ 694 699 AssertMsgReturn( (pInterface->enmInterface == VDINTERFACETYPE_PROGRESS) … … 697 702 698 703 699 PVDINTERFACEPROGRESSpInterfaceProgress = (PVDINTERFACEPROGRESS)pInterface->pCallbacks;704 pInterfaceProgress = (PVDINTERFACEPROGRESS)pInterface->pCallbacks; 700 705 701 706 /* Do basic checks. */ … … 772 777 DECLINLINE(PVDINTERFACECONFIG) VDGetInterfaceConfig(PVDINTERFACE pInterface) 773 778 { 779 PVDINTERFACECONFIG pInterfaceConfig; 780 774 781 /* Check that the interface descriptor is a config interface. */ 775 782 AssertMsgReturn( (pInterface->enmInterface == VDINTERFACETYPE_CONFIG) … … 777 784 ("Not a config interface"), NULL); 778 785 779 PVDINTERFACECONFIGpInterfaceConfig = (PVDINTERFACECONFIG)pInterface->pCallbacks;786 pInterfaceConfig = (PVDINTERFACECONFIG)pInterface->pCallbacks; 780 787 781 788 /* Do basic checks. */ … … 977 984 if (RT_SUCCESS(rc)) 978 985 { 986 char *pbData; 979 987 Assert(cb); 980 988 981 char *pvData = (char *)RTMemAlloc(cb);982 if (p vData)989 pbData = (char *)RTMemAlloc(cb); 990 if (pbData) 983 991 { 984 rc = pCfgIf->pfnQuery(pvUser, pszName, p vData, cb);992 rc = pCfgIf->pfnQuery(pvUser, pszName, pbData, cb); 985 993 if (RT_SUCCESS(rc)) 986 994 { 987 *ppvData = p vData;995 *ppvData = pbData; 988 996 *pcbData = cb - 1; /* Exclude terminator of the queried string. */ 989 997 } 990 998 else 991 RTMemFree(p vData);999 RTMemFree(pbData); 992 1000 } 993 1001 else … … 1123 1131 DECLINLINE(PVDINTERFACETCPNET) VDGetInterfaceTcpNet(PVDINTERFACE pInterface) 1124 1132 { 1133 PVDINTERFACETCPNET pInterfaceTcpNet; 1134 1125 1135 /* Check that the interface descriptor is a TCP network stack interface. */ 1126 1136 AssertMsgReturn( (pInterface->enmInterface == VDINTERFACETYPE_TCPNET) … … 1128 1138 ("Not a TCP network stack interface"), NULL); 1129 1139 1130 PVDINTERFACETCPNETpInterfaceTcpNet = (PVDINTERFACETCPNET)pInterface->pCallbacks;1140 pInterfaceTcpNet = (PVDINTERFACETCPNET)pInterface->pCallbacks; 1131 1141 1132 1142 /* Do basic checks. */ … … 1181 1191 DECLINLINE(PVDINTERFACEPARENTSTATE) VDGetInterfaceParentState(PVDINTERFACE pInterface) 1182 1192 { 1193 PVDINTERFACEPARENTSTATE pInterfaceParentState; 1194 1183 1195 /* Check that the interface descriptor is a parent state interface. */ 1184 1196 AssertMsgReturn( (pInterface->enmInterface == VDINTERFACETYPE_PARENTSTATE) … … 1186 1198 ("Not a parent state interface"), NULL); 1187 1199 1188 PVDINTERFACEPARENTSTATEpInterfaceParentState = (PVDINTERFACEPARENTSTATE)pInterface->pCallbacks;1200 pInterfaceParentState = (PVDINTERFACEPARENTSTATE)pInterface->pCallbacks; 1189 1201 1190 1202 /* Do basic checks. */ … … 1260 1272 DECLINLINE(PVDINTERFACETHREADSYNC) VDGetInterfaceThreadSync(PVDINTERFACE pInterface) 1261 1273 { 1274 PVDINTERFACETHREADSYNC pInterfaceThreadSync; 1275 1262 1276 /* Check that the interface descriptor is a thread synchronization interface. */ 1263 1277 AssertMsgReturn( (pInterface->enmInterface == VDINTERFACETYPE_THREADSYNC) … … 1265 1279 ("Not a thread synchronization interface"), NULL); 1266 1280 1267 PVDINTERFACETHREADSYNCpInterfaceThreadSync = (PVDINTERFACETHREADSYNC)pInterface->pCallbacks;1281 pInterfaceThreadSync = (PVDINTERFACETHREADSYNC)pInterface->pCallbacks; 1268 1282 1269 1283 /* Do basic checks. */ … … 1642 1656 DECLINLINE(PVDINTERFACEIO) VDGetInterfaceIO(PVDINTERFACE pInterface) 1643 1657 { 1658 PVDINTERFACEIO pInterfaceIO; 1659 1644 1660 /* Check that the interface descriptor is a async I/O interface. */ 1645 1661 AssertMsgReturn( (pInterface->enmInterface == VDINTERFACETYPE_IO) … … 1647 1663 ("Not an I/O interface"), NULL); 1648 1664 1649 PVDINTERFACEIOpInterfaceIO = (PVDINTERFACEIO)pInterface->pCallbacks;1665 pInterfaceIO = (PVDINTERFACEIO)pInterface->pCallbacks; 1650 1666 1651 1667 /* Do basic checks. */ -
trunk/include/VBox/VBoxKeyboard.h
r29654 r30788 1 1 /** @file 2 * 3 * VBox frontends: Qt GUI ("VirtualBox"): 4 * X11 keyboard driver interface 5 * 2 * Frontends/Common - X11 keyboard driver interface. 6 3 */ 7 4 … … 31 28 */ 32 29 33 #ifndef __ H_KEYBOARD34 #define __ H_KEYBOARD30 #ifndef ___VBox_VBoxKeyboard_h 31 #define ___VBox_VBoxKeyboard_h 35 32 36 33 #include <X11/Xlib.h> … … 53 50 #endif 54 51 55 #endif /* __H_KEYBOARD */52 #endif 56 53 -
trunk/include/VBox/VBoxVideo.h
r30566 r30788 469 469 #define VBOXVHWA_SD_PITCH 0x00000008 470 470 #define VBOXVHWA_SD_PIXELFORMAT 0x00001000 471 / /#define VBOXVHWA_SD_REFRESHRATE 0x00040000471 /*#define VBOXVHWA_SD_REFRESHRATE 0x00040000*/ 472 472 #define VBOXVHWA_SD_WIDTH 0x00000004 473 473 … … 529 529 #define VBOXVHWA_CAPS2_WIDESURFACES 0x00001000 530 530 #define VBOXVHWA_CAPS2_COPYFOURCC 0x00008000 531 / /#define VBOXVHWA_CAPS2_FLIPINTERVAL 0x00200000532 / /#define VBOXVHWA_CAPS2_FLIPNOVSYNC 0x00400000531 /*#define VBOXVHWA_CAPS2_FLIPINTERVAL 0x00200000*/ 532 /*#define VBOXVHWA_CAPS2_FLIPNOVSYNC 0x00400000*/ 533 533 534 534 … … 1062 1062 * while keeping this flag unchanged */ 1063 1063 #define VBOXSHGSMI_FLAG_HG_ASYNCH 0x00010000 1064 ///* if set - asynch completion is performed by issuing the event, 1065 // * if cleared - asynch completion is performed by calling a callback */ 1066 //#define VBOXSHGSMI_FLAG_GH_ASYNCH_EVENT 0x00000001 1064 #if 0 1065 /* if set - asynch completion is performed by issuing the event, 1066 * if cleared - asynch completion is performed by calling a callback */ 1067 #define VBOXSHGSMI_FLAG_GH_ASYNCH_EVENT 0x00000001 1068 #endif 1067 1069 /* issue interrupt on asynch completion, used for critical G->H commands, 1068 1070 * i.e. for completion of which guest is waiting. */ … … 1163 1165 } VBOXVDMA_SURF_DESC, *PVBOXVDMA_SURF_DESC; 1164 1166 1165 / /typedef uint64_t VBOXVDMAPHADDRESS;1167 /*typedef uint64_t VBOXVDMAPHADDRESS;*/ 1166 1168 typedef uint64_t VBOXVDMASURFHANDLE; 1167 1169 -
trunk/include/VBox/VDEPlugSymDefs.h
r29461 r30788 26 26 #include <stddef.h> 27 27 #include <sys/types.h> 28 28 29 /** Opaque connection type */ 29 30 struct vdeconn; … … 34 35 struct vde_open_args 35 36 { 36 /** The port of the switch to connect to */37 /** The port of the switch to connect to. */ 37 38 int port; 38 /** The group to set ownership of the port socket to */39 /** The group to set ownership of the port socket to. */ 39 40 char *group; 40 /** The file mode to set the port socket to */41 /** The file mode to set the port socket to. */ 41 42 mode_t mode; 42 43 }; … … 55 56 (vde_switch, descr, interface_version, open_args)) \ 56 57 RT_PROXY_STUB(vde_recv, size_t, \ 57 (VDECONN *conn, void *buf,size_t len,int flags), \58 (VDECONN *conn, void *buf,size_t len, int flags), \ 58 59 (conn, buf, len, flags)) \ 59 60 RT_PROXY_STUB(vde_send, size_t, \ 60 (VDECONN *conn, const void *buf,size_t len,int flags), \61 (VDECONN *conn, const void *buf, size_t len, int flags), \ 61 62 (conn, buf, len, flags)) \ 62 63 RT_PROXY_STUB(vde_datafd, int, (VDECONN *conn), (conn)) \ … … 74 75 # undef RT_RUNTIME_LOADER_GENERATE_BODY_STUBS 75 76 #else 76 # error This file should only be included to generate stubs for loading the \ 77 libvdeplug library at runtime 77 # error This file should only be included to generate stubs for loading the libvdeplug library at runtime 78 78 #endif 79 79 80 80 #undef RT_RUNTIME_LOADER_LIB_NAME 81 81 #undef RT_RUNTIME_LOADER_INSERT_SYMBOLS 82 -
trunk/include/VBox/cpum.h
r30263 r30788 81 81 * CPU context core. 82 82 */ 83 #ifndef VBOX_WITHOUT_UNNAMED_UNIONS 83 84 #pragma pack(1) 84 85 typedef struct CPUMCTXCORE … … 181 182 } CPUMCTXCORE; 182 183 #pragma pack() 184 #else /* VBOX_WITHOUT_UNNAMED_UNIONS */ 185 typedef struct CPUMCTXCORE CPUMCTXCORE; 186 #endif /* VBOX_WITHOUT_UNNAMED_UNIONS */ 183 187 184 188 … … 186 190 * CPU context. 187 191 */ 188 #pragma pack(1) 192 #ifndef VBOX_WITHOUT_UNNAMED_UNIONS 193 # pragma pack(1) 189 194 typedef struct CPUMCTX 190 195 { … … 348 353 /** @} */ 349 354 350 # if 0355 # if 0 351 356 /** Padding to align the size on a 64 byte boundrary. */ 352 357 uint32_t padding[6]; 353 # endif358 # endif 354 359 } CPUMCTX; 355 #pragma pack() 360 # pragma pack() 361 #else /* VBOX_WITHOUT_UNNAMED_UNIONS */ 362 typedef struct CPUMCTX CPUMCTX; 363 #endif /* VBOX_WITHOUT_UNNAMED_UNIONS */ 356 364 357 365 /** … … 379 387 * @remarks PATM uses this, which is why it has to be here. 380 388 */ 381 #pragma pack(1) 389 #ifndef VBOX_WITHOUT_UNNAMED_UNIONS 390 # pragma pack(1) 382 391 typedef struct CPUMCTX_VER1_6 383 392 { … … 541 550 } CPUMCTX_VER1_6; 542 551 #pragma pack() 552 #else /* VBOX_WITHOUT_UNNAMED_UNIONS */ 553 typedef struct CPUMCTX_VER1_6 CPUMCTX_VER1_6; 554 #endif /* VBOX_WITHOUT_UNNAMED_UNIONS */ 543 555 544 556 /** … … 725 737 VMMDECL(bool) CPUMIsGuestInPAEMode(PVMCPU pVCpu); 726 738 739 #ifndef VBOX_WITHOUT_UNNAMED_UNIONS 740 727 741 /** 728 742 * Tests if the guest is running in real mode or not. … … 800 814 && !CPUMIsGuestInLongModeEx(pCtx)); 801 815 } 816 817 #endif /* VBOX_WITHOUT_UNNAMED_UNIONS */ 802 818 803 819 /** @} */ -
trunk/include/VBox/em.h
r30338 r30788 158 158 VMMDECL(bool) EMShouldContinueAfterHalt(PVMCPU pVCpu, PCPUMCTX pCtx); 159 159 160 /* Wrap EMInterpretInstructionCPUEx for supervisor code only interpretation. 161 */ 162 inline int EMInterpretInstructionCPU(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDISState, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, uint32_t *pcbSize) 160 /** 161 * Wrap EMInterpretInstructionCPUEx for supervisor code only interpretation. 162 */ 163 DECLINLINE(int) EMInterpretInstructionCPU(PVM pVM, PVMCPU pVCpu, PDISCPUSTATE pDISState, PCPUMCTXCORE pRegFrame, 164 RTGCPTR pvFault, uint32_t *pcbSize) 163 165 { 164 166 return EMInterpretInstructionCPUEx(pVM, pVCpu, pDISState, pRegFrame, pvFault, pcbSize, EMCODETYPE_SUPERVISOR); -
trunk/include/VBox/patm.h
r28800 r30788 72 72 typedef struct PATMGCSTATE 73 73 { 74 / / Virtual Flags register (IF + more later on)74 /* Virtual Flags register (IF + more later on) */ 75 75 uint32_t uVMFlags; 76 76 … … 78 78 uint32_t uPendingAction; 79 79 80 / / Records the number of times all patches are called (indicating how many exceptions we managed to avoid)80 /* Records the number of times all patches are called (indicating how many exceptions we managed to avoid) */ 81 81 uint32_t uPatchCalls; 82 / / Scratchpad dword82 /* Scratchpad dword */ 83 83 uint32_t uScratch; 84 / / Debugging info84 /* Debugging info */ 85 85 uint32_t uIretEFlags, uIretCS, uIretEIP; 86 86 … … 110 110 typedef struct PATMTRAPREC 111 111 { 112 / / pointer to original guest code instruction (for emulation)112 /* pointer to original guest code instruction (for emulation) */ 113 113 RTRCPTR pNewEIP; 114 / / pointer to the next guest code instruction114 /* pointer to the next guest code instruction */ 115 115 RTRCPTR pNextInstr; 116 / /pointer to the corresponding next instruction in the patch block116 /* pointer to the corresponding next instruction in the patch block */ 117 117 RTRCPTR pNextPatchInstr; 118 118 } PATMTRAPREC, *PPATMTRAPREC; -
trunk/include/VBox/pgm.h
r30493 r30788 4 4 5 5 /* 6 * Copyright (C) 2006-20 07Oracle Corporation6 * Copyright (C) 2006-2010 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 32 32 #include <VBox/vmapi.h> 33 33 #include <VBox/x86.h> 34 #include <VBox/hwacc_vmx.h> 35 #include <VBox/VMMDev.h> /* for VMMDEVSHAREDREGIONDESC */ 36 #include <VBox/gmm.h> /* for PGMMREGISTERSHAREDMODULEREQ */ 34 #include <VBox/VMMDev.h> /* for VMMDEVSHAREDREGIONDESC */ 35 #include <VBox/gmm.h> /* for PGMMREGISTERSHAREDMODULEREQ */ 37 36 #include <VBox/feature.h> 38 37 -
trunk/include/VBox/vusb.h
r30653 r30788 33 33 # include "runtime.h" 34 34 #endif 35 36 struct PDMLED; 35 37 36 38 RT_C_DECLS_BEGIN
Note:
See TracChangeset
for help on using the changeset viewer.