ReactOS 0.4.15-dev-8138-g1e75ea8
minitape.h File Reference

Go to the source code of this file.

Classes

struct  _INQUIRYDATA
 
struct  _MODE_CAPABILITIES_PAGE
 
struct  _TAPE_INIT_DATA
 
struct  _TAPE_PHYS_POSITION
 

Macros

#define MEDIA_ERASEABLE   0x00000001
 
#define MEDIA_WRITE_ONCE   0x00000002
 
#define MEDIA_READ_ONLY   0x00000004
 
#define MEDIA_READ_WRITE   0x00000008
 
#define MEDIA_WRITE_PROTECTED   0x00000100
 
#define MEDIA_CURRENTLY_MOUNTED   0x80000000
 
#define INQUIRYDATABUFFERSIZE   36
 
#define _INQUIRYDATA_DEFINED
 
#define TAPE_RETRY_MASK   0x0000FFFF
 
#define IGNORE_ERRORS   0x00010000
 
#define RETURN_ERRORS   0x00020000
 

Typedefs

typedef enum _TAPE_STATUS TAPE_STATUS
 
typedef enum _TAPE_STATUSPTAPE_STATUS
 
typedef struct _INQUIRYDATA INQUIRYDATA
 
typedef struct _INQUIRYDATAPINQUIRYDATA
 
typedef struct _MODE_CAPABILITIES_PAGE MODE_CAPABILITIES_PAGE
 
typedef struct _MODE_CAPABILITIES_PAGEPMODE_CAPABILITIES_PAGE
 
typedef BOOLEAN(NTAPITAPE_VERIFY_INQUIRY_ROUTINE) (_In_ PINQUIRYDATA InquiryData, _In_ PMODE_CAPABILITIES_PAGE ModeCapabilitiesPage)
 
typedef VOID(NTAPITAPE_EXTENSION_INIT_ROUTINE) (_In_ PVOID MinitapeExtension, _In_ PINQUIRYDATA InquiryData, _In_ PMODE_CAPABILITIES_PAGE ModeCapabilitiesPage)
 
typedef VOID(NTAPITAPE_ERROR_ROUTINE) (_In_ PVOID MinitapeExtension, _In_ PSCSI_REQUEST_BLOCK Srb, _Inout_ PTAPE_STATUS TapeStatus)
 
typedef TAPE_STATUS(NTAPITAPE_PROCESS_COMMAND_ROUTINE) (_Inout_ PVOID MinitapeExtension, _Inout_ PVOID CommandExtension, _Inout_ PVOID CommandParameters, _Inout_ PSCSI_REQUEST_BLOCK Srb, _In_ ULONG CallNumber, _In_ TAPE_STATUS StatusOfLastCommand, _Inout_ PULONG RetryFlags)
 
typedef struct _TAPE_INIT_DATA TAPE_INIT_DATA
 
typedef struct _TAPE_INIT_DATAPTAPE_INIT_DATA
 
typedef struct _TAPE_PHYS_POSITION TAPE_PHYS_POSITION
 
typedef struct _TAPE_PHYS_POSITION PTAPE_PHYS_POSITION
 

Enumerations

enum  _TAPE_STATUS {
  TAPE_STATUS_SEND_SRB_AND_CALLBACK , TAPE_STATUS_CALLBACK , TAPE_STATUS_CHECK_TEST_UNIT_READY , TAPE_STATUS_SUCCESS ,
  TAPE_STATUS_INSUFFICIENT_RESOURCES , TAPE_STATUS_NOT_IMPLEMENTED , TAPE_STATUS_INVALID_DEVICE_REQUEST , TAPE_STATUS_INVALID_PARAMETER ,
  TAPE_STATUS_MEDIA_CHANGED , TAPE_STATUS_BUS_RESET , TAPE_STATUS_SETMARK_DETECTED , TAPE_STATUS_FILEMARK_DETECTED ,
  TAPE_STATUS_BEGINNING_OF_MEDIA , TAPE_STATUS_END_OF_MEDIA , TAPE_STATUS_BUFFER_OVERFLOW , TAPE_STATUS_NO_DATA_DETECTED ,
  TAPE_STATUS_EOM_OVERFLOW , TAPE_STATUS_NO_MEDIA , TAPE_STATUS_IO_DEVICE_ERROR , TAPE_STATUS_UNRECOGNIZED_MEDIA ,
  TAPE_STATUS_DEVICE_NOT_READY , TAPE_STATUS_MEDIA_WRITE_PROTECTED , TAPE_STATUS_DEVICE_DATA_ERROR , TAPE_STATUS_NO_SUCH_DEVICE ,
  TAPE_STATUS_INVALID_BLOCK_LENGTH , TAPE_STATUS_IO_TIMEOUT , TAPE_STATUS_DEVICE_NOT_CONNECTED , TAPE_STATUS_DATA_OVERRUN ,
  TAPE_STATUS_DEVICE_BUSY , TAPE_STATUS_REQUIRES_CLEANING , TAPE_STATUS_CLEANER_CARTRIDGE_INSTALLED
}
 

Macro Definition Documentation

◆ _INQUIRYDATA_DEFINED

#define _INQUIRYDATA_DEFINED

Definition at line 75 of file minitape.h.

◆ IGNORE_ERRORS

#define IGNORE_ERRORS   0x00010000

Definition at line 184 of file minitape.h.

◆ INQUIRYDATABUFFERSIZE

#define INQUIRYDATABUFFERSIZE   36

Definition at line 72 of file minitape.h.

◆ MEDIA_CURRENTLY_MOUNTED

#define MEDIA_CURRENTLY_MOUNTED   0x80000000

Definition at line 36 of file minitape.h.

◆ MEDIA_ERASEABLE

#define MEDIA_ERASEABLE   0x00000001

Definition at line 31 of file minitape.h.

◆ MEDIA_READ_ONLY

#define MEDIA_READ_ONLY   0x00000004

Definition at line 33 of file minitape.h.

◆ MEDIA_READ_WRITE

#define MEDIA_READ_WRITE   0x00000008

Definition at line 34 of file minitape.h.

◆ MEDIA_WRITE_ONCE

#define MEDIA_WRITE_ONCE   0x00000002

Definition at line 32 of file minitape.h.

◆ MEDIA_WRITE_PROTECTED

#define MEDIA_WRITE_PROTECTED   0x00000100

Definition at line 35 of file minitape.h.

◆ RETURN_ERRORS

#define RETURN_ERRORS   0x00020000

Definition at line 185 of file minitape.h.

◆ TAPE_RETRY_MASK

#define TAPE_RETRY_MASK   0x0000FFFF

Definition at line 183 of file minitape.h.

Typedef Documentation

◆ INQUIRYDATA

◆ MODE_CAPABILITIES_PAGE

◆ PINQUIRYDATA

◆ PMODE_CAPABILITIES_PAGE

◆ PTAPE_INIT_DATA

◆ PTAPE_PHYS_POSITION

◆ PTAPE_STATUS

◆ TAPE_ERROR_ROUTINE

typedef VOID(NTAPI * TAPE_ERROR_ROUTINE) (_In_ PVOID MinitapeExtension, _In_ PSCSI_REQUEST_BLOCK Srb, _Inout_ PTAPE_STATUS TapeStatus)

Definition at line 167 of file minitape.h.

◆ TAPE_EXTENSION_INIT_ROUTINE

typedef VOID(NTAPI * TAPE_EXTENSION_INIT_ROUTINE) (_In_ PVOID MinitapeExtension, _In_ PINQUIRYDATA InquiryData, _In_ PMODE_CAPABILITIES_PAGE ModeCapabilitiesPage)

Definition at line 161 of file minitape.h.

◆ TAPE_INIT_DATA

◆ TAPE_PHYS_POSITION

◆ TAPE_PROCESS_COMMAND_ROUTINE

typedef TAPE_STATUS(NTAPI * TAPE_PROCESS_COMMAND_ROUTINE) (_Inout_ PVOID MinitapeExtension, _Inout_ PVOID CommandExtension, _Inout_ PVOID CommandParameters, _Inout_ PSCSI_REQUEST_BLOCK Srb, _In_ ULONG CallNumber, _In_ TAPE_STATUS StatusOfLastCommand, _Inout_ PULONG RetryFlags)

Definition at line 173 of file minitape.h.

◆ TAPE_STATUS

◆ TAPE_VERIFY_INQUIRY_ROUTINE

typedef BOOLEAN(NTAPI * TAPE_VERIFY_INQUIRY_ROUTINE) (_In_ PINQUIRYDATA InquiryData, _In_ PMODE_CAPABILITIES_PAGE ModeCapabilitiesPage)

Definition at line 156 of file minitape.h.

Enumeration Type Documentation

◆ _TAPE_STATUS

