Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
tape_std.h File Reference
#include <asm/tape390.h>

Go to the source code of this file.

Macros

#define MAX_BLOCKSIZE   65535
 
#define INVALID_00   0x00 /* Invalid cmd */
 
#define BACKSPACEBLOCK   0x27 /* Back Space block */
 
#define BACKSPACEFILE   0x2f /* Back Space file */
 
#define DATA_SEC_ERASE   0x97 /* Data security erase */
 
#define ERASE_GAP   0x17 /* Erase Gap */
 
#define FORSPACEBLOCK   0x37 /* Forward space block */
 
#define FORSPACEFILE   0x3F /* Forward Space file */
 
#define FORCE_STREAM_CNT   0xEB /* Forced streaming count # */
 
#define NOP   0x03 /* No operation */
 
#define READ_FORWARD   0x02 /* Read forward */
 
#define REWIND   0x07 /* Rewind */
 
#define REWIND_UNLOAD   0x0F /* Rewind and Unload */
 
#define SENSE   0x04 /* Sense */
 
#define NEW_MODE_SET   0xEB /* Guess it is Mode set */
 
#define WRITE_CMD   0x01 /* Write */
 
#define WRITETAPEMARK   0x1F /* Write Tape Mark */
 
#define ASSIGN   0xB7 /* 3420 REJECT,3480 OK */
 
#define CONTROL_ACCESS   0xE3 /* Set high speed */
 
#define DIAG_MODE_SET   0x0B /* 3420 NOP, 3480 REJECT */
 
#define LOAD_DISPLAY   0x9F /* 3420 REJECT,3480 OK */
 
#define LOCATE   0x4F /* 3420 REJ, 3480 NOP */
 
#define LOOP_WRITE_TO_READ   0x8B /* 3480 REJECT */
 
#define MODE_SET_DB   0xDB /* 3420 REJECT,3480 OK */
 
#define MODE_SET_C3   0xC3 /* for 3420 */
 
#define MODE_SET_CB   0xCB /* for 3420 */
 
#define MODE_SET_D3   0xD3 /* for 3420 */
 
#define READ_BACKWARD   0x0C /* */
 
#define READ_BLOCK_ID   0x22 /* 3420 REJECT,3480 OK */
 
#define READ_BUFFER   0x12 /* 3420 REJECT,3480 OK */
 
#define READ_BUFF_LOG   0x24 /* 3420 REJECT,3480 OK */
 
#define RELEASE   0xD4 /* 3420 NOP, 3480 REJECT */
 
#define REQ_TRK_IN_ERROR   0x1B /* 3420 NOP, 3480 REJECT */
 
#define RESERVE   0xF4 /* 3420 NOP, 3480 REJECT */
 
#define SENSE_GROUP_ID   0x34 /* 3420 REJECT,3480 OK */
 
#define SENSE_ID   0xE4 /* 3420 REJECT,3480 OK */
 
#define READ_DEV_CHAR   0x64 /* Read device characteristics */
 
#define SET_DIAGNOSE   0x4B /* 3420 NOP, 3480 REJECT */
 
#define SET_GROUP_ID   0xAF /* 3420 REJECT,3480 OK */
 
#define SET_TAPE_WRITE_IMMED   0xC3 /* for 3480 */
 
#define SUSPEND   0x5B /* 3420 REJ, 3480 NOP */
 
#define SYNC   0x43 /* Synchronize (flush buffer) */
 
#define UNASSIGN   0xC7 /* 3420 REJECT,3480 OK */
 
#define PERF_SUBSYS_FUNC   0x77 /* 3490 CMD */
 
#define READ_CONFIG_DATA   0xFA /* 3490 CMD */
 
#define READ_MESSAGE_ID   0x4E /* 3490 CMD */
 
#define READ_SUBSYS_DATA   0x3E /* 3490 CMD */
 
#define SET_INTERFACE_ID   0x73 /* 3490 CMD */
 
#define SENSE_COMMAND_REJECT   0x80
 
#define SENSE_INTERVENTION_REQUIRED   0x40
 
#define SENSE_BUS_OUT_CHECK   0x20
 
#define SENSE_EQUIPMENT_CHECK   0x10
 
#define SENSE_DATA_CHECK   0x08
 
#define SENSE_OVERRUN   0x04
 
#define SENSE_DEFERRED_UNIT_CHECK   0x02
 
#define SENSE_ASSIGNED_ELSEWHERE   0x01
 
#define SENSE_LOCATE_FAILURE   0x80
 
#define SENSE_DRIVE_ONLINE   0x40
 
#define SENSE_RESERVED   0x20
 
#define SENSE_RECORD_SEQUENCE_ERR   0x10
 
#define SENSE_BEGINNING_OF_TAPE   0x08
 
#define SENSE_WRITE_MODE   0x04
 
#define SENSE_WRITE_PROTECT   0x02
 
#define SENSE_NOT_CAPABLE   0x01
 
#define SENSE_CHANNEL_ADAPTER_CODE   0xE0
 
#define SENSE_CHANNEL_ADAPTER_LOC   0x10
 
#define SENSE_REPORTING_CU   0x08
 
#define SENSE_AUTOMATIC_LOADER   0x04
 
#define SENSE_TAPE_SYNC_MODE   0x02
 
#define SENSE_TAPE_POSITIONING   0x01
 

Enumerations

enum  s390_tape_type { tape_3480, tape_3490, tape_3590, tape_3592 }
 

Functions

struct tape_requesttape_std_read_block (struct tape_device *, size_t)
 
void tape_std_read_backward (struct tape_device *device, struct tape_request *request)
 
struct tape_requesttape_std_write_block (struct tape_device *, size_t)
 
void tape_std_check_locate (struct tape_device *, struct tape_request *)
 
int tape_std_assign (struct tape_device *)
 
int tape_std_unassign (struct tape_device *)
 
int tape_std_read_block_id (struct tape_device *device, __u64 *id)
 
int tape_std_display (struct tape_device *, struct display_struct *disp)
 
int tape_std_terminate_write (struct tape_device *)
 
int tape_std_mtbsf (struct tape_device *, int)
 
int tape_std_mtbsfm (struct tape_device *, int)
 
int tape_std_mtbsr (struct tape_device *, int)
 
int tape_std_mtcompression (struct tape_device *, int)
 
int tape_std_mteom (struct tape_device *, int)
 
int tape_std_mterase (struct tape_device *, int)
 
int tape_std_mtfsf (struct tape_device *, int)
 
int tape_std_mtfsfm (struct tape_device *, int)
 
int tape_std_mtfsr (struct tape_device *, int)
 
int tape_std_mtload (struct tape_device *, int)
 
int tape_std_mtnop (struct tape_device *, int)
 
int tape_std_mtoffl (struct tape_device *, int)
 
int tape_std_mtreset (struct tape_device *, int)
 
int tape_std_mtreten (struct tape_device *, int)
 
int tape_std_mtrew (struct tape_device *, int)
 
int tape_std_mtsetblk (struct tape_device *, int)
 
int tape_std_mtunload (struct tape_device *, int)
 
int tape_std_mtweof (struct tape_device *, int)
 
void tape_std_default_handler (struct tape_device *)
 
void tape_std_unexpect_uchk_handler (struct tape_device *)
 
void tape_std_irq (struct tape_device *)
 
void tape_std_process_eov (struct tape_device *)
 
void tape_std_error_recovery (struct tape_device *)
 
void tape_std_error_recovery_has_failed (struct tape_device *, int error_id)
 
void tape_std_error_recovery_succeded (struct tape_device *)
 
void tape_std_error_recovery_do_retry (struct tape_device *)
 
void tape_std_error_recovery_read_opposite (struct tape_device *)
 
void tape_std_error_recovery_HWBUG (struct tape_device *, int condno)
 

Macro Definition Documentation

