Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.9 KiB

  1. //
  2. // IDENTIFY data
  3. //
  4. #pragma pack (push,1)
  5. typedef struct _IDENTIFY_DATA {
  6. USHORT GeneralConfiguration; // 00 00
  7. USHORT NumCylinders; // 02 1
  8. USHORT Reserved1; // 04 2
  9. USHORT NumHeads; // 06 3
  10. USHORT UnformattedBytesPerTrack; // 08 4
  11. USHORT UnformattedBytesPerSector; // 0A 5
  12. USHORT NumSectorsPerTrack; // 0C 6
  13. USHORT VendorUnique1[3]; // 0E 7-9
  14. UCHAR SerialNumber[20]; // 14 10-19
  15. USHORT BufferType; // 28 20
  16. USHORT BufferSectorSize; // 2A 21
  17. USHORT NumberOfEccBytes; // 2C 22
  18. UCHAR FirmwareRevision[8]; // 2E 23-26
  19. UCHAR ModelNumber[40]; // 36 27-46
  20. UCHAR MaximumBlockTransfer; // 5E 47
  21. UCHAR VendorUnique2; // 5F
  22. USHORT DoubleWordIo; // 60 48
  23. USHORT Capabilities; // 62 49
  24. USHORT Reserved2; // 64 50
  25. UCHAR VendorUnique3; // 66 51
  26. UCHAR PioCycleTimingMode; // 67
  27. UCHAR VendorUnique4; // 68 52
  28. UCHAR DmaCycleTimingMode; // 69
  29. USHORT TranslationFieldsValid:3; // 6A 53
  30. USHORT Reserved3:13;
  31. USHORT NumberOfCurrentCylinders; // 6C 54
  32. USHORT NumberOfCurrentHeads; // 6E 55
  33. USHORT CurrentSectorsPerTrack; // 70 56
  34. ULONG CurrentSectorCapacity; // 72 57-58
  35. USHORT CurrentMultiSectorSetting; // 59
  36. ULONG UserAddressableSectors; // 60-61
  37. USHORT SingleWordDMASupport : 8; // 62
  38. USHORT SingleWordDMAActive : 8;
  39. USHORT MultiWordDMASupport : 8; // 63
  40. USHORT MultiWordDMAActive : 8;
  41. USHORT AdvancedPIOModes : 8; // 64
  42. USHORT Reserved4 : 8;
  43. USHORT MinimumMWXferCycleTime; // 65
  44. USHORT RecommendedMWXferCycleTime; // 66
  45. USHORT MinimumPIOCycleTime; // 67
  46. USHORT MinimumPIOCycleTimeIORDY; // 68
  47. USHORT Reserved5[11]; // 69-79
  48. USHORT MajorRevision; // 80
  49. USHORT MinorRevision; // 81
  50. USHORT Reserved6[6]; // 82-87
  51. USHORT UltraDMASupport : 8; // 88
  52. USHORT UltraDMAActive : 8; //
  53. USHORT Reserved7[37]; // 89-125
  54. USHORT LastLun:3; // 126
  55. USHORT Reserved8:13;
  56. USHORT MediaStatusNotification:2; // 127
  57. USHORT Reserved9:6;
  58. USHORT DeviceWriteProtect:1;
  59. USHORT Reserved10:7;
  60. USHORT Reserved11[128]; // 128-255
  61. } IDENTIFY_DATA, *PIDENTIFY_DATA;
  62. #pragma pack(pop)