VirtualBox

儲存庫 vbox 的更動 63242


忽略:
時間撮記:
2016-8-10 上午10:12:45 (8 年 以前)
作者:
vboxsync
訊息:

VBoxMPVbva.cpp/h: RT_DECL is not for use outside IPRT!! This code didn't need exporting or importing, maybe not even an explicit calling convention.

位置:
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp

    r63062 r63242  
    11/* $Id$ */
    2 
    32/** @file
    43 * VBox WDDM Miniport driver
     
    235234 * Public hardware buffer methods.
    236235 */
    237 RTDECL(int) VBoxVBVAExEnable(PVBVAEXBUFFERCONTEXT pCtx,
    238                             PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx,
    239                             VBVABUFFER *pVBVA)
     236VBVAEX_DECL(int) VBoxVBVAExEnable(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, VBVABUFFER *pVBVA)
    240237{
    241238    int rc = VERR_GENERAL_FAILURE;
     
    275272}
    276273
    277 RTDECL(void) VBoxVBVAExDisable(PVBVAEXBUFFERCONTEXT pCtx,
    278                              PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx)
     274VBVAEX_DECL(void) VBoxVBVAExDisable(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx)
    279275{
    280276    LogFlowFunc(("\n"));
     
    289285}
    290286
    291 RTDECL(bool) VBoxVBVAExBufferBeginUpdate(PVBVAEXBUFFERCONTEXT pCtx,
    292                                        PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx)
     287VBVAEX_DECL(bool) VBoxVBVAExBufferBeginUpdate(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx)
    293288{
    294289    bool bRc = false;
     
    342337}
    343338
    344 RTDECL(void) VBoxVBVAExBufferEndUpdate(PVBVAEXBUFFERCONTEXT pCtx)
     339VBVAEX_DECL(void) VBoxVBVAExBufferEndUpdate(PVBVAEXBUFFERCONTEXT pCtx)
    345340{
    346341    VBVARECORD *pRecord;
     
    513508 * Public writer to the hardware buffer.
    514509 */
    515 RTDECL(uint32_t) VBoxVBVAExGetFreeTail(PVBVAEXBUFFERCONTEXT pCtx)
     510VBVAEX_DECL(uint32_t) VBoxVBVAExGetFreeTail(PVBVAEXBUFFERCONTEXT pCtx)
    516511{
    517512    VBVABUFFER *pVBVA = pCtx->pVBVA;
     
    521516}
    522517
    523 RTDECL(void*) VBoxVBVAExAllocContiguous(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, uint32_t cb)
     518VBVAEX_DECL(void *) VBoxVBVAExAllocContiguous(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, uint32_t cb)
    524519{
    525520    VBVARECORD *pRecord;
     
    578573}
    579574
    580 RTDECL(bool) VBoxVBVAExIsProcessing(PVBVAEXBUFFERCONTEXT pCtx)
     575VBVAEX_DECL(bool) VBoxVBVAExIsProcessing(PVBVAEXBUFFERCONTEXT pCtx)
    581576{
    582577    uint32_t u32HostEvents = pCtx->pVBVA->hostFlags.u32HostEvents;
     
    584579}
    585580
    586 RTDECL(void) VBoxVBVAExCBufferCompleted(PVBVAEXBUFFERCONTEXT pCtx)
     581VBVAEX_DECL(void) VBoxVBVAExCBufferCompleted(PVBVAEXBUFFERCONTEXT pCtx)
    587582{
    588583    VBVABUFFER *pVBVA = pCtx->pVBVA;
     
    592587}
    593588
    594 RTDECL(bool) VBoxVBVAExWrite(PVBVAEXBUFFERCONTEXT pCtx,
    595                            PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx,
    596                            const void *pv, uint32_t cb)
     589VBVAEX_DECL(bool) VBoxVBVAExWrite(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, const void *pv, uint32_t cb)
    597590{
    598591    return vboxHwBufferWrite(pCtx, pHGSMICtx, pv, cb);
    599592}
    600593
    601 RTDECL(bool) VBoxVBVAExOrderSupported(PVBVAEXBUFFERCONTEXT pCtx, unsigned code)
     594VBVAEX_DECL(bool) VBoxVBVAExOrderSupported(PVBVAEXBUFFERCONTEXT pCtx, unsigned code)
    602595{
    603596    VBVABUFFER *pVBVA = pCtx->pVBVA;
     
    616609}
    617610
    618 RTDECL(void) VBoxVBVAExSetupBufferContext(PVBVAEXBUFFERCONTEXT pCtx,
    619                                         uint32_t offVRAMBuffer,
    620                                         uint32_t cbBuffer,
    621                                         PFNVBVAEXBUFFERFLUSH pfnFlush,
    622                                         void *pvFlush)
     611VBVAEX_DECL(void) VBoxVBVAExSetupBufferContext(PVBVAEXBUFFERCONTEXT pCtx, uint32_t offVRAMBuffer, uint32_t cbBuffer,
     612                                               PFNVBVAEXBUFFERFLUSH pfnFlush, void *pvFlush)
    623613{
    624614    memset(pCtx, 0, RT_OFFSETOF(VBVAEXBUFFERCONTEXT, pVBVA));
     
    647637}
    648638
    649 RTDECL(void) VBoxVBVAExBIterInit(PVBVAEXBUFFERCONTEXT pCtx, PVBVAEXBUFFERBACKWARDITER pIter)
     639VBVAEX_DECL(void) VBoxVBVAExBIterInit(PVBVAEXBUFFERCONTEXT pCtx, PVBVAEXBUFFERBACKWARDITER pIter)
    650640{
    651641    struct VBVABUFFER *pVBVA = pCtx->pVBVA;
     
    668658}
    669659
    670 RTDECL(void*) VBoxVBVAExBIterNext(PVBVAEXBUFFERBACKWARDITER pIter, uint32_t *pcbBuffer, bool *pfProcessed)
     660VBVAEX_DECL(void *) VBoxVBVAExBIterNext(PVBVAEXBUFFERBACKWARDITER pIter, uint32_t *pcbBuffer, bool *pfProcessed)
    671661{
    672662    PVBVAEXBUFFERCONTEXT pCtx = pIter->Base.pCtx;
     
    688678}
    689679
    690 RTDECL(void) VBoxVBVAExCFIterInit(PVBVAEXBUFFERCONTEXT pCtx, PVBVAEXBUFFERFORWARDITER pIter)
     680VBVAEX_DECL(void) VBoxVBVAExCFIterInit(PVBVAEXBUFFERCONTEXT pCtx, PVBVAEXBUFFERFORWARDITER pIter)
    691681{
    692682    pIter->Base.pCtx = pCtx;
     
    695685}
    696686
    697 RTDECL(void*) VBoxVBVAExCFIterNext(PVBVAEXBUFFERFORWARDITER pIter, uint32_t *pcbBuffer, bool *pfProcessed)
     687VBVAEX_DECL(void *) VBoxVBVAExCFIterNext(PVBVAEXBUFFERFORWARDITER pIter, uint32_t *pcbBuffer, bool *pfProcessed)
    698688{
    699689    PVBVAEXBUFFERCONTEXT pCtx = pIter->Base.pCtx;
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.h

    r63039 r63242  
    144144/** @name VBVAEx APIs
    145145 * @{ */
    146 RTDECL(int) VBoxVBVAExEnable(PVBVAEXBUFFERCONTEXT pCtx,
    147                             PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx,
    148                             struct VBVABUFFER *pVBVA);
    149 RTDECL(void) VBoxVBVAExDisable(PVBVAEXBUFFERCONTEXT pCtx,
    150                              PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx);
    151 RTDECL(bool) VBoxVBVAExBufferBeginUpdate(PVBVAEXBUFFERCONTEXT pCtx,
    152                                        PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx);
    153 RTDECL(void) VBoxVBVAExBufferEndUpdate(PVBVAEXBUFFERCONTEXT pCtx);
    154 RTDECL(bool) VBoxVBVAExWrite(PVBVAEXBUFFERCONTEXT pCtx,
    155                            PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx,
    156                            const void *pv, uint32_t cb);
    157 
    158 RTDECL(bool) VBoxVBVAExOrderSupported(PVBVAEXBUFFERCONTEXT pCtx, unsigned code);
    159 
    160 RTDECL(void) VBoxVBVAExSetupBufferContext(PVBVAEXBUFFERCONTEXT pCtx,
    161                                         uint32_t offVRAMBuffer,
    162                                         uint32_t cbBuffer,
    163                                         PFNVBVAEXBUFFERFLUSH pfnFlush,
    164                                         void *pvFlush);
     146#define VBVAEX_DECL(type) type VBOXCALL
     147VBVAEX_DECL(int) VBoxVBVAExEnable(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, struct VBVABUFFER *pVBVA);
     148VBVAEX_DECL(void) VBoxVBVAExDisable(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx);
     149VBVAEX_DECL(bool) VBoxVBVAExBufferBeginUpdate(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx);
     150VBVAEX_DECL(void) VBoxVBVAExBufferEndUpdate(PVBVAEXBUFFERCONTEXT pCtx);
     151VBVAEX_DECL(bool) VBoxVBVAExWrite(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, const void *pv, uint32_t cb);
     152
     153VBVAEX_DECL(bool) VBoxVBVAExOrderSupported(PVBVAEXBUFFERCONTEXT pCtx, unsigned code);
     154
     155VBVAEX_DECL(void) VBoxVBVAExSetupBufferContext(PVBVAEXBUFFERCONTEXT pCtx, uint32_t offVRAMBuffer, uint32_t cbBuffer,
     156                                        PFNVBVAEXBUFFERFLUSH pfnFlush, void *pvFlush);
    165157
    166158DECLINLINE(uint32_t) VBoxVBVAExGetSize(PVBVAEXBUFFERCONTEXT pCtx)
     
    169161}
    170162
    171 /* can be used to ensure the command will not cross the ring buffer boundary,
     163/** can be used to ensure the command will not cross the ring buffer boundary,
    172164 * and thus will not be splitted */
    173 RTDECL(uint32_t) VBoxVBVAExGetFreeTail(PVBVAEXBUFFERCONTEXT pCtx);
    174 /* allocates a contiguous buffer of a given size, i.e. the one that is not splitted across ringbuffer boundaries */
    175 RTDECL(void*) VBoxVBVAExAllocContiguous(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, uint32_t cb);
    176 /* answers whether host is in "processing" state now,
     165VBVAEX_DECL(uint32_t) VBoxVBVAExGetFreeTail(PVBVAEXBUFFERCONTEXT pCtx);
     166/** allocates a contiguous buffer of a given size, i.e. the one that is not splitted across ringbuffer boundaries */
     167VBVAEX_DECL(void *) VBoxVBVAExAllocContiguous(PVBVAEXBUFFERCONTEXT pCtx, PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, uint32_t cb);
     168/** answers whether host is in "processing" state now,
    177169 * i.e. if "processing" is true after the command is submitted, no notification is required to be posted to host to make the commandbe processed,
    178170 * otherwise, host should be notified about the command */
    179 RTDECL(bool) VBoxVBVAExIsProcessing(PVBVAEXBUFFERCONTEXT pCtx);
    180 
    181 /* initializes iterator that starts with free record,
     171VBVAEX_DECL(bool) VBoxVBVAExIsProcessing(PVBVAEXBUFFERCONTEXT pCtx);
     172
     173/** initializes iterator that starts with free record,
    182174 * i.e. VBoxVBVAExIterNext would return the first uncompleted record.
    183175 *
    184176 * can be used by submitter only */
    185 RTDECL(void) VBoxVBVAExBIterInit(PVBVAEXBUFFERCONTEXT pCtx, PVBVAEXBUFFERBACKWARDITER pIter);
    186 /* can be used by submitter only */
    187 RTDECL(void*) VBoxVBVAExBIterNext(PVBVAEXBUFFERBACKWARDITER pIter, uint32_t *pcbBuffer, bool *pfProcessed);
     177VBVAEX_DECL(void) VBoxVBVAExBIterInit(PVBVAEXBUFFERCONTEXT pCtx, PVBVAEXBUFFERBACKWARDITER pIter);
     178/** can be used by submitter only */
     179VBVAEX_DECL(void *) VBoxVBVAExBIterNext(PVBVAEXBUFFERBACKWARDITER pIter, uint32_t *pcbBuffer, bool *pfProcessed);
    188180
    189181/* completer functions
     
    191183 * Completter functions are prefixed with VBoxVBVAExC as opposed to submitter ones,
    192184 * that do not have the last "C" in the prefix */
    193 /* initializes iterator that starts with completed record,
     185/** initializes iterator that starts with completed record,
    194186 * i.e. VBoxVBVAExIterPrev would return the first uncompleted record.
    195187 * note that we can not have iterator that starts at processed record
     
    198190 * and so we may end up with inconsistent index-offData pair
    199191 *
    200  * can be used by completter only */
    201 RTDECL(void) VBoxVBVAExCFIterInit(PVBVAEXBUFFERCONTEXT pCtx, PVBVAEXBUFFERFORWARDITER pIter);
    202 /* can be used by completter only */
    203 RTDECL(void*) VBoxVBVAExCFIterNext(PVBVAEXBUFFERFORWARDITER pIter, uint32_t *pcbBuffer, bool *pfProcessed);
    204 
    205 RTDECL(void) VBoxVBVAExCBufferCompleted(PVBVAEXBUFFERCONTEXT pCtx);
    206 
     192 * can be used by completer only */
     193VBVAEX_DECL(void) VBoxVBVAExCFIterInit(PVBVAEXBUFFERCONTEXT pCtx, PVBVAEXBUFFERFORWARDITER pIter);
     194/** can be used by completer only */
     195VBVAEX_DECL(void *) VBoxVBVAExCFIterNext(PVBVAEXBUFFERFORWARDITER pIter, uint32_t *pcbBuffer, bool *pfProcessed);
     196
     197VBVAEX_DECL(void) VBoxVBVAExCBufferCompleted(PVBVAEXBUFFERCONTEXT pCtx);
    207198/** @}  */
    208199
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette