Changeset 63273 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Aug 10, 2016 2:15:31 PM (8 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxVideo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
r62521 r63273 42 42 * be completed 43 43 */ 44 RTDECL(void) VBoxHGSMIHostCmdComplete(PHGSMIHOSTCOMMANDCONTEXT pCtx,45 void *pvMem)44 DECLHIDDEN(void) VBoxHGSMIHostCmdComplete(PHGSMIHOSTCOMMANDCONTEXT pCtx, 45 void *pvMem) 46 46 { 47 47 HGSMIBUFFERHEADER *pHdr = HGSMIBufferHeaderFromData(pvMem); … … 87 87 88 88 /** Drain the host command queue. */ 89 RTDECL(void) VBoxHGSMIProcessHostQueue(PHGSMIHOSTCOMMANDCONTEXT pCtx)89 DECLHIDDEN(void) VBoxHGSMIProcessHostQueue(PHGSMIHOSTCOMMANDCONTEXT pCtx) 90 90 { 91 91 while (pCtx->pfHostFlags->u32HostFlags & HGSMIHOSTFLAGS_COMMANDS_PENDING) … … 100 100 101 101 /** Detect whether HGSMI is supported by the host. */ 102 RTDECL(bool) VBoxHGSMIIsSupported(void)102 DECLHIDDEN(bool) VBoxHGSMIIsSupported(void) 103 103 { 104 104 uint16_t DispiId; … … 123 123 * @param u16Op the HGSMI command to be sent, set to the descriptor 124 124 */ 125 RTDECL(void *) VBoxHGSMIBufferAlloc(PHGSMIGUESTCOMMANDCONTEXT pCtx,126 HGSMISIZE cbData,127 uint8_t u8Ch,128 uint16_t u16Op)125 DECLHIDDEN(void *) VBoxHGSMIBufferAlloc(PHGSMIGUESTCOMMANDCONTEXT pCtx, 126 HGSMISIZE cbData, 127 uint8_t u8Ch, 128 uint16_t u16Op) 129 129 { 130 130 #ifdef VBOX_WDDM_MINIPORT … … 142 142 * @param pvBuffer the pointer returned by @a VBoxHGSMIBufferAlloc 143 143 */ 144 RTDECL(void) VBoxHGSMIBufferFree(PHGSMIGUESTCOMMANDCONTEXT pCtx,145 void *pvBuffer)144 DECLHIDDEN(void) VBoxHGSMIBufferFree(PHGSMIGUESTCOMMANDCONTEXT pCtx, 145 void *pvBuffer) 146 146 { 147 147 #ifdef VBOX_WDDM_MINIPORT … … 159 159 * @param pvBuffer the pointer returned by @a VBoxHGSMIBufferAlloc 160 160 */ 161 RTDECL(int) VBoxHGSMIBufferSubmit(PHGSMIGUESTCOMMANDCONTEXT pCtx,162 void *pvBuffer)161 DECLHIDDEN(int) VBoxHGSMIBufferSubmit(PHGSMIGUESTCOMMANDCONTEXT pCtx, 162 void *pvBuffer) 163 163 { 164 164 /* Initialize the buffer and get the offset for port IO. */ … … 217 217 * VRAM. 218 218 */ 219 RTDECL(int) VBoxHGSMIReportFlagsLocation(PHGSMIGUESTCOMMANDCONTEXT pCtx,220 HGSMIOFFSET offLocation)219 DECLHIDDEN(int) VBoxHGSMIReportFlagsLocation(PHGSMIGUESTCOMMANDCONTEXT pCtx, 220 HGSMIOFFSET offLocation) 221 221 { 222 222 return vboxHGSMIReportFlagsLocation(pCtx, offLocation); … … 265 265 * @param fCaps the capabilities to report, see VBVACAPS. 266 266 */ 267 RTDECL(int) VBoxHGSMISendCapsInfo(PHGSMIGUESTCOMMANDCONTEXT pCtx,268 uint32_t fCaps)267 DECLHIDDEN(int) VBoxHGSMISendCapsInfo(PHGSMIGUESTCOMMANDCONTEXT pCtx, 268 uint32_t fCaps) 269 269 { 270 270 return vboxHGSMISendCapsInfo(pCtx, fCaps); … … 314 314 * of the host flags 315 315 */ 316 RTDECL(void) VBoxHGSMIGetBaseMappingInfo(uint32_t cbVRAM,317 uint32_t *poffVRAMBaseMapping,318 uint32_t *pcbMapping,319 uint32_t *poffGuestHeapMemory,320 uint32_t *pcbGuestHeapMemory,321 uint32_t *poffHostFlags)316 DECLHIDDEN(void) VBoxHGSMIGetBaseMappingInfo(uint32_t cbVRAM, 317 uint32_t *poffVRAMBaseMapping, 318 uint32_t *pcbMapping, 319 uint32_t *poffGuestHeapMemory, 320 uint32_t *pcbGuestHeapMemory, 321 uint32_t *poffHostFlags) 322 322 { 323 323 AssertPtrNullReturnVoid(poffVRAMBaseMapping); … … 351 351 * @a pvGuestHeapMemory within the video RAM 352 352 */ 353 RTDECL(int) VBoxHGSMISetupGuestContext(PHGSMIGUESTCOMMANDCONTEXT pCtx,354 void *pvGuestHeapMemory,355 uint32_t cbGuestHeapMemory,356 uint32_t offVRAMGuestHeapMemory,357 const HGSMIENV *pEnv)353 DECLHIDDEN(int) VBoxHGSMISetupGuestContext(PHGSMIGUESTCOMMANDCONTEXT pCtx, 354 void *pvGuestHeapMemory, 355 uint32_t cbGuestHeapMemory, 356 uint32_t offVRAMGuestHeapMemory, 357 const HGSMIENV *pEnv) 358 358 { 359 359 /** @todo should we be using a fixed ISA port value here? */ … … 381 381 * @param pcbHostArea where to store the size of the host heap area 382 382 */ 383 RTDECL(void) VBoxHGSMIGetHostAreaMapping(PHGSMIGUESTCOMMANDCONTEXT pCtx,384 uint32_t cbVRAM,385 uint32_t offVRAMBaseMapping,386 uint32_t *poffVRAMHostArea,387 uint32_t *pcbHostArea)383 DECLHIDDEN(void) VBoxHGSMIGetHostAreaMapping(PHGSMIGUESTCOMMANDCONTEXT pCtx, 384 uint32_t cbVRAM, 385 uint32_t offVRAMBaseMapping, 386 uint32_t *poffVRAMHostArea, 387 uint32_t *pcbHostArea) 388 388 { 389 389 uint32_t offVRAMHostArea = offVRAMBaseMapping, cbHostArea = 0; … … 427 427 * @param cbHostArea size in bytes of the host heap area 428 428 */ 429 RTDECL(void) VBoxHGSMISetupHostContext(PHGSMIHOSTCOMMANDCONTEXT pCtx,430 void *pvBaseMapping,431 uint32_t offHostFlags,432 void *pvHostAreaMapping,433 uint32_t offVRAMHostArea,434 uint32_t cbHostArea)429 DECLHIDDEN(void) VBoxHGSMISetupHostContext(PHGSMIHOSTCOMMANDCONTEXT pCtx, 430 void *pvBaseMapping, 431 uint32_t offHostFlags, 432 void *pvHostAreaMapping, 433 uint32_t offVRAMHostArea, 434 uint32_t cbHostArea) 435 435 { 436 436 uint8_t *pu8HostFlags = ((uint8_t *)pvBaseMapping) + offHostFlags; … … 456 456 * @param cbHostArea size in bytes of the host heap area 457 457 */ 458 RTDECL(int) VBoxHGSMISendHostCtxInfo(PHGSMIGUESTCOMMANDCONTEXT pCtx,459 HGSMIOFFSET offVRAMFlagsLocation,460 uint32_t fCaps,461 uint32_t offVRAMHostArea,462 uint32_t cbHostArea)458 DECLHIDDEN(int) VBoxHGSMISendHostCtxInfo(PHGSMIGUESTCOMMANDCONTEXT pCtx, 459 HGSMIOFFSET offVRAMFlagsLocation, 460 uint32_t fCaps, 461 uint32_t offVRAMHostArea, 462 uint32_t cbHostArea) 463 463 { 464 464 Log(("VBoxVideo::vboxSetupAdapterInfo\n")); … … 514 514 * @param pulValue where to store the value of the parameter on success 515 515 */ 516 RTDECL(int) VBoxQueryConfHGSMIDef(PHGSMIGUESTCOMMANDCONTEXT pCtx,517 uint32_t u32Index, uint32_t u32DefValue, uint32_t *pulValue)516 DECLHIDDEN(int) VBoxQueryConfHGSMIDef(PHGSMIGUESTCOMMANDCONTEXT pCtx, 517 uint32_t u32Index, uint32_t u32DefValue, uint32_t *pulValue) 518 518 { 519 519 int rc = VINF_SUCCESS; … … 548 548 } 549 549 550 RTDECL(int) VBoxQueryConfHGSMI(PHGSMIGUESTCOMMANDCONTEXT pCtx,551 uint32_t u32Index, uint32_t *pulValue)550 DECLHIDDEN(int) VBoxQueryConfHGSMI(PHGSMIGUESTCOMMANDCONTEXT pCtx, 551 uint32_t u32Index, uint32_t *pulValue) 552 552 { 553 553 return VBoxQueryConfHGSMIDef(pCtx, u32Index, UINT32_MAX, pulValue); … … 566 566 * @param cbLength size in bytes of the pixel data 567 567 */ 568 RTDECL(int) VBoxHGSMIUpdatePointerShape(PHGSMIGUESTCOMMANDCONTEXT pCtx,569 uint32_t fFlags,570 uint32_t cHotX,571 uint32_t cHotY,572 uint32_t cWidth,573 uint32_t cHeight,574 uint8_t *pPixels,575 uint32_t cbLength)568 DECLHIDDEN(int) VBoxHGSMIUpdatePointerShape(PHGSMIGUESTCOMMANDCONTEXT pCtx, 569 uint32_t fFlags, 570 uint32_t cHotX, 571 uint32_t cHotY, 572 uint32_t cWidth, 573 uint32_t cHeight, 574 uint8_t *pPixels, 575 uint32_t cbLength) 576 576 { 577 577 VBVAMOUSEPOINTERSHAPE *p; … … 642 642 * @returns VERR_NO_MEMORY HGSMI heap allocation failed. 643 643 */ 644 RTDECL(int) VBoxHGSMICursorPosition(PHGSMIGUESTCOMMANDCONTEXT pCtx, bool fReportPosition, uint32_t x, uint32_t y,645 uint32_t *pxHost, uint32_t *pyHost)644 DECLHIDDEN(int) VBoxHGSMICursorPosition(PHGSMIGUESTCOMMANDCONTEXT pCtx, bool fReportPosition, uint32_t x, uint32_t y, 645 uint32_t *pxHost, uint32_t *pyHost) 646 646 { 647 647 int rc = VINF_SUCCESS; -
trunk/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
r62521 r63273 37 37 * @param pCtx the context containing the heap to use 38 38 */ 39 RTDECL(uint32_t) VBoxHGSMIGetMonitorCount(PHGSMIGUESTCOMMANDCONTEXT pCtx)39 DECLHIDDEN(uint32_t) VBoxHGSMIGetMonitorCount(PHGSMIGUESTCOMMANDCONTEXT pCtx) 40 40 { 41 41 /* Query the configured number of displays. */ … … 55 55 * @returns the size 56 56 */ 57 RTDECL(uint32_t) VBoxVideoGetVRAMSize(void)57 DECLHIDDEN(uint32_t) VBoxVideoGetVRAMSize(void) 58 58 { 59 59 /** @note A 32bit read on this port returns the VRAM size. */ … … 68 68 * @returns true if any width is allowed, false otherwise. 69 69 */ 70 RTDECL(bool) VBoxVideoAnyWidthAllowed(void)70 DECLHIDDEN(bool) VBoxVideoAnyWidthAllowed(void) 71 71 { 72 72 unsigned DispiId; … … 94 94 * @param pvData context data for @a pfnFill 95 95 */ 96 RTDECL(int) VBoxHGSMISendViewInfo(PHGSMIGUESTCOMMANDCONTEXT pCtx,97 uint32_t u32Count,98 PFNHGSMIFILLVIEWINFO pfnFill,99 void *pvData)96 DECLHIDDEN(int) VBoxHGSMISendViewInfo(PHGSMIGUESTCOMMANDCONTEXT pCtx, 97 uint32_t u32Count, 98 PFNHGSMIFILLVIEWINFO pfnFill, 99 void *pvData) 100 100 { 101 101 int rc; … … 131 131 * @param cy the vertical panning offset 132 132 */ 133 RTDECL(void) VBoxVideoSetModeRegisters(uint16_t cWidth, uint16_t cHeight,134 uint16_t cVirtWidth, uint16_t cBPP,135 uint16_t fFlags, uint16_t cx,136 uint16_t cy)133 DECLHIDDEN(void) VBoxVideoSetModeRegisters(uint16_t cWidth, uint16_t cHeight, 134 uint16_t cVirtWidth, uint16_t cBPP, 135 uint16_t fFlags, uint16_t cx, 136 uint16_t cy) 137 137 { 138 138 /* set the mode characteristics */ … … 175 175 * @param pfFlags where to store the flags for the mode 176 176 */ 177 RTDECL(bool) VBoxVideoGetModeRegisters(uint16_t *pcWidth, uint16_t *pcHeight,178 uint16_t *pcVirtWidth, uint16_t *pcBPP,179 uint16_t *pfFlags)177 DECLHIDDEN(bool) VBoxVideoGetModeRegisters(uint16_t *pcWidth, uint16_t *pcHeight, 178 uint16_t *pcVirtWidth, uint16_t *pcBPP, 179 uint16_t *pfFlags) 180 180 { 181 181 uint16_t fFlags; … … 217 217 * Disable our extended graphics mode and go back to VGA mode. 218 218 */ 219 RTDECL(void) VBoxVideoDisableVBE(void)219 DECLHIDDEN(void) VBoxVideoDisableVBE(void) 220 220 { 221 221 VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_INDEX, … … 240 240 * @param cBPP the colour depth of the mode 241 241 */ 242 RTDECL(void) VBoxHGSMIProcessDisplayInfo(PHGSMIGUESTCOMMANDCONTEXT pCtx,243 uint32_t cDisplay,244 int32_t cOriginX,245 int32_t cOriginY,246 uint32_t offStart,247 uint32_t cbPitch,248 uint32_t cWidth,249 uint32_t cHeight,250 uint16_t cBPP,251 uint16_t fFlags)242 DECLHIDDEN(void) VBoxHGSMIProcessDisplayInfo(PHGSMIGUESTCOMMANDCONTEXT pCtx, 243 uint32_t cDisplay, 244 int32_t cOriginX, 245 int32_t cOriginY, 246 uint32_t offStart, 247 uint32_t cbPitch, 248 uint32_t cWidth, 249 uint32_t cHeight, 250 uint16_t cBPP, 251 uint16_t fFlags) 252 252 { 253 253 /* Issue the screen info command. */ … … 293 293 * @returns VERR_NO_MEMORY HGSMI heap allocation failed. 294 294 */ 295 RTDECL(int) VBoxHGSMIUpdateInputMapping(PHGSMIGUESTCOMMANDCONTEXT pCtx, int32_t cOriginX, int32_t cOriginY,296 uint32_t cWidth, uint32_t cHeight)295 DECLHIDDEN(int) VBoxHGSMIUpdateInputMapping(PHGSMIGUESTCOMMANDCONTEXT pCtx, int32_t cOriginX, int32_t cOriginY, 296 uint32_t cWidth, uint32_t cHeight) 297 297 { 298 298 int rc = VINF_SUCCESS; … … 331 331 * @returns VERR_NOT_SUPPORTED Host does not support this command. 332 332 */ 333 RTDECL(int) VBoxHGSMIGetModeHints(PHGSMIGUESTCOMMANDCONTEXT pCtx,334 unsigned cScreens, VBVAMODEHINT *paHints)333 DECLHIDDEN(int) VBoxHGSMIGetModeHints(PHGSMIGUESTCOMMANDCONTEXT pCtx, 334 unsigned cScreens, VBVAMODEHINT *paHints) 335 335 { 336 336 int rc; … … 370 370 * @param pCtx the context containing the heap to use 371 371 */ 372 RTDECL(uint16_t) VBoxHGSMIGetScreenFlags(PHGSMIGUESTCOMMANDCONTEXT pCtx)372 DECLHIDDEN(uint16_t) VBoxHGSMIGetScreenFlags(PHGSMIGUESTCOMMANDCONTEXT pCtx) 373 373 { 374 374 uint32_t u32Flags = 0; -
trunk/src/VBox/Additions/common/VBoxVideo/VBVABase.cpp
r62521 r63273 98 98 * Public hardware buffer methods. 99 99 */ 100 RTDECL(bool) VBoxVBVAEnable(PVBVABUFFERCONTEXT pCtx,101 PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx,102 VBVABUFFER *pVBVA, int32_t cScreen)100 DECLHIDDEN(bool) VBoxVBVAEnable(PVBVABUFFERCONTEXT pCtx, 101 PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, 102 VBVABUFFER *pVBVA, int32_t cScreen) 103 103 { 104 104 bool bRc = false; … … 137 137 } 138 138 139 RTDECL(void) VBoxVBVADisable(PVBVABUFFERCONTEXT pCtx,140 PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx,141 int32_t cScreen)139 DECLHIDDEN(void) VBoxVBVADisable(PVBVABUFFERCONTEXT pCtx, 140 PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, 141 int32_t cScreen) 142 142 { 143 143 LogFlowFunc(("\n")); … … 152 152 } 153 153 154 RTDECL(bool) VBoxVBVABufferBeginUpdate(PVBVABUFFERCONTEXT pCtx,155 PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx)154 DECLHIDDEN(bool) VBoxVBVABufferBeginUpdate(PVBVABUFFERCONTEXT pCtx, 155 PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx) 156 156 { 157 157 bool bRc = false; … … 202 202 } 203 203 204 RTDECL(void) VBoxVBVABufferEndUpdate(PVBVABUFFERCONTEXT pCtx)204 DECLHIDDEN(void) VBoxVBVABufferEndUpdate(PVBVABUFFERCONTEXT pCtx) 205 205 { 206 206 VBVARECORD *pRecord; … … 357 357 * Public writer to the hardware buffer. 358 358 */ 359 RTDECL(bool) VBoxVBVAWrite(PVBVABUFFERCONTEXT pCtx,360 PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx,361 const void *pv, uint32_t cb)359 DECLHIDDEN(bool) VBoxVBVAWrite(PVBVABUFFERCONTEXT pCtx, 360 PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, 361 const void *pv, uint32_t cb) 362 362 { 363 363 return vboxHwBufferWrite (pCtx, pHGSMICtx, pv, cb); 364 364 } 365 365 366 RTDECL(bool) VBoxVBVAOrderSupported(PVBVABUFFERCONTEXT pCtx, unsigned code)366 DECLHIDDEN(bool) VBoxVBVAOrderSupported(PVBVABUFFERCONTEXT pCtx, unsigned code) 367 367 { 368 368 VBVABUFFER *pVBVA = pCtx->pVBVA; … … 381 381 } 382 382 383 RTDECL(void) VBoxVBVASetupBufferContext(PVBVABUFFERCONTEXT pCtx,384 uint32_t offVRAMBuffer,385 uint32_t cbBuffer)383 DECLHIDDEN(void) VBoxVBVASetupBufferContext(PVBVABUFFERCONTEXT pCtx, 384 uint32_t offVRAMBuffer, 385 uint32_t cbBuffer) 386 386 { 387 387 pCtx->offVRAMBuffer = offVRAMBuffer;
Note:
See TracChangeset
for help on using the changeset viewer.