1 /**************************************************************************** 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> 23 struct ccs_modesel_head { 24 __u8 _r1; 25 __u8 medium; 26 __u8 _r2; 27 __u8 block_desc_length; 28 __u8 density; 29 __u8 number_blocks_hi; 30 __u8 number_blocks_med; 31 __u8 number_blocks_lo; 32 __u8 _r3; 33 __u8 block_length_hi; 34 __u8 block_length_med; 35 __u8 block_length_lo; 36 }; 37 #define COMMAND_COMPLETE 0x00 38 #define EXTENDED_MESSAGE 0x01 39 #define EXTENDED_MODIFY_DATA_POINTER 0x00 40 #define EXTENDED_SDTR 0x01 41 #define EXTENDED_EXTENDED_IDENTIFY 0x02 42 #define EXTENDED_WDTR 0x03 43 #define EXTENDED_PPR 0x04 44 #define EXTENDED_MODIFY_BIDI_DATA_PTR 0x05 45 #define SAVE_POINTERS 0x02 46 #define RESTORE_POINTERS 0x03 47 #define DISCONNECT 0x04 48 #define INITIATOR_ERROR 0x05 49 #define ABORT_TASK_SET 0x06 50 #define MESSAGE_REJECT 0x07 51 #define NOP 0x08 52 #define MSG_PARITY_ERROR 0x09 53 #define LINKED_CMD_COMPLETE 0x0a 54 #define LINKED_FLG_CMD_COMPLETE 0x0b 55 #define TARGET_RESET 0x0c 56 #define ABORT_TASK 0x0d 57 #define CLEAR_TASK_SET 0x0e 58 #define INITIATE_RECOVERY 0x0f 59 #define RELEASE_RECOVERY 0x10 60 #define TERMINATE_IO_PROC 0x11 61 #define CLEAR_ACA 0x16 62 #define LOGICAL_UNIT_RESET 0x17 63 #define SIMPLE_QUEUE_TAG 0x20 64 #define HEAD_OF_QUEUE_TAG 0x21 65 #define ORDERED_QUEUE_TAG 0x22 66 #define IGNORE_WIDE_RESIDUE 0x23 67 #define ACA 0x24 68 #define QAS_REQUEST 0x55 69 #define BUS_DEVICE_RESET TARGET_RESET 70 #define ABORT ABORT_TASK_SET 71 #define SCSI_IOCTL_GET_IDLUN 0x5382 72 #define SCSI_IOCTL_PROBE_HOST 0x5385 73 #define SCSI_IOCTL_GET_BUS_NUMBER 0x5386 74 #define SCSI_IOCTL_GET_PCI 0x5387 75 #endif 76