#define ASSIGN   0xB7 /* 3420 REJECT,3480 OK */

Definition at line 41 of file tape_std.h.

#define BACKSPACEBLOCK   0x27 /* Back Space block */

Definition at line 25 of file tape_std.h.

#define BACKSPACEFILE   0x2f /* Back Space file */

Definition at line 26 of file tape_std.h.

#define CONTROL_ACCESS   0xE3 /* Set high speed */

Definition at line 42 of file tape_std.h.

#define DATA_SEC_ERASE   0x97 /* Data security erase */

Definition at line 27 of file tape_std.h.

#define DIAG_MODE_SET   0x0B /* 3420 NOP, 3480 REJECT */

Definition at line 43 of file tape_std.h.

#define ERASE_GAP   0x17 /* Erase Gap */

Definition at line 28 of file tape_std.h.

#define FORCE_STREAM_CNT   0xEB /* Forced streaming count # */

Definition at line 31 of file tape_std.h.

#define FORSPACEBLOCK   0x37 /* Forward space block */

Definition at line 29 of file tape_std.h.

#define FORSPACEFILE   0x3F /* Forward Space file */

Definition at line 30 of file tape_std.h.

#define INVALID_00   0x00 /* Invalid cmd */

Definition at line 24 of file tape_std.h.

#define LOAD_DISPLAY   0x9F /* 3420 REJECT,3480 OK */

Definition at line 44 of file tape_std.h.

#define LOCATE   0x4F /* 3420 REJ, 3480 NOP */

Definition at line 45 of file tape_std.h.

#define LOOP_WRITE_TO_READ   0x8B /* 3480 REJECT */

Definition at line 46 of file tape_std.h.

#define MAX_BLOCKSIZE   65535

Definition at line 19 of file tape_std.h.

#define MODE_SET_C3   0xC3 /* for 3420 */

Definition at line 48 of file tape_std.h.

#define MODE_SET_CB   0xCB /* for 3420 */

Definition at line 49 of file tape_std.h.

#define MODE_SET_D3   0xD3 /* for 3420 */

Definition at line 50 of file tape_std.h.

#define MODE_SET_DB   0xDB /* 3420 REJECT,3480 OK */

Definition at line 47 of file tape_std.h.

#define NEW_MODE_SET   0xEB /* Guess it is Mode set */

Definition at line 37 of file tape_std.h.

#define NOP   0x03 /* No operation */

Definition at line 32 of file tape_std.h.

#define PERF_SUBSYS_FUNC   0x77 /* 3490 CMD */

Definition at line 67 of file tape_std.h.

#define READ_BACKWARD   0x0C /* */

Definition at line 51 of file tape_std.h.

#define READ_BLOCK_ID   0x22 /* 3420 REJECT,3480 OK */

Definition at line 52 of file tape_std.h.

#define READ_BUFF_LOG   0x24 /* 3420 REJECT,3480 OK */

Definition at line 54 of file tape_std.h.

#define READ_BUFFER   0x12 /* 3420 REJECT,3480 OK */

Definition at line 53 of file tape_std.h.

#define READ_CONFIG_DATA   0xFA /* 3490 CMD */

Definition at line 68 of file tape_std.h.

#define READ_DEV_CHAR   0x64 /* Read device characteristics */

Definition at line 60 of file tape_std.h.

#define READ_FORWARD   0x02 /* Read forward */

Definition at line 33 of file tape_std.h.

#define READ_MESSAGE_ID   0x4E /* 3490 CMD */

Definition at line 69 of file tape_std.h.

#define READ_SUBSYS_DATA   0x3E /* 3490 CMD */

Definition at line 70 of file tape_std.h.

#define RELEASE   0xD4 /* 3420 NOP, 3480 REJECT */

Definition at line 55 of file tape_std.h.

#define REQ_TRK_IN_ERROR   0x1B /* 3420 NOP, 3480 REJECT */

Definition at line 56 of file tape_std.h.

#define RESERVE   0xF4 /* 3420 NOP, 3480 REJECT */

