ReactOS  0.4.15-dev-1384-g878186b
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 168 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 162 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 174 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 157 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