- Timestamp:
- Jan 31, 2007 11:27:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r471 r492 93 93 /** LCHS disk geometry. */ 94 94 uint32_t cCHSCylinders, cCHSHeads, cCHSSectors; 95 /** Total number of sectors on this disk. */ 96 uint64_t cTotalSectors; 95 97 /** Number of sectors to transfer per IRQ. */ 96 98 uint32_t cSectorsPerIRQ; 97 /** Total number of sectors on this disk. */98 uint64_t cTotalSectors;99 99 100 100 /** ATA/ATAPI register 1: feature (write-only). */ … … 178 178 /** Pointer to the I/O buffer. */ 179 179 GCPTRTYPE(uint8_t *) pbIOBufferGC; 180 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS != 64 181 RTGCPTR Aligmnent0; /**< Align the statistics at an 8-byte boundrary. */ 182 #endif 180 183 181 184 /* … … 219 222 /** The LUN #. */ 220 223 RTUINT iLUN; 224 #if HC_ARCH_BITS == 64 225 RTUINT Alignment2; /**< Align pDevInsHC correctly. */ 226 #endif 221 227 /** Pointer to device instance. */ 222 228 HCPTRTYPE(PPDMDEVINS) pDevInsHC; 229 /** Pointer to controller instance. */ 230 HCPTRTYPE(struct ATACONTROLLER *) pControllerHC; 223 231 /** Pointer to device instance. */ 224 232 GCPTRTYPE(PPDMDEVINS) pDevInsGC; 225 233 /** Pointer to controller instance. */ 226 HCPTRTYPE(struct ATACONTROLLER *)pControllerHC; 227 /** Pointer to controller instance. */ 228 GCPTRTYPE(struct ATACONTROLLER *)pControllerGC; 234 GCPTRTYPE(struct ATACONTROLLER *) pControllerGC; 229 235 } ATADevState; 230 236 … … 333 339 /** The position at which to get a new request for the AIO thread. */ 334 340 uint8_t AsyncIOReqTail; 341 uint8_t Alignment3[2]; /** Explicit padding of the 2 byte gap. */ 342 /** Magic delay before triggering interrupts in DMA mode. */ 343 uint32_t DelayIRQMillies; 335 344 /** The mutex protecting the request queue. */ 336 345 RTSEMMUTEX AsyncIORequestMutex; 337 346 /** The event semaphore the thread is waiting on during suspended I/O. */ 338 347 RTSEMEVENT SuspendIOSem; 339 /** Magic delay before triggering interrupts in DMA mode. */ 340 uint32_t DelayIRQMillies; 348 #if HC_ARCH_BITS == 32 349 uint32_t Alignment0; 350 #endif 341 351 342 352 /* Statistics */ … … 354 364 ATACONTROLLER aCts[2]; 355 365 /** Pointer to device instance. */ 356 PPDMDEVINS 366 PPDMDEVINSR3 pDevIns; 357 367 /** Status Port - Base interface. */ 358 368 PDMIBASE IBase; … … 360 370 PDMILEDPORTS ILeds; 361 371 /** Partner of ILeds. */ 362 PPDMILEDCONNECTORSpLedsConnector;372 R3PTRTYPE(PPDMILEDCONNECTORS) pLedsConnector; 363 373 /** Flag whether GC is enabled. */ 364 374 bool fGCEnabled; 365 375 /** Flag whether R0 is enabled. */ 366 376 bool fR0Enabled; 377 bool Alignment0[HC_ARCH_BITS == 64 ? 6 : 2]; /**< Align the struct size. */ 367 378 } PCIATAState; 368 379 … … 381 392 382 393 394 #ifndef VBOX_DEVICE_STRUCT_TESTCASE 383 395 /******************************************************************************* 384 396 * Internal Functions * … … 5912 5924 }; 5913 5925 #endif /* IN_RING3 */ 5926 #endif /* !VBOX_DEVICE_STRUCT_TESTCASE */ 5927
Note:
See TracChangeset
for help on using the changeset viewer.