Definition at line 57 of file tape_std.h.

#define REWIND   0x07 /* Rewind */

Definition at line 34 of file tape_std.h.

#define REWIND_UNLOAD   0x0F /* Rewind and Unload */

Definition at line 35 of file tape_std.h.

#define SENSE   0x04 /* Sense */

Definition at line 36 of file tape_std.h.

#define SENSE_ASSIGNED_ELSEWHERE   0x01

Definition at line 80 of file tape_std.h.

#define SENSE_AUTOMATIC_LOADER   0x04

Definition at line 94 of file tape_std.h.

#define SENSE_BEGINNING_OF_TAPE   0x08

Definition at line 86 of file tape_std.h.

#define SENSE_BUS_OUT_CHECK   0x20

Definition at line 75 of file tape_std.h.

#define SENSE_CHANNEL_ADAPTER_CODE   0xE0

Definition at line 91 of file tape_std.h.

#define SENSE_CHANNEL_ADAPTER_LOC   0x10

Definition at line 92 of file tape_std.h.

#define SENSE_COMMAND_REJECT   0x80

Definition at line 73 of file tape_std.h.

#define SENSE_DATA_CHECK   0x08

Definition at line 77 of file tape_std.h.

#define SENSE_DEFERRED_UNIT_CHECK   0x02

Definition at line 79 of file tape_std.h.

#define SENSE_DRIVE_ONLINE   0x40

Definition at line 83 of file tape_std.h.

#define SENSE_EQUIPMENT_CHECK   0x10

Definition at line 76 of file tape_std.h.

#define SENSE_GROUP_ID   0x34 /* 3420 REJECT,3480 OK */

Definition at line 58 of file tape_std.h.

#define SENSE_ID   0xE4 /* 3420 REJECT,3480 OK */

Definition at line 59 of file tape_std.h.

#define SENSE_INTERVENTION_REQUIRED   0x40

Definition at line 74 of file tape_std.h.

#define SENSE_LOCATE_FAILURE   0x80

Definition at line 82 of file tape_std.h.

#define SENSE_NOT_CAPABLE   0x01

Definition at line 89 of file tape_std.h.

#define SENSE_OVERRUN   0x04

Definition at line 78 of file tape_std.h.

#define SENSE_RECORD_SEQUENCE_ERR   0x10

Definition at line 85 of file tape_std.h.

#define SENSE_REPORTING_CU   0x08

Definition at line 93 of file tape_std.h.

#define SENSE_RESERVED   0x20

Definition at line 84 of file tape_std.h.

#define SENSE_TAPE_POSITIONING   0x01

Definition at line 96 of file tape_std.h.

#define SENSE_TAPE_SYNC_MODE   0x02

Definition at line 95 of file tape_std.h.

#define SENSE_WRITE_MODE   0x04

Definition at line 87 of file tape_std.h.

#define SENSE_WRITE_PROTECT   0x02

Definition at line 88 of file tape_std.h.

#define SET_DIAGNOSE   0x4B /* 3420 NOP, 3480 REJECT */

Definition at line 61 of file tape_std.h.

#define SET_GROUP_ID   0xAF /* 3420 REJECT,3480 OK */

Definition at line 62 of file tape_std.h.

#define SET_INTERFACE_ID   0x73 /* 3490 CMD */

Definition at line 71 of file tape_std.h.

#define SET_TAPE_WRITE_IMMED   0xC3 /* for 3480 */

Definition at line 63 of file tape_std.h.

#define SUSPEND   0x5B /* 3420 REJ, 3480 NOP */

Definition at line 64 of file tape_std.h.

#define SYNC   0x43 /* Synchronize (flush buffer) */

Definition at line 65 of file tape_std.h.

#define UNASSIGN   0xC7 /* 3420 REJECT,3480 OK */

Definition at line 66 of file tape_std.h.

#define WRITE_CMD   0x01 /* Write */

Definition at line 38 of file tape_std.h.

