- Timestamp:
- Feb 1, 2013 1:37:30 PM (12 years ago)
- Location:
- trunk/include/VBox/vmm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/iom.h
r43961 r44512 146 146 * variable regardless of what @a cb might say. 147 147 * @param cb Number of bytes read. 148 * @remarks Caller enters the device critical section. 148 149 */ 149 150 typedef DECLCALLBACK(int) FNIOMIOPORTIN(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb); … … 163 164 * @param pcTransfers Pointer to the number of transfer units to read, on return remaining transfer units. 164 165 * @param cb Size of the transfer unit (1, 2 or 4 bytes). 166 * @remarks Caller enters the device critical section. 165 167 */ 166 168 typedef DECLCALLBACK(int) FNIOMIOPORTINSTRING(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, RTGCPTR *pGCPtrDst, PRTGCUINTREG pcTransfers, unsigned cb); … … 178 180 * @param u32 The value to output. 179 181 * @param cb The value size in bytes. 182 * @remarks Caller enters the device critical section. 180 183 */ 181 184 typedef DECLCALLBACK(int) FNIOMIOPORTOUT(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb); … … 194 197 * @param pcTransfers Pointer to the number of transfer units to write, on return remaining transfer units. 195 198 * @param cb Size of the transfer unit (1, 2 or 4 bytes). 199 * @remarks Caller enters the device critical section. 196 200 */ 197 201 typedef DECLCALLBACK(int) FNIOMIOPORTOUTSTRING(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, RTGCPTR *pGCPtrSrc, PRTGCUINTREG pcTransfers, unsigned cb); … … 210 214 * @param pv Where to store the result. 211 215 * @param cb Number of bytes read. 216 * @remarks Caller enters the device critical section. 212 217 */ 213 218 typedef DECLCALLBACK(int) FNIOMMMIOREAD(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb); … … 225 230 * @param pv Where to fetch the result. 226 231 * @param cb Number of bytes to write. 232 * @remarks Caller enters the device critical section. 227 233 */ 228 234 typedef DECLCALLBACK(int) FNIOMMMIOWRITE(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void const *pv, unsigned cb); … … 241 247 * @param cbItem Size of data in u32Item parameter, restricted to 1/2/4 bytes. 242 248 * @param cItems Number of iterations. 249 * @remarks Caller enters the device critical section. 243 250 */ 244 251 typedef DECLCALLBACK(int) FNIOMMMIOFILL(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, uint32_t u32Item, unsigned cbItem, unsigned cItems); -
trunk/include/VBox/vmm/pdmcommon.h
r35361 r44512 110 110 * 111 111 * @param pDevIns The device instance. 112 * 112 * @remarks The caller will enter the device critical section. 113 113 * @thread EMT(0) 114 114 */ -
trunk/include/VBox/vmm/pdmdev.h
r44510 r44512 2198 2198 * @param pfnInStr Pointer to function which is gonna handle string IN operations. 2199 2199 * @param pszDesc Pointer to description string. This must not be freed. 2200 * @remarks Caller enters the device critical section prior to invoking the 2201 * registered callback methods. 2200 2202 */ 2201 2203 DECLR3CALLBACKMEMBER(int, pfnIOPortRegister,(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTHCPTR pvUser, … … 2222 2224 * @param pszInStr Name of the RC function which is gonna handle string IN operations. 2223 2225 * @param pszDesc Pointer to description string. This must not be freed. 2226 * @remarks Caller enters the device critical section prior to invoking the 2227 * registered callback methods. 2224 2228 */ 2225 2229 DECLR3CALLBACKMEMBER(int, pfnIOPortRegisterRC,(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTRCPTR pvUser, … … 2243 2247 * @param pszInStr Name of the R0 function which is gonna handle string IN operations. 2244 2248 * @param pszDesc Pointer to description string. This must not be freed. 2249 * @remarks Caller enters the device critical section prior to invoking the 2250 * registered callback methods. 2245 2251 */ 2246 2252 DECLR3CALLBACKMEMBER(int, pfnIOPortRegisterR0,(PPDMDEVINS pDevIns, RTIOPORT Port, RTIOPORT cPorts, RTR0PTR pvUser, … … 2277 2283 * @param fFlags Flags, IOMMMIO_FLAGS_XXX. 2278 2284 * @param pszDesc Pointer to description string. This must not be freed. 2285 * @remarks Caller enters the device critical section prior to invoking the 2286 * registered callback methods. 2279 2287 */ 2280 2288 DECLR3CALLBACKMEMBER(int, pfnMMIORegister,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTHCPTR pvUser, … … 2297 2305 * @param pszRead Name of the RC function which is gonna handle Read operations. 2298 2306 * @param pszFill Name of the RC function which is gonna handle Fill/memset operations. (optional) 2307 * @remarks Caller enters the device critical section prior to invoking the 2308 * registered callback methods. 2299 2309 */ 2300 2310 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterRC,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTRCPTR pvUser, … … 2317 2327 * @param pszFill Name of the RC function which is gonna handle Fill/memset operations. (optional) 2318 2328 * @param pszDesc Obsolete. NULL is fine. 2329 * @remarks Caller enters the device critical section prior to invoking the 2330 * registered callback methods. 2319 2331 */ 2320 2332 DECLR3CALLBACKMEMBER(int, pfnMMIORegisterR0,(PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, uint32_t cbRange, RTR0PTR pvUser, … … 2499 2511 * @param pfnLoadExec Execute load callback, optional. 2500 2512 * @param pfnLoadDone Done load callback, optional. 2513 * @remarks Caller enters the device critical section prior to invoking the 2514 * registered callback methods. 2501 2515 */ 2502 2516 DECLR3CALLBACKMEMBER(int, pfnSSMRegister,(PPDMDEVINS pDevIns, uint32_t uVersion, size_t cbGuess, const char *pszBefore, … … 2517 2531 * until the timer is fully destroyed (i.e. a bit after TMTimerDestroy()). 2518 2532 * @param ppTimer Where to store the timer on success. 2533 * @remarks Caller enters the device critical section prior to invoking the 2534 * callback. 2519 2535 */ 2520 2536 DECLR3CALLBACKMEMBER(int, pfnTMTimerCreate,(PPDMDEVINS pDevIns, TMCLOCK enmClock, PFNTMTIMERDEV pfnCallback, void *pvUser, uint32_t fFlags, const char *pszDesc, PPTMTIMERR3 ppTimer)); … … 2894 2910 * @param enmType PCI_ADDRESS_SPACE_MEM, PCI_ADDRESS_SPACE_IO or PCI_ADDRESS_SPACE_MEM_PREFETCH. 2895 2911 * @param pfnCallback Callback for doing the mapping. 2896 */ 2897 DECLR3CALLBACKMEMBER(int, pfnPCIIORegionRegister,(PPDMDEVINS pDevIns, int iRegion, uint32_t cbRegion, PCIADDRESSSPACE enmType, PFNPCIIOREGIONMAP pfnCallback)); 2912 * @remarks The callback will be invoked holding the PDM lock. The device lock 2913 * is NOT take because that is very likely be a lock order violation. 2914 */ 2915 DECLR3CALLBACKMEMBER(int, pfnPCIIORegionRegister,(PPDMDEVINS pDevIns, int iRegion, uint32_t cbRegion, 2916 PCIADDRESSSPACE enmType, PFNPCIIOREGIONMAP pfnCallback)); 2898 2917 2899 2918 /** … … 2911 2930 * PCI config write function. This way, user can decide when (and if) 2912 2931 * to call default PCI config write function. Can be NULL. 2932 * @remarks The callbacks will be invoked holding the PDM lock. The device lock 2933 * is NOT take because that is very likely be a lock order violation. 2913 2934 * @thread EMT 2914 2935 */ … … 2972 2993 * for the live of the device instance. 2973 2994 */ 2974 DECLR3CALLBACKMEMBER(int, pfnDriverAttach,(PPDMDEVINS pDevIns, uint32_t iLun, PPDMIBASE pBaseInterface, PPDMIBASE *ppBaseInterface, const char *pszDesc)); 2995 DECLR3CALLBACKMEMBER(int, pfnDriverAttach,(PPDMDEVINS pDevIns, uint32_t iLun, PPDMIBASE pBaseInterface, 2996 PPDMIBASE *ppBaseInterface, const char *pszDesc)); 2975 2997 2976 2998 /** … … 2989 3011 * @param ppQueue Where to store the queue handle on success. 2990 3012 * @thread The emulation thread. 3013 * @remarks The device critical section will NOT be entered before calling the 3014 * callback. No locks will be held, but for now it's safe to assume 3015 * that only one EMT will do queue callbacks at any one time. 2991 3016 */ 2992 3017 DECLR3CALLBACKMEMBER(int, pfnQueueCreate,(PPDMDEVINS pDevIns, size_t cbItem, uint32_t cItems, uint32_t cMilliesInterval, … … 3062 3087 * @param enmType See RTThreadCreate. 3063 3088 * @param pszName See RTThreadCreate. 3089 * @remarks The device critical section will NOT be entered prior to invoking 3090 * the function pointers. 3064 3091 */ 3065 3092 DECLR3CALLBACKMEMBER(int, pfnThreadCreate,(PPDMDEVINS pDevIns, PPPDMTHREAD ppThread, void *pvUser, PFNPDMTHREADDEV pfnThread, … … 3076 3103 * @param pfnAsyncNotify The callback. 3077 3104 * @thread EMT(0) 3105 * @remarks The caller will enter the device critical section prior to invoking 3106 * the callback. 3078 3107 */ 3079 3108 DECLR3CALLBACKMEMBER(int, pfnSetAsyncNotification, (PPDMDEVINS pDevIns, PFNPDMDEVASYNCNOTIFY pfnAsyncNotify)); -
trunk/include/VBox/vmm/pdmqueue.h
r44502 r44512 67 67 * @param pItem The item to consume. Upon return this item will be freed. 68 68 * @remarks The device critical section will NOT be entered before calling the 69 * back. No locks will be held, but for now it's safe to assume that70 * only one EMT will do queue callbacks at any one time.69 * callback. No locks will be held, but for now it's safe to assume 70 * that only one EMT will do queue callbacks at any one time. 71 71 */ 72 72 typedef DECLCALLBACK(bool) FNPDMQUEUEDEV(PPDMDEVINS pDevIns, PPDMQUEUEITEMCORE pItem);
Note:
See TracChangeset
for help on using the changeset viewer.