Changeset 45795 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 28, 2013 10:16:52 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 85363
- Location:
- trunk/src/VBox/Devices/Storage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
r45790 r45795 162 162 RCPTRTYPE(PPDMQUEUE) pNotificationQueueRC; 163 163 164 #if HC_ARCH_BITS == 64165 uint32_t Alignment1;166 #endif167 168 164 /** Number of device states allocated. */ 169 165 uint32_t cDeviceStates; 170 166 171 #if HC_ARCH_BITS == 64172 uint32_t Alignment2;173 #endif174 175 167 /** States for attached devices. */ 176 168 R3PTRTYPE(PLSILOGICDEVICE) paDeviceStates; 177 178 /** MMIO address the device is mapped to. */ 179 RTGCPHYS GCPhysMMIOBase; 180 /** I/O port address the device is mapped to. */ 181 RTIOPORT IOPortBase; 169 #if HC_ARCH_BITS == 32 170 RTR3PTR R3PtrPadding0; 171 #endif 182 172 183 173 /** Interrupt mask. */ … … 186 176 volatile uint32_t uInterruptStatus; 187 177 188 /** Buffer for messages which are passed 189 * through the doorbell using the 178 /** Buffer for messages which are passed through the doorbell using the 190 179 * handshake method. */ 191 uint32_t aMessage[sizeof(MptConfigurationRequest)]; 180 uint32_t aMessage[sizeof(MptConfigurationRequest)]; /** @todo r=bird: Looks like 4 tims the required size? Please explain in comment if this correct... */ 192 181 /** Actual position in the buffer. */ 193 182 uint32_t iMessage; … … 195 184 uint32_t cMessage; 196 185 197 /** Reply buffer. */ 186 /** Reply buffer. 187 * @note 60 bytes */ 198 188 MptReplyUnion ReplyBuffer; 199 189 /** Next entry to read. */ … … 204 194 /** The fault code of the I/O controller if we are in the fault state. */ 205 195 uint16_t u16IOCFaultCode; 196 197 /** I/O port address the device is mapped to. */ 198 RTIOPORT IOPortBase; 199 /** MMIO address the device is mapped to. */ 200 RTGCPHYS GCPhysMMIOBase; 206 201 207 202 /** Upper 32 bits of the message frame address to locate requests in guest memory. */ … … 225 220 uint32_t cRequestQueueEntries; 226 221 227 #if HC_ARCH_BITS == 64228 uint32_t Alignment3;229 #endif230 222 231 223 /** Critical section protecting the reply post queue. */ … … 254 246 /** Pointer to the start of the request queue - RC. */ 255 247 RCPTRTYPE(volatile uint32_t *) pRequestQueueBaseRC; 248 /** End these RC pointers on a 64-bit boundrary. */ 249 RTRCPTR RCPtrPadding1; 256 250 257 251 /** Next free entry in the reply queue the guest can write a address to. */ … … 275 269 uint16_t u16NextHandle; 276 270 277 uint16_t u16Alignment4;278 uint32_t u32Alignment5;279 280 271 /** Number of ports this controller has. */ 281 272 uint8_t cPorts; 282 273 283 #if HC_ARCH_BITS == 64284 uint32_t Alignment6;285 #endif286 287 274 /** BIOS emulation. */ 288 275 VBOXSCSI VBoxSCSI; 276 289 277 /** Cache for allocated tasks. */ 290 278 R3PTRTYPE(RTMEMCACHE) hTaskCache; -
trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.h
r45789 r45795 1151 1151 MptFWUploadReply FWUpload; 1152 1152 } MptReplyUnion, *PMptReplyUnion; 1153 AssertCompileSize(MptReplyUnion, 60); 1153 1154 1154 1155
Note:
See TracChangeset
for help on using the changeset viewer.