3 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
25 Header file for chipset CE-AT spec.
35 #define DATA_UNIT_SIZE 512
42 #define RW_MULTIPLE_REGISTER CMD60
43 #define RW_MULTIPLE_BLOCK CMD61
46 #define CE_ATA_SIG_CE 0xCE
47 #define CE_ATA_SIG_AA 0xAA
50 #define Reg_Features_Exp 01
51 #define Reg_SectorCount_Exp 02
52 #define Reg_LBALow_Exp 03
53 #define Reg_LBAMid_Exp 04
54 #define Reg_LBAHigh_Exp 05
55 #define Reg_Control 06
56 #define Reg_Features_Error 09
57 #define Reg_SectorCount 10
60 #define Reg_LBAHigh 13
61 #define Reg_Device_Head 14
62 #define Reg_Command_Status 15
64 #define Reg_scrTempC 0x80
65 #define Reg_scrTempMaxP 0x84
66 #define Reg_scrTempMinP 0x88
67 #define Reg_scrStatus 0x8C
68 #define Reg_scrReallocsA 0x90
69 #define Reg_scrERetractsA 0x94
70 #define Reg_scrCapabilities 0x98
71 #define Reg_scrControl 0xC0
78 UINT8 SectorCount_Exp
;
95 //Reduced ATA command set
97 #define IDENTIFY_DEVICE 0xEC
98 #define READ_DMA_EXT 0x25
99 #define WRITE_DMA_EXT 0x35
100 #define STANDBY_IMMEDIATE 0xE0
101 #define FLUSH_CACHE_EXT 0xEA
106 UINT16 Reserved0
[10];
107 UINT16 SerialNumber
[10];
109 UINT16 FirmwareRevision
[4];
110 UINT16 ModelNumber
[20];
111 UINT16 Reserved2
[33];
113 UINT16 Reserved3
[19];
114 UINT16 MaximumLBA
[4];
118 UINT16 DeviceGUID
[4];
119 UINT16 Reserved6
[94];
121 UINT16 MaxWritesPerAddress
;
122 UINT16 Reserved7
[47];
123 UINT16 IntegrityWord
;
124 } IDENTIFY_DEVICE_DATA
;