3 Header file for chipset CE-AT spec.
5 Copyright (c) 2013-2015 Intel Corporation.
7 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
23 #define DATA_UNIT_SIZE 512
30 #define RW_MULTIPLE_REGISTER CMD60
31 #define RW_MULTIPLE_BLOCK CMD61
34 #define CE_ATA_SIG_CE 0xCE
35 #define CE_ATA_SIG_AA 0xAA
38 #define Reg_Features_Exp 01
39 #define Reg_SectorCount_Exp 02
40 #define Reg_LBALow_Exp 03
41 #define Reg_LBAMid_Exp 04
42 #define Reg_LBAHigh_Exp 05
43 #define Reg_Control 06
44 #define Reg_Features_Error 09
45 #define Reg_SectorCount 10
48 #define Reg_LBAHigh 13
49 #define Reg_Device_Head 14
50 #define Reg_Command_Status 15
52 #define Reg_scrTempC 0x80
53 #define Reg_scrTempMaxP 0x84
54 #define Reg_scrTempMinP 0x88
55 #define Reg_scrStatus 0x8C
56 #define Reg_scrReallocsA 0x90
57 #define Reg_scrERetractsA 0x94
58 #define Reg_scrCapabilities 0x98
59 #define Reg_scrControl 0xC0
66 UINT8 SectorCount_Exp
;
83 //Reduced ATA command set
85 #define IDENTIFY_DEVICE 0xEC
86 #define READ_DMA_EXT 0x25
87 #define WRITE_DMA_EXT 0x35
88 #define STANDBY_IMMEDIATE 0xE0
89 #define FLUSH_CACHE_EXT 0xEA
95 UINT16 SerialNumber
[10];
97 UINT16 FirmwareRevision
[4];
98 UINT16 ModelNumber
[20];
101 UINT16 Reserved3
[19];
102 UINT16 MaximumLBA
[4];
106 UINT16 DeviceGUID
[4];
107 UINT16 Reserved6
[94];
109 UINT16 MaxWritesPerAddress
;
110 UINT16 Reserved7
[47];
111 UINT16 IntegrityWord
;
112 }IDENTIFY_DEVICE_DATA
;