ReactOS  0.4.15-dev-439-g292f67a
rbc.h File Reference
#include "scsi.h"
Include dependency graph for rbc.h:

Go to the source code of this file.

Classes

union  _CDB_RBC
 
struct  _CDB_RBC::_FORMAT_RBC
 
struct  _CDB_RBC::_MEDIA_REMOVAL_RBC
 
struct  _CDB_RBC::_START_STOP_RBC
 
struct  _CDB_RBC::_SYNCHRONIZE_CACHE_RBC
 
struct  _MODE_RBC_DEVICE_PARAMETERS_PAGE
 
struct  _MODE_RBC_DEVICE_PARAMETERS_HEADER_AND_PAGE
 

Macros

#define START_STOP_RBC_POWER_CND_NO_CHANGE   0
 
#define START_STOP_RBC_POWER_CND_ACTIVE   1
 
#define START_STOP_RBC_POWER_CND_IDLE   2
 
#define START_STOP_RBC_POWER_CND_STANDBY   3
 
#define START_STOP_RBC_POWER_CND_SLEEP   5
 
#define START_STOP_RBC_POWER_CND_DEVICE_CTRL   7
 
#define MODE_PAGE_RBC_DEVICE_PARAMETERS   0x06
 
#define RBC_DEVICE   0x0E
 
#define RBC_UNSOLICITED_STATUS   0x02
 
#define RBC_UNSOLICITED_SENSE_KEY   0x06
 
#define RBC_UNSOLICITED_SC_PWR_STATE_CHNG   0xFF
 
#define RBC_UNSOLICITED_SC_EVENT_STATUS   0xFE
 
#define RBC_UNSOLICITED_CLASS_ASQ_DEVICE   0x06
 
#define RBC_UNSOLICITED_CLASS_ASQ_MEDIA   0x04
 
#define RBC_UNSOLICITED_CLASS_ASQ_POWER   0x02
 

Typedefs

typedef union _CDB_RBC CDB_RBC
 
typedef union _CDB_RBCPCDB_RBC
 
typedef struct _MODE_RBC_DEVICE_PARAMETERS_PAGE MODE_RBC_DEVICE_PARAMETERS_PAGE
 
typedef struct _MODE_RBC_DEVICE_PARAMETERS_PAGEPMODE_RBC_DEVICE_PARAMETERS_PAGE
 
typedef struct _MODE_RBC_DEVICE_PARAMETERS_HEADER_AND_PAGE MODE_RBC_DEVICE_PARAMETERS_HEADER_AND_PAGE
 
typedef struct _MODE_RBC_DEVICE_PARAMETERS_HEADER_AND_PAGEPMODE_RBC_DEVICE_PARAMETERS_HEADER_AND_PAGE
 

Functions

NTSTATUS Rbc_Scsi_Conversion (IN PSCSI_REQUEST_BLOCK Srb, IN PSCSI_REQUEST_BLOCK *OriginalSrb, IN PMODE_RBC_DEVICE_PARAMETERS_HEADER_AND_PAGE RbcHeaderAndPage, IN BOOLEAN OutgoingRequest, IN BOOLEAN RemovableMedia)
 

Macro Definition Documentation

◆ MODE_PAGE_RBC_DEVICE_PARAMETERS

#define MODE_PAGE_RBC_DEVICE_PARAMETERS   0x06

Definition at line 107 of file rbc.h.

◆ RBC_DEVICE

#define RBC_DEVICE   0x0E

Definition at line 114 of file rbc.h.

◆ RBC_UNSOLICITED_CLASS_ASQ_DEVICE

#define RBC_UNSOLICITED_CLASS_ASQ_DEVICE   0x06

Definition at line 158 of file rbc.h.

◆ RBC_UNSOLICITED_CLASS_ASQ_MEDIA

#define RBC_UNSOLICITED_CLASS_ASQ_MEDIA   0x04

Definition at line 159 of file rbc.h.

◆ RBC_UNSOLICITED_CLASS_ASQ_POWER

#define RBC_UNSOLICITED_CLASS_ASQ_POWER   0x02

Definition at line 160 of file rbc.h.

◆ RBC_UNSOLICITED_SC_EVENT_STATUS

#define RBC_UNSOLICITED_SC_EVENT_STATUS   0xFE

Definition at line 156 of file rbc.h.

◆ RBC_UNSOLICITED_SC_PWR_STATE_CHNG

#define RBC_UNSOLICITED_SC_PWR_STATE_CHNG   0xFF

Definition at line 155 of file rbc.h.

◆ RBC_UNSOLICITED_SENSE_KEY

#define RBC_UNSOLICITED_SENSE_KEY   0x06

Definition at line 153 of file rbc.h.

◆ RBC_UNSOLICITED_STATUS

#define RBC_UNSOLICITED_STATUS   0x02

Definition at line 152 of file rbc.h.

◆ START_STOP_RBC_POWER_CND_ACTIVE

#define START_STOP_RBC_POWER_CND_ACTIVE   1

Definition at line 96 of file rbc.h.

◆ START_STOP_RBC_POWER_CND_DEVICE_CTRL

#define START_STOP_RBC_POWER_CND_DEVICE_CTRL   7

Definition at line 100 of file rbc.h.

◆ START_STOP_RBC_POWER_CND_IDLE

#define START_STOP_RBC_POWER_CND_IDLE   2

Definition at line 97 of file rbc.h.

◆ START_STOP_RBC_POWER_CND_NO_CHANGE

#define START_STOP_RBC_POWER_CND_NO_CHANGE   0

Definition at line 95 of file rbc.h.

◆ START_STOP_RBC_POWER_CND_SLEEP

#define START_STOP_RBC_POWER_CND_SLEEP   5

Definition at line 99 of file rbc.h.

◆ START_STOP_RBC_POWER_CND_STANDBY

#define START_STOP_RBC_POWER_CND_STANDBY   3

Definition at line 98 of file rbc.h.

Typedef Documentation

◆ CDB_RBC

typedef union _CDB_RBC CDB_RBC

◆ MODE_RBC_DEVICE_PARAMETERS_HEADER_AND_PAGE

◆ MODE_RBC_DEVICE_PARAMETERS_PAGE

◆ PCDB_RBC

typedef union _CDB_RBC * PCDB_RBC

◆ PMODE_RBC_DEVICE_PARAMETERS_HEADER_AND_PAGE

◆ PMODE_RBC_DEVICE_PARAMETERS_PAGE

Function Documentation

◆ Rbc_Scsi_Conversion()

NTSTATUS Rbc_Scsi_Conversion ( IN PSCSI_REQUEST_BLOCK  Srb,
IN PSCSI_REQUEST_BLOCK OriginalSrb,
IN PMODE_RBC_DEVICE_PARAMETERS_HEADER_AND_PAGE  RbcHeaderAndPage,
IN BOOLEAN  OutgoingRequest,
IN BOOLEAN  RemovableMedia 
)