75 lines
2.4 KiB
C
75 lines
2.4 KiB
C
/****************************************************************************
|
|
****************************************************************************
|
|
***
|
|
*** This header was automatically generated from a Linux kernel header
|
|
*** of the same name, to make information necessary for userspace to
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
*** structures, and macros generated from the original header, and thus,
|
|
*** contains no copyrightable information.
|
|
***
|
|
*** To edit the content of this header, modify the corresponding
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
***
|
|
*** Any manual change here will be lost the next time this script will
|
|
*** be run. You've been warned!
|
|
***
|
|
****************************************************************************
|
|
****************************************************************************/
|
|
#ifndef _SCSI_SCSI_H
|
|
#define _SCSI_SCSI_H
|
|
#include <linux/types.h>
|
|
#include <scsi/scsi_proto.h>
|
|
struct ccs_modesel_head {
|
|
__u8 _r1;
|
|
__u8 medium;
|
|
__u8 _r2;
|
|
__u8 block_desc_length;
|
|
__u8 density;
|
|
__u8 number_blocks_hi;
|
|
__u8 number_blocks_med;
|
|
__u8 number_blocks_lo;
|
|
__u8 _r3;
|
|
__u8 block_length_hi;
|
|
__u8 block_length_med;
|
|
__u8 block_length_lo;
|
|
};
|
|
#define COMMAND_COMPLETE 0x00
|
|
#define EXTENDED_MESSAGE 0x01
|
|
#define EXTENDED_MODIFY_DATA_POINTER 0x00
|
|
#define EXTENDED_SDTR 0x01
|
|
#define EXTENDED_EXTENDED_IDENTIFY 0x02
|
|
#define EXTENDED_WDTR 0x03
|
|
#define EXTENDED_PPR 0x04
|
|
#define EXTENDED_MODIFY_BIDI_DATA_PTR 0x05
|
|
#define SAVE_POINTERS 0x02
|
|
#define RESTORE_POINTERS 0x03
|
|
#define DISCONNECT 0x04
|
|
#define INITIATOR_ERROR 0x05
|
|
#define ABORT_TASK_SET 0x06
|
|
#define MESSAGE_REJECT 0x07
|
|
#define NOP 0x08
|
|
#define MSG_PARITY_ERROR 0x09
|
|
#define LINKED_CMD_COMPLETE 0x0a
|
|
#define LINKED_FLG_CMD_COMPLETE 0x0b
|
|
#define TARGET_RESET 0x0c
|
|
#define ABORT_TASK 0x0d
|
|
#define CLEAR_TASK_SET 0x0e
|
|
#define INITIATE_RECOVERY 0x0f
|
|
#define RELEASE_RECOVERY 0x10
|
|
#define CLEAR_ACA 0x16
|
|
#define LOGICAL_UNIT_RESET 0x17
|
|
#define SIMPLE_QUEUE_TAG 0x20
|
|
#define HEAD_OF_QUEUE_TAG 0x21
|
|
#define ORDERED_QUEUE_TAG 0x22
|
|
#define IGNORE_WIDE_RESIDUE 0x23
|
|
#define ACA 0x24
|
|
#define QAS_REQUEST 0x55
|
|
#define BUS_DEVICE_RESET TARGET_RESET
|
|
#define ABORT ABORT_TASK_SET
|
|
#define SCSI_IOCTL_GET_IDLUN 0x5382
|
|
#define SCSI_IOCTL_PROBE_HOST 0x5385
|
|
#define SCSI_IOCTL_GET_BUS_NUMBER 0x5386
|
|
#define SCSI_IOCTL_GET_PCI 0x5387
|
|
#endif
|