blob: acb18e7739d12e7c7b9e3d8ebb882d7d85cbfe5c [file] [log] [blame]
Christopher Ferris60481732015-09-17 21:22:44 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
Christopher Ferris5956b4e2016-07-20 12:28:56 -070019#ifndef _SCSI_PROTO_H_
20#define _SCSI_PROTO_H_
Christopher Ferris60481732015-09-17 21:22:44 -070021#include <linux/types.h>
22#define TEST_UNIT_READY 0x00
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define REZERO_UNIT 0x01
25#define REQUEST_SENSE 0x03
26#define FORMAT_UNIT 0x04
27#define READ_BLOCK_LIMITS 0x05
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define REASSIGN_BLOCKS 0x07
30#define INITIALIZE_ELEMENT_STATUS 0x07
31#define READ_6 0x08
32#define WRITE_6 0x0a
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define SEEK_6 0x0b
35#define READ_REVERSE 0x0f
36#define WRITE_FILEMARKS 0x10
37#define SPACE 0x11
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define INQUIRY 0x12
40#define RECOVER_BUFFERED_DATA 0x14
41#define MODE_SELECT 0x15
42#define RESERVE 0x16
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define RELEASE 0x17
45#define COPY 0x18
46#define ERASE 0x19
47#define MODE_SENSE 0x1a
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define START_STOP 0x1b
50#define RECEIVE_DIAGNOSTIC 0x1c
51#define SEND_DIAGNOSTIC 0x1d
52#define ALLOW_MEDIUM_REMOVAL 0x1e
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define READ_FORMAT_CAPACITIES 0x23
55#define SET_WINDOW 0x24
56#define READ_CAPACITY 0x25
57#define READ_10 0x28
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define WRITE_10 0x2a
60#define SEEK_10 0x2b
61#define POSITION_TO_ELEMENT 0x2b
62#define WRITE_VERIFY 0x2e
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define VERIFY 0x2f
65#define SEARCH_HIGH 0x30
66#define SEARCH_EQUAL 0x31
67#define SEARCH_LOW 0x32
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define SET_LIMITS 0x33
70#define PRE_FETCH 0x34
71#define READ_POSITION 0x34
72#define SYNCHRONIZE_CACHE 0x35
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define LOCK_UNLOCK_CACHE 0x36
75#define READ_DEFECT_DATA 0x37
76#define MEDIUM_SCAN 0x38
77#define COMPARE 0x39
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define COPY_VERIFY 0x3a
80#define WRITE_BUFFER 0x3b
81#define READ_BUFFER 0x3c
82#define UPDATE_BLOCK 0x3d
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define READ_LONG 0x3e
85#define WRITE_LONG 0x3f
86#define CHANGE_DEFINITION 0x40
87#define WRITE_SAME 0x41
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define UNMAP 0x42
90#define READ_TOC 0x43
91#define READ_HEADER 0x44
92#define GET_EVENT_STATUS_NOTIFICATION 0x4a
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define LOG_SELECT 0x4c
95#define LOG_SENSE 0x4d
96#define XDWRITEREAD_10 0x53
97#define MODE_SELECT_10 0x55
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define RESERVE_10 0x56
100#define RELEASE_10 0x57
101#define MODE_SENSE_10 0x5a
102#define PERSISTENT_RESERVE_IN 0x5e
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define PERSISTENT_RESERVE_OUT 0x5f
105#define VARIABLE_LENGTH_CMD 0x7f
106#define REPORT_LUNS 0xa0
107#define SECURITY_PROTOCOL_IN 0xa2
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define MAINTENANCE_IN 0xa3
110#define MAINTENANCE_OUT 0xa4
111#define MOVE_MEDIUM 0xa5
112#define EXCHANGE_MEDIUM 0xa6
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define READ_12 0xa8
Christopher Ferris5956b4e2016-07-20 12:28:56 -0700115#define SERVICE_ACTION_OUT_12 0xa9
Christopher Ferris60481732015-09-17 21:22:44 -0700116#define WRITE_12 0xaa
117#define READ_MEDIA_SERIAL_NUMBER 0xab
Christopher Ferris60481732015-09-17 21:22:44 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris5956b4e2016-07-20 12:28:56 -0700119#define SERVICE_ACTION_IN_12 0xab
120#define WRITE_VERIFY_12 0xae
Christopher Ferris60481732015-09-17 21:22:44 -0700121#define VERIFY_12 0xaf
122#define SEARCH_HIGH_12 0xb0
Christopher Ferris5956b4e2016-07-20 12:28:56 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris60481732015-09-17 21:22:44 -0700124#define SEARCH_EQUAL_12 0xb1
125#define SEARCH_LOW_12 0xb2
Christopher Ferris60481732015-09-17 21:22:44 -0700126#define SECURITY_PROTOCOL_OUT 0xb5
127#define READ_ELEMENT_STATUS 0xb8
Christopher Ferris5956b4e2016-07-20 12:28:56 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris60481732015-09-17 21:22:44 -0700129#define SEND_VOLUME_TAG 0xb6
130#define WRITE_LONG_2 0xea
Christopher Ferris60481732015-09-17 21:22:44 -0700131#define EXTENDED_COPY 0x83
132#define RECEIVE_COPY_RESULTS 0x84
Christopher Ferris5956b4e2016-07-20 12:28:56 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris60481732015-09-17 21:22:44 -0700134#define ACCESS_CONTROL_IN 0x86
135#define ACCESS_CONTROL_OUT 0x87
Christopher Ferris60481732015-09-17 21:22:44 -0700136#define READ_16 0x88
137#define COMPARE_AND_WRITE 0x89
Christopher Ferris5956b4e2016-07-20 12:28:56 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris60481732015-09-17 21:22:44 -0700139#define WRITE_16 0x8a
140#define READ_ATTRIBUTE 0x8c
Christopher Ferris60481732015-09-17 21:22:44 -0700141#define WRITE_ATTRIBUTE 0x8d
142#define VERIFY_16 0x8f
Christopher Ferris5956b4e2016-07-20 12:28:56 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris60481732015-09-17 21:22:44 -0700144#define SYNCHRONIZE_CACHE_16 0x91
145#define WRITE_SAME_16 0x93
Christopher Ferris5956b4e2016-07-20 12:28:56 -0700146#define SERVICE_ACTION_BIDIRECTIONAL 0x9d
147#define SERVICE_ACTION_IN_16 0x9e
Christopher Ferris60481732015-09-17 21:22:44 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris5956b4e2016-07-20 12:28:56 -0700149#define SERVICE_ACTION_OUT_16 0x9f
Christopher Ferris60481732015-09-17 21:22:44 -0700150#define GOOD 0x00
151#define CHECK_CONDITION 0x01
152#define CONDITION_GOOD 0x02
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154#define BUSY 0x04
155#define INTERMEDIATE_GOOD 0x08
156#define INTERMEDIATE_C_GOOD 0x0a
157#define RESERVATION_CONFLICT 0x0c
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159#define COMMAND_TERMINATED 0x11
160#define QUEUE_FULL 0x14
161#define ACA_ACTIVE 0x18
162#define TASK_ABORTED 0x20
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164#define STATUS_MASK 0xfe
165#define NO_SENSE 0x00
166#define RECOVERED_ERROR 0x01
167#define NOT_READY 0x02
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169#define MEDIUM_ERROR 0x03
170#define HARDWARE_ERROR 0x04
171#define ILLEGAL_REQUEST 0x05
172#define UNIT_ATTENTION 0x06
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174#define DATA_PROTECT 0x07
175#define BLANK_CHECK 0x08
176#define COPY_ABORTED 0x0a
177#define ABORTED_COMMAND 0x0b
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179#define VOLUME_OVERFLOW 0x0d
180#define MISCOMPARE 0x0e
181#define TYPE_DISK 0x00
182#define TYPE_TAPE 0x01
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184#define TYPE_PRINTER 0x02
185#define TYPE_PROCESSOR 0x03
186#define TYPE_WORM 0x04
187#define TYPE_ROM 0x05
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189#define TYPE_SCANNER 0x06
190#define TYPE_MOD 0x07
191#define TYPE_MEDIUM_CHANGER 0x08
192#define TYPE_COMM 0x09
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194#define TYPE_RAID 0x0c
195#define TYPE_ENCLOSURE 0x0d
196#define TYPE_RBC 0x0e
197#define TYPE_OSD 0x11
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199#define TYPE_ZBC 0x14
200#define TYPE_WLUN 0x1e
201#define TYPE_NO_LUN 0x7f
Christopher Ferris60481732015-09-17 21:22:44 -0700202#endif
Christopher Ferris5956b4e2016-07-20 12:28:56 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */