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