#define WRITETAPEMARK   0x1F /* Write Tape Mark */

Definition at line 39 of file tape_std.h.

Enumeration Type Documentation

Enumerator:
tape_3480 
tape_3490 
tape_3590 
tape_3592 

Definition at line 147 of file tape_std.h.

Function Documentation

int tape_std_assign ( struct tape_device )

Definition at line 54 of file tape_std.c.

void tape_std_check_locate ( struct tape_device ,
struct tape_request  
)
void tape_std_default_handler ( struct tape_device )
int tape_std_display ( struct tape_device ,
struct display_struct disp 
)

Definition at line 129 of file tape_std.c.

void tape_std_error_recovery ( struct tape_device )
void tape_std_error_recovery_do_retry ( struct tape_device )
void tape_std_error_recovery_has_failed ( struct tape_device ,
int  error_id 
)
void tape_std_error_recovery_HWBUG ( struct tape_device ,
int  condno 
)
void tape_std_error_recovery_read_opposite ( struct tape_device )
void tape_std_error_recovery_succeded ( struct tape_device )
void tape_std_irq ( struct tape_device )
int tape_std_mtbsf ( struct tape_device ,
int   
)

Definition at line 407 of file tape_std.c.

int tape_std_mtbsfm ( struct tape_device ,
int   
)

Definition at line 383 of file tape_std.c.

int tape_std_mtbsr ( struct tape_device ,
int   
)

Definition at line 327 of file tape_std.c.

int tape_std_mtcompression ( struct tape_device ,
int   
)

Definition at line 620 of file tape_std.c.

int tape_std_mteom ( struct tape_device ,
int   
)

Definition at line 533 of file tape_std.c.

int tape_std_mterase ( struct tape_device ,
int   
)

Definition at line 586 of file tape_std.c.

int tape_std_mtfsf ( struct tape_device ,
int   
)

Definition at line 271 of file tape_std.c.

int tape_std_mtfsfm ( struct tape_device ,
int   
)

Definition at line 438 of file tape_std.c.

int tape_std_mtfsr ( struct tape_device ,
int   
)

Definition at line 295 of file tape_std.c.

int tape_std_mtload ( struct tape_device ,
int   
)

Definition at line 206 of file tape_std.c.

int tape_std_mtnop ( struct tape_device ,
int   
)

Definition at line 512 of file tape_std.c.

int tape_std_mtoffl ( struct tape_device ,
int   
)

Definition at line 491 of file tape_std.c.

int tape_std_mtreset ( struct tape_device ,
int   
)

Definition at line 259 of file tape_std.c.

int tape_std_mtreten ( struct tape_device ,
int   
)

Definition at line 563 of file tape_std.c.

int tape_std_mtrew ( struct tape_device ,
int   
)

Definition at line 468 of file tape_std.c.

int tape_std_mtsetblk ( struct tape_device ,
int   
)

Definition at line 216 of file tape_std.c.

int tape_std_mtunload ( struct tape_device ,
int   
)

Definition at line 610 of file tape_std.c.

int tape_std_mtweof ( struct tape_device ,
int   
)

Definition at line 358 of file tape_std.c.

void tape_std_process_eov ( struct tape_device )

Definition at line 712 of file tape_std.c.

void tape_std_read_backward ( struct tape_device device,
struct tape_request request 
)

Definition at line 672 of file tape_std.c.

struct tape_request* tape_std_read_block ( struct tape_device ,
size_t   
)
read

Definition at line 647 of file tape_std.c.

int tape_std_read_block_id ( struct tape_device device,
__u64 id 
)

Definition at line 159 of file tape_std.c.

int tape_std_terminate_write ( struct tape_device )

Definition at line 182 of file tape_std.c.

int tape_std_unassign ( struct tape_device )

Definition at line 97 of file tape_std.c.

void tape_std_unexpect_uchk_handler ( struct tape_device )
struct tape_request* tape_std_write_block ( struct tape_device ,
size_t   
)
read

Definition at line 691 of file tape_std.c.