Changeset 20087 in vbox for trunk/include/VBox
- Timestamp:
- May 27, 2009 2:31:18 PM (16 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/iom.h
r19993 r20087 269 269 270 270 VMMR3DECL(void) IOMR3ReleaseOwnedLocks(PVM pVM); 271 VMMR3DECL(PPDMCRITSECT) IOMR3GetCritSect(PVM pVM); 271 272 272 273 /** @} */ -
trunk/include/VBox/pdmcritsect.h
r20008 r20087 54 54 #endif 55 55 } PDMCRITSECT; 56 /** Pointer to a PDM critical section. */57 typedef PDMCRITSECT *PPDMCRITSECT;58 /** Pointer to a const PDM critical section. */59 typedef const PDMCRITSECT *PCPDMCRITSECT;60 56 61 57 VMMR3DECL(int) PDMR3CritSectInit(PVM pVM, PPDMCRITSECT pCritSect, const char *pszName); … … 69 65 VMMDECL(bool) PDMCritSectIsInitialized(PCPDMCRITSECT pCritSect); 70 66 VMMDECL(uint32_t) PDMCritSectGetRecursion(PCPDMCRITSECT pCritSect); 67 VMMR3DECL(const char *) PDMR3CritSectName(PCPDMCRITSECT pCritSect); 71 68 VMMR3DECL(int) PDMR3CritSectScheduleExitEvent(PPDMCRITSECT pCritSect, RTSEMEVENT EventToSignal); 72 69 VMMR3DECL(int) PDMR3CritSectDelete(PPDMCRITSECT pCritSect); -
trunk/include/VBox/pdmdev.h
r20056 r20087 1303 1303 */ 1304 1304 DECLR3CALLBACKMEMBER(void, pfnSendSipi,(PPDMDEVINS pDevIns, VMCPUID idCpu, uint32_t uVector)); 1305 1306 /** 1307 * Sends init IPI to given virtual CPU, should result in reset and 1305 1306 /** 1307 * Sends init IPI to given virtual CPU, should result in reset and 1308 1308 * halting till SIPI. 1309 1309 * … … 1951 1951 * @param enmClock The clock to use on this timer. 1952 1952 * @param pfnCallback Callback function. 1953 * @param pvUser User argument for the callback. 1954 * @param fFlags Flags, see TMTIMER_FLAGS_*. 1953 1955 * @param pszDesc Pointer to description string which must stay around 1954 1956 * until the timer is fully destroyed (i.e. a bit after TMTimerDestroy()). 1955 1957 * @param ppTimer Where to store the timer on success. 1956 1958 */ 1957 DECLR3CALLBACKMEMBER(int, pfnTMTimerCreate,(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, const char *pszDesc, PPTMTIMERR3 ppTimer));1959 DECLR3CALLBACKMEMBER(int, pfnTMTimerCreate,(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, void *pvUser, uint32_t fFlags, const char *pszDesc, PPTMTIMERR3 ppTimer)); 1958 1960 1959 1961 /** … … 3463 3465 * @copydoc PDMDEVHLPR3::pfnTMTimerCreate 3464 3466 */ 3465 DECLINLINE(int) PDMDevHlpTMTimerCreate(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, const char *pszDesc, PPTMTIMERR3 ppTimer) 3466 { 3467 return pDevIns->pDevHlpR3->pfnTMTimerCreate(pDevIns, enmClock, pfnCallback, pszDesc, ppTimer); 3467 DECLINLINE(int) PDMDevHlpTMTimerCreate(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, void *pvUser, uint32_t fFlags, 3468 const char *pszDesc, PPTMTIMERR3 ppTimer) 3469 { 3470 return pDevIns->pDevHlpR3->pfnTMTimerCreate(pDevIns, enmClock, pfnCallback, pvUser, fFlags, pszDesc, ppTimer); 3468 3471 } 3469 3472 -
trunk/include/VBox/tm.h
r19821 r20087 73 73 74 74 75 /** @defgroup grp_tm_timer_flags Timer flags. 76 * @{ */ 77 /** Use the default critical section for the class of timers. 78 * Only devices have one at the moment. */ 79 #define TMTIMER_FLAGS_DEFAULT_CRIT_SECT 0 80 /** No critical section needed or a custom one is set using 81 * TMR3TimerSetCritSect(). */ 82 #define TMTIMER_FLAGS_NO_CRIT_SECT RT_BIT_32(0) 83 /** @} */ 84 85 75 86 VMMDECL(void) TMNotifyStartOfExecution(PVMCPU pVCpu); 76 87 VMMDECL(void) TMNotifyEndOfExecution(PVMCPU pVCpu); … … 132 143 * @param pDevIns Device instance of the device which registered the timer. 133 144 * @param pTimer The timer handle. 134 */ 135 typedef DECLCALLBACK(void) FNTMTIMERDEV(PPDMDEVINS pDevIns, PTMTIMER pTimer); 145 * @param pvUser User argument specified upon timer creation. 146 */ 147 typedef DECLCALLBACK(void) FNTMTIMERDEV(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser); 136 148 /** Pointer to a device timer callback function. */ 137 149 typedef FNTMTIMERDEV *PFNTMTIMERDEV; … … 218 230 VMMR3DECL(void) TMR3Reset(PVM pVM); 219 231 VMMR3DECL(int) TMR3GetImportRC(PVM pVM, const char *pszSymbol, PRTRCPTR pRCPtrValue); 220 VMMR3DECL(int) TMR3TimerCreateDevice(PVM pVM, PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, const char *pszDesc, PPTMTIMERR3 ppTimer);232 VMMR3DECL(int) TMR3TimerCreateDevice(PVM pVM, PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, void *pvUser, uint32_t fFlags, const char *pszDesc, PPTMTIMERR3 ppTimer); 221 233 VMMR3DECL(int) TMR3TimerCreateDriver(PVM pVM, PPDMDRVINS pDrvIns, TMCLOCK enmClock, PFNTMTIMERDRV pfnCallback, const char *pszDesc, PPTMTIMERR3 ppTimer); 222 234 VMMR3DECL(int) TMR3TimerCreateInternal(PVM pVM, TMCLOCK enmClock, PFNTMTIMERINT pfnCallback, void *pvUser, const char *pszDesc, PPTMTIMERR3 ppTimer); … … 227 239 VMMR3DECL(int) TMR3TimerSave(PTMTIMERR3 pTimer, PSSMHANDLE pSSM); 228 240 VMMR3DECL(int) TMR3TimerLoad(PTMTIMERR3 pTimer, PSSMHANDLE pSSM); 241 VMMR3DECL(int) TMR3TimerSetCritSect(PTMTIMERR3 pTimer, PPDMCRITSECT pCritSect); 229 242 VMMR3DECL(void) TMR3TimerQueuesDo(PVM pVM); 230 243 VMMR3DECL(void) TMR3VirtualSyncFF(PVM pVM, PVMCPU pVCpu); -
trunk/include/VBox/types.h
r19405 r20087 203 203 /** Pointer to a pointer to a PDM Service Instance. */ 204 204 typedef PPDMSRVINS *PPPDMSRVINS; 205 206 /** Pointer to a PDM critical section. */ 207 typedef union PDMCRITSECT *PPDMCRITSECT; 208 /** Pointer to a const PDM critical section. */ 209 typedef const union PDMCRITSECT *PCPDMCRITSECT; 205 210 206 211 /** R3 pointer to a timer. */ -
trunk/include/VBox/vusb.h
r15076 r20087 779 779 /** 780 780 * USB Timer Interface. 781 * @todo r=bird: why is this code still here? 781 782 */ 782 783 typedef struct VUSBITIMER
Note:
See TracChangeset
for help on using the changeset viewer.