Christopher Ferris | 5956b4e | 2016-07-20 12:28:56 -0700 | [diff] [blame] | 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> |
Christopher Ferris | 3a39c0b | 2021-09-02 00:03:38 +0000 | [diff] [blame] | 23 | #include <scsi/scsi_status.h> |
Christopher Ferris | 5956b4e | 2016-07-20 12:28:56 -0700 | [diff] [blame] | 24 | struct ccs_modesel_head { |
| 25 | __u8 _r1; |
| 26 | __u8 medium; |
| 27 | __u8 _r2; |
Christopher Ferris | 5956b4e | 2016-07-20 12:28:56 -0700 | [diff] [blame] | 28 | __u8 block_desc_length; |
| 29 | __u8 density; |
| 30 | __u8 number_blocks_hi; |
| 31 | __u8 number_blocks_med; |
Christopher Ferris | 5956b4e | 2016-07-20 12:28:56 -0700 | [diff] [blame] | 32 | __u8 number_blocks_lo; |
| 33 | __u8 _r3; |
| 34 | __u8 block_length_hi; |
| 35 | __u8 block_length_med; |
Christopher Ferris | 5956b4e | 2016-07-20 12:28:56 -0700 | [diff] [blame] | 36 | __u8 block_length_lo; |
| 37 | }; |
Christopher Ferris | 5956b4e | 2016-07-20 12:28:56 -0700 | [diff] [blame] | 38 | #define EXTENDED_MODIFY_DATA_POINTER 0x00 |
| 39 | #define EXTENDED_SDTR 0x01 |
| 40 | #define EXTENDED_EXTENDED_IDENTIFY 0x02 |
| 41 | #define EXTENDED_WDTR 0x03 |
Christopher Ferris | 5956b4e | 2016-07-20 12:28:56 -0700 | [diff] [blame] | 42 | #define EXTENDED_PPR 0x04 |
| 43 | #define EXTENDED_MODIFY_BIDI_DATA_PTR 0x05 |
Christopher Ferris | 5956b4e | 2016-07-20 12:28:56 -0700 | [diff] [blame] | 44 | #define SCSI_IOCTL_GET_IDLUN 0x5382 |
Christopher Ferris | 5956b4e | 2016-07-20 12:28:56 -0700 | [diff] [blame] | 45 | #define SCSI_IOCTL_PROBE_HOST 0x5385 |
| 46 | #define SCSI_IOCTL_GET_BUS_NUMBER 0x5386 |
| 47 | #define SCSI_IOCTL_GET_PCI 0x5387 |
| 48 | #endif |