Changeset 44854 in vbox
- Timestamp:
- Feb 27, 2013 8:37:49 PM (12 years ago)
- Location:
- trunk/src/VBox/Devices/VirtIO
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VirtIO/Virtio.cpp
r44853 r44854 926 926 } 927 927 928 PVQUEUE vpciAddQueue(VPCISTATE* pState, unsigned uSize, 929 void (*pfnCallback)(void *pvState, PVQUEUE pQueue), 930 const char *pcszName) 928 PVQUEUE vpciAddQueue(VPCISTATE* pState, unsigned uSize, PFNVPCIQUEUECALLBACK pfnCallback, const char *pcszName) 931 929 { 932 930 PVQUEUE pQueue = NULL; -
trunk/src/VBox/Devices/VirtIO/Virtio.h
r44852 r44854 109 109 typedef VRING *PVRING; 110 110 111 /** 112 * Queue callback (consumer?). 113 * 114 * @param pvState Pointer to the VirtIO PCI core state, VPCISTATE. 115 * @param pQueue Pointer to the queue structure. 116 */ 117 typedef DECLCALLBACK(void) FNVPCIQUEUECALLBACK(void *pvState, struct VQueue *pQueue); 118 /** Pointer to a VQUEUE callback function. */ 119 typedef FNVPCIQUEUECALLBACK *PFNVPCIQUEUECALLBACK; 120 111 121 typedef struct VQueue 112 122 { … … 115 125 uint16_t uNextUsedIndex; 116 126 uint32_t uPageNumber; 117 #ifdef IN_RING3 118 void (*pfnCallback)(void *pvState, struct VQueue *pQueue); 119 #else 120 RTR3UINTPTR pfnCallback; 121 #endif 122 R3PTRTYPE(const char *) pcszName; 127 R3PTRTYPE(PFNVPCIQUEUECALLBACK) pfnCallback; 128 R3PTRTYPE(const char *) pcszName; 123 129 } VQUEUE; 124 130 typedef VQUEUE *PVQUEUE;
Note:
See TracChangeset
for help on using the changeset viewer.