blob: 1e125d157d7da615c4ae9e8405b2d0ff20f9ca89 [file] [log] [blame]
Christopher Ferris5956b4e2016-07-20 12:28:56 -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 ****************************************************************************/
19#ifndef _SCSI_SCSI_H
20#define _SCSI_SCSI_H
21#include <linux/types.h>
22#include <scsi/scsi_proto.h>
Christopher Ferris5956b4e2016-07-20 12:28:56 -070023struct ccs_modesel_head {
24 __u8 _r1;
25 __u8 medium;
26 __u8 _r2;
Christopher Ferris5956b4e2016-07-20 12:28:56 -070027 __u8 block_desc_length;
28 __u8 density;
29 __u8 number_blocks_hi;
30 __u8 number_blocks_med;
Christopher Ferris5956b4e2016-07-20 12:28:56 -070031 __u8 number_blocks_lo;
32 __u8 _r3;
33 __u8 block_length_hi;
34 __u8 block_length_med;
Christopher Ferris5956b4e2016-07-20 12:28:56 -070035 __u8 block_length_lo;
36};
37#define COMMAND_COMPLETE 0x00
38#define EXTENDED_MESSAGE 0x01
Christopher Ferris5956b4e2016-07-20 12:28:56 -070039#define EXTENDED_MODIFY_DATA_POINTER 0x00
40#define EXTENDED_SDTR 0x01
41#define EXTENDED_EXTENDED_IDENTIFY 0x02
42#define EXTENDED_WDTR 0x03
Christopher Ferris5956b4e2016-07-20 12:28:56 -070043#define EXTENDED_PPR 0x04
44#define EXTENDED_MODIFY_BIDI_DATA_PTR 0x05
45#define SAVE_POINTERS 0x02
46#define RESTORE_POINTERS 0x03
Christopher Ferris5956b4e2016-07-20 12:28:56 -070047#define DISCONNECT 0x04
48#define INITIATOR_ERROR 0x05
49#define ABORT_TASK_SET 0x06
50#define MESSAGE_REJECT 0x07
Christopher Ferris5956b4e2016-07-20 12:28:56 -070051#define NOP 0x08
52#define MSG_PARITY_ERROR 0x09
53#define LINKED_CMD_COMPLETE 0x0a
54#define LINKED_FLG_CMD_COMPLETE 0x0b
Christopher Ferris5956b4e2016-07-20 12:28:56 -070055#define TARGET_RESET 0x0c
56#define ABORT_TASK 0x0d
57#define CLEAR_TASK_SET 0x0e
58#define INITIATE_RECOVERY 0x0f
Christopher Ferris5956b4e2016-07-20 12:28:56 -070059#define RELEASE_RECOVERY 0x10
60#define CLEAR_ACA 0x16
61#define LOGICAL_UNIT_RESET 0x17
62#define SIMPLE_QUEUE_TAG 0x20
Christopher Ferris5956b4e2016-07-20 12:28:56 -070063#define HEAD_OF_QUEUE_TAG 0x21
64#define ORDERED_QUEUE_TAG 0x22
65#define IGNORE_WIDE_RESIDUE 0x23
66#define ACA 0x24
Christopher Ferris5956b4e2016-07-20 12:28:56 -070067#define QAS_REQUEST 0x55
68#define BUS_DEVICE_RESET TARGET_RESET
69#define ABORT ABORT_TASK_SET
70#define SCSI_IOCTL_GET_IDLUN 0x5382
Christopher Ferris5956b4e2016-07-20 12:28:56 -070071#define SCSI_IOCTL_PROBE_HOST 0x5385
72#define SCSI_IOCTL_GET_BUS_NUMBER 0x5386
73#define SCSI_IOCTL_GET_PCI 0x5387
74#endif