Changeset 82560 in vbox for trunk/src/VBox/Devices/VirtIO/Virtio_1_0.cpp
- Timestamp:
- Dec 12, 2019 7:08:55 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135434
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VirtIO/Virtio_1_0.cpp
r82559 r82560 133 133 * Accessor for virtq descriptor 134 134 */ 135 #ifdef IN_RING3 135 136 DECLINLINE(void) virtioReadDesc(PPDMDEVINS pDevIns, PVIRTIOCORE pVirtio, uint16_t idxQueue, 136 137 uint32_t idxDesc, PVIRTQ_DESC_T pDesc) … … 142 143 pDesc, sizeof(VIRTQ_DESC_T)); 143 144 } 145 #endif 144 146 145 147 /** 146 148 * Accessors for virtq avail ring 147 149 */ 150 #ifdef IN_RING3 148 151 DECLINLINE(uint16_t) virtioReadAvailDescIdx(PPDMDEVINS pDevIns, PVIRTIOCORE pVirtio, uint16_t idxQueue, uint32_t availIdx) 149 152 { … … 157 160 return uDescIdx; 158 161 } 162 #endif 159 163 160 164 DECLINLINE(uint16_t) virtioReadAvailRingIdx(PPDMDEVINS pDevIns, PVIRTIOCORE pVirtio, uint16_t idxQueue) … … 190 194 #endif 191 195 196 #ifdef IN_RING3 192 197 DECLINLINE(uint16_t) virtioReadAvailUsedEvent(PPDMDEVINS pDevIns, PVIRTIOCORE pVirtio, uint16_t idxQueue) 193 198 { … … 200 205 return uUsedEventIdx; 201 206 } 207 #endif 208 202 209 /** @} */ 203 210 … … 205 212 * @{ 206 213 */ 214 215 #ifdef IN_RING3 207 216 DECLINLINE(void) virtioWriteUsedElem(PPDMDEVINS pDevIns, PVIRTIOCORE pVirtio, uint16_t idxQueue, 208 217 uint32_t usedIdx, uint32_t uDescIdx, uint32_t uLen) … … 215 224 &elem, sizeof(elem)); 216 225 } 226 #endif 217 227 218 228 DECLINLINE(void) virtioWriteUsedRingIdx(PPDMDEVINS pDevIns, PVIRTIOCORE pVirtio, uint16_t idxQueue, uint16_t uIdx)
Note:
See TracChangeset
for help on using the changeset viewer.