mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 05:43:30 +00:00
Added missing SCSI pass-through structures.
svn path=/trunk/; revision=4943
This commit is contained in:
parent
eab41528ac
commit
ee442cb63a
1 changed files with 48 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: ntddscsi.h,v 1.2 2002/10/03 18:33:47 sedwards Exp $
|
/* $Id: ntddscsi.h,v 1.3 2003/06/22 16:35:58 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -10,9 +10,7 @@
|
||||||
#ifndef __STORAGE_INCLUDE_NTDDSCSI_H
|
#ifndef __STORAGE_INCLUDE_NTDDSCSI_H
|
||||||
#define __STORAGE_INCLUDE_NTDDSCSI_H
|
#define __STORAGE_INCLUDE_NTDDSCSI_H
|
||||||
|
|
||||||
|
|
||||||
/* IOCTL codes */
|
/* IOCTL codes */
|
||||||
|
|
||||||
#define IOCTL_SCSI_PASS_THROUGH \
|
#define IOCTL_SCSI_PASS_THROUGH \
|
||||||
CTL_CODE(FILE_DEVICE_CONTROLLER, 0x0401, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
|
CTL_CODE(FILE_DEVICE_CONTROLLER, 0x0401, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
|
||||||
#define IOCTL_SCSI_MINIPORT \
|
#define IOCTL_SCSI_MINIPORT \
|
||||||
|
@ -87,6 +85,53 @@ typedef struct _SCSI_ADDRESS
|
||||||
UCHAR Lun;
|
UCHAR Lun;
|
||||||
} SCSI_ADDRESS, *PSCSI_ADDRESS;
|
} SCSI_ADDRESS, *PSCSI_ADDRESS;
|
||||||
|
|
||||||
|
|
||||||
|
/* Used by IOCTL_SCSI_PASS_THROUGH */
|
||||||
|
|
||||||
|
typedef struct _SCSI_PASS_THROUGH
|
||||||
|
{
|
||||||
|
USHORT Length;
|
||||||
|
UCHAR ScsiStatus;
|
||||||
|
UCHAR PathId;
|
||||||
|
UCHAR TargetId;
|
||||||
|
UCHAR Lun;
|
||||||
|
UCHAR CdbLength;
|
||||||
|
UCHAR SenseInfoLength;
|
||||||
|
UCHAR DataIn;
|
||||||
|
ULONG DataTransferLength;
|
||||||
|
ULONG TimeOutValue;
|
||||||
|
ULONG DataBufferOffset;
|
||||||
|
ULONG SenseInfoOffset;
|
||||||
|
UCHAR Cdb[16];
|
||||||
|
} SCSI_PASS_THROUGH, *PSCSI_PASS_THROUGH;
|
||||||
|
|
||||||
|
|
||||||
|
/* Used by IOCTL_SCSI_PASS_THROUGH_DIRECT */
|
||||||
|
|
||||||
|
typedef struct _SCSI_PASS_THROUGH_DIRECT
|
||||||
|
{
|
||||||
|
USHORT Length;
|
||||||
|
UCHAR ScsiStatus;
|
||||||
|
UCHAR PathId;
|
||||||
|
UCHAR TargetId;
|
||||||
|
UCHAR Lun;
|
||||||
|
UCHAR CdbLength;
|
||||||
|
UCHAR SenseInfoLength;
|
||||||
|
UCHAR DataIn;
|
||||||
|
ULONG DataTransferLength;
|
||||||
|
ULONG TimeOutValue;
|
||||||
|
ULONG DataBufferOffset;
|
||||||
|
ULONG SenseInfoOffset;
|
||||||
|
UCHAR Cdb[16];
|
||||||
|
} SCSI_PASS_THROUGH_DIRECT, *PSCSI_PASS_THROUGH_DIRECT;
|
||||||
|
|
||||||
|
|
||||||
|
/* Pass through DataIn */
|
||||||
|
|
||||||
|
#define SCSI_IOCTL_DATA_OUT 0
|
||||||
|
#define SCSI_IOCTL_DATA_IN 1
|
||||||
|
#define SCSI_IOCTL_DATA_UNSPECIFIED 2
|
||||||
|
|
||||||
#endif /* __STORAGE_INCLUDE_NTDDSCSI_H */
|
#endif /* __STORAGE_INCLUDE_NTDDSCSI_H */
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue