blob: 6d89fa932155b21b4c43439e930a729bc2f4d411 [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 Ferris3a39c0b2021-09-02 00:03:38 +000023#include <scsi/scsi_status.h>
Christopher Ferris5956b4e2016-07-20 12:28:56 -070024struct ccs_modesel_head {
25 __u8 _r1;
26 __u8 medium;
27 __u8 _r2;
Christopher Ferris5956b4e2016-07-20 12:28:56 -070028 __u8 block_desc_length;
29 __u8 density;
30 __u8 number_blocks_hi;
31 __u8 number_blocks_med;
Christopher Ferris5956b4e2016-07-20 12:28:56 -070032 __u8 number_blocks_lo;
33 __u8 _r3;
34 __u8 block_length_hi;
35 __u8 block_length_med;
Christopher Ferris5956b4e2016-07-20 12:28:56 -070036 __u8 block_length_lo;
37};
Christopher Ferris5956b4e2016-07-20 12:28:56 -070038#define EXTENDED_MODIFY_DATA_POINTER 0x00
39#define EXTENDED_SDTR 0x01
40#define EXTENDED_EXTENDED_IDENTIFY 0x02
41#define EXTENDED_WDTR 0x03
Christopher Ferris5956b4e2016-07-20 12:28:56 -070042#define EXTENDED_PPR 0x04
43#define EXTENDED_MODIFY_BIDI_DATA_PTR 0x05
Christopher Ferris5956b4e2016-07-20 12:28:56 -070044#define SCSI_IOCTL_GET_IDLUN 0x5382
Christopher Ferris5956b4e2016-07-20 12:28:56 -070045#define SCSI_IOCTL_PROBE_HOST 0x5385
46#define SCSI_IOCTL_GET_BUS_NUMBER 0x5386
47#define SCSI_IOCTL_GET_PCI 0x5387
48#endif