Enumerator
TAPE_STATUS_SEND_SRB_AND_CALLBACK 
TAPE_STATUS_CALLBACK 
TAPE_STATUS_CHECK_TEST_UNIT_READY 
TAPE_STATUS_SUCCESS 
TAPE_STATUS_INSUFFICIENT_RESOURCES 
TAPE_STATUS_NOT_IMPLEMENTED 
TAPE_STATUS_INVALID_DEVICE_REQUEST 
TAPE_STATUS_INVALID_PARAMETER 
TAPE_STATUS_MEDIA_CHANGED 
TAPE_STATUS_BUS_RESET 
TAPE_STATUS_SETMARK_DETECTED 
TAPE_STATUS_FILEMARK_DETECTED 
TAPE_STATUS_BEGINNING_OF_MEDIA 
TAPE_STATUS_END_OF_MEDIA 
TAPE_STATUS_BUFFER_OVERFLOW 
TAPE_STATUS_NO_DATA_DETECTED 
TAPE_STATUS_EOM_OVERFLOW 
TAPE_STATUS_NO_MEDIA 
TAPE_STATUS_IO_DEVICE_ERROR 
TAPE_STATUS_UNRECOGNIZED_MEDIA 
TAPE_STATUS_DEVICE_NOT_READY 
TAPE_STATUS_MEDIA_WRITE_PROTECTED 
TAPE_STATUS_DEVICE_DATA_ERROR 
TAPE_STATUS_NO_SUCH_DEVICE 
TAPE_STATUS_INVALID_BLOCK_LENGTH 
TAPE_STATUS_IO_TIMEOUT 
TAPE_STATUS_DEVICE_NOT_CONNECTED 
TAPE_STATUS_DATA_OVERRUN 
TAPE_STATUS_DEVICE_BUSY 
TAPE_STATUS_REQUIRES_CLEANING 
TAPE_STATUS_CLEANER_CARTRIDGE_INSTALLED 

Definition at line 38 of file minitape.h.

38 {
enum _TAPE_STATUS TAPE_STATUS
enum _TAPE_STATUS * PTAPE_STATUS
@ TAPE_STATUS_MEDIA_CHANGED
Definition: minitape.h:47
@ TAPE_STATUS_IO_TIMEOUT
Definition: minitape.h:64
@ TAPE_STATUS_INVALID_BLOCK_LENGTH
Definition: minitape.h:63
@ TAPE_STATUS_FILEMARK_DETECTED
Definition: minitape.h:50
@ TAPE_STATUS_NO_SUCH_DEVICE
Definition: minitape.h:62
@ TAPE_STATUS_UNRECOGNIZED_MEDIA
Definition: minitape.h:58
@ TAPE_STATUS_SUCCESS
Definition: minitape.h:42
@ TAPE_STATUS_SETMARK_DETECTED
Definition: minitape.h:49
@ TAPE_STATUS_SEND_SRB_AND_CALLBACK
Definition: minitape.h:39
@ TAPE_STATUS_CALLBACK
Definition: minitape.h:40
@ TAPE_STATUS_CLEANER_CARTRIDGE_INSTALLED
Definition: minitape.h:69
@ TAPE_STATUS_INSUFFICIENT_RESOURCES
Definition: minitape.h:43
@ TAPE_STATUS_IO_DEVICE_ERROR
Definition: minitape.h:57
@ TAPE_STATUS_BEGINNING_OF_MEDIA
Definition: minitape.h:51
@ TAPE_STATUS_INVALID_PARAMETER
Definition: minitape.h:46
@ TAPE_STATUS_INVALID_DEVICE_REQUEST
Definition: minitape.h:45
@ TAPE_STATUS_BUFFER_OVERFLOW
Definition: minitape.h:53
@ TAPE_STATUS_DEVICE_DATA_ERROR
Definition: minitape.h:61
@ TAPE_STATUS_EOM_OVERFLOW
Definition: minitape.h:55
@ TAPE_STATUS_DATA_OVERRUN
Definition: minitape.h:66
@ TAPE_STATUS_NO_MEDIA
Definition: minitape.h:56
@ TAPE_STATUS_REQUIRES_CLEANING
Definition: minitape.h:68
@ TAPE_STATUS_NO_DATA_DETECTED
Definition: minitape.h:54
@ TAPE_STATUS_MEDIA_WRITE_PROTECTED
Definition: minitape.h:60
@ TAPE_STATUS_END_OF_MEDIA
Definition: minitape.h:52
@ TAPE_STATUS_NOT_IMPLEMENTED
Definition: minitape.h:44
@ TAPE_STATUS_DEVICE_BUSY
Definition: minitape.h:67
@ TAPE_STATUS_DEVICE_NOT_CONNECTED
Definition: minitape.h:65
@ TAPE_STATUS_DEVICE_NOT_READY
Definition: minitape.h:59
@ TAPE_STATUS_BUS_RESET
Definition: minitape.h:48
@ TAPE_STATUS_CHECK_TEST_UNIT_READY
Definition: minitape.h:41