The _IDENTIFY_DEVICE_DATA structure from MS is 516 bytes long
http://msdn.microsoft.com/en-us/library ... s.85).aspx
It is a 32 bit program, so long = dword, otherwise long as qword is 544 bytes.
Any hints?
SATA IDENTIFY_DEVICE_DATA Structure 516 bytes
Re: SATA IDENTIFY_DEVICE_DATA Structure 516 bytes
Also, can I get it to put values into Max48BitLBA[0] & Max48BitLBA[1] ??
These are currently zero
These are currently zero
Re: SATA IDENTIFY_DEVICE_DATA Structure 516 bytes
How did you get that number?The _IDENTIFY_DEVICE_DATA structure from MS is 516 bytes long
Code: Select all
USHORT Signature :8;
wiki:Also, can I get it to put values into Max48BitLBA[0] & Max48BitLBA[1] ??
Word 83: Bit 10 is set if the drive supports LBA48 mode.
Re: SATA IDENTIFY_DEVICE_DATA Structure 516 bytes
516 = sizeof(IDENTIFY_DEVICE_DATA)How did you get that number?
Looks to me like it is only one byte within the context.Code:
USHORT Signature :8;
should actually take only one byte of memory.
Code: Select all
struct {
byte NVCacheEstimatedTimeToSpinUpInSeconds;
byte Reserved;
} NVCacheOptions;
word ReservedWord220[35];
word Signature :8;
word CheckSum :8;
Re: SATA IDENTIFY_DEVICE_DATA Structure 516 bytes
Hi, just thought about packed.
This makes it 512.
__attribute__ ((__packed__))
This makes it 512.
__attribute__ ((__packed__))