- 時間撮記:
- 2013-2-28 下午08:56:09 (12 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp
r44528 r44876 1 /* $Id$ */ 1 2 /** @file 2 3 * VirtualBox Video Acceleration (VBVA). … … 4 5 5 6 /* 6 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 7 8 * 8 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 15 16 */ 16 17 18 /******************************************************************************* 19 * Header Files * 20 *******************************************************************************/ 17 21 #define LOG_GROUP LOG_GROUP_DEV_VGA 18 22 #include <VBox/vmm/pdmifs.h> … … 37 41 #define LOGVBVABUFFER(a) LogFlow(a) 38 42 #else 39 #define LOGVBVABUFFER(a) do {} while (0)43 #define LOGVBVABUFFER(a) do {} while (0) 40 44 #endif 41 45 46 /******************************************************************************* 47 * Structures and Typedefs * 48 *******************************************************************************/ 42 49 typedef struct VBVAPARTIALRECORD 43 50 { … … 69 76 } VBVAMOUSESHAPEINFO; 70 77 71 /* @todo saved state: save and restore VBVACONTEXT */78 /** @todo saved state: save and restore VBVACONTEXT */ 72 79 typedef struct VBVACONTEXT 73 80 { … … 77 84 } VBVACONTEXT; 78 85 79 /* Copies 'cb' bytes from the VBVA ring buffer to the 'pu8Dst'. 86 87 88 /** Copies @a cb bytes from the VBVA ring buffer to the @a pu8Dst. 80 89 * Used for partial records or for records which cross the ring boundary. 81 90 */ 82 91 static void vbvaFetchBytes (VBVABUFFER *pVBVA, uint8_t *pu8Dst, uint32_t cb) 83 92 { 84 /* @todo replace the 'if' with an assert. The caller must ensure this condition. */93 /** @todo replace the 'if' with an assert. The caller must ensure this condition. */ 85 94 if (cb >= pVBVA->cbData) 86 95 { … … 1633 1642 { 1634 1643 PPDMDEVINS pDevIns = pVGAState->pDevInsR3; 1635 PDMCritSectEnter(&pVGAState->lock, VERR_SEM_BUSY); 1644 PDMCritSectEnter(&pVGAState->CritSect, VERR_SEM_BUSY); 1645 1636 1646 HGSMISetHostGuestFlags(pVGAState->pHGSMI, HGSMIHOSTFLAGS_IRQ | fFlags); 1637 1647 PDMDevHlpPCISetIrq(pDevIns, 0, PDM_IRQ_LEVEL_HIGH); 1638 PDMCritSectLeave(&pVGAState->lock); 1648 1649 PDMCritSectLeave(&pVGAState->CritSect); 1639 1650 } 1640 1651
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器