Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
ide-tape.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/jiffies.h>
#include <linux/major.h>
#include <linux/errno.h>
#include <linux/genhd.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/ide.h>
#include <linux/completion.h>
#include <linux/bitops.h>
#include <linux/mutex.h>
#include <scsi/scsi.h>
#include <asm/byteorder.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include <asm/unaligned.h>
#include <linux/mtio.h>

Go to the source code of this file.

Data Structures

struct  ide_tape_obj
 

Macros

#define DRV_NAME   "ide-tape"
 
#define IDETAPE_VERSION   "1.20"
 
#define ide_debug_log(lvl, fmt, args...)   do {} while (0)
 
#define IDETAPE_MAX_PC_RETRIES   3
 
#define IDETAPE_FIFO_THRESHOLD   2
 
#define IDETAPE_DSC_RW_MIN   5*HZ/100 /* 50 msec */
 
#define IDETAPE_DSC_RW_MAX   40*HZ/100 /* 400 msec */
 
#define IDETAPE_DSC_RW_TIMEOUT   2*60*HZ /* 2 minutes */
 
#define IDETAPE_DSC_MA_FAST   2*HZ /* 2 seconds */
 
#define IDETAPE_DSC_MA_THRESHOLD   5*60*HZ /* 5 minutes */
 
#define IDETAPE_DSC_MA_SLOW   30*HZ /* 30 seconds */
 
#define IDETAPE_DSC_MA_TIMEOUT   2*60*60*HZ /* 2 hours */
 
#define DOOR_UNLOCKED   0
 
#define DOOR_LOCKED   1
 
#define DOOR_EXPLICITLY_LOCKED   2
 
#define IDETAPE_SPACE_OVER_FILEMARK   1
 
#define IDETAPE_SPACE_TO_EOD   3
 
#define IDETAPE_LU_LOAD_MASK   1
 
#define IDETAPE_LU_RETENSION_MASK   2
 
#define IDETAPE_LU_EOT_MASK   4
 
#define IDETAPE_BLOCK_DESCRIPTOR   0
 
#define IDETAPE_CAPABILITIES_PAGE   0x2a
 

Typedefs

typedef struct ide_tape_obj idetape_tape_t
 

Enumerations

enum  { IDETAPE_DIR_NONE = (1 << 0), IDETAPE_DIR_READ = (1 << 1), IDETAPE_DIR_WRITE = (1 << 2) }
 

Functions

 MODULE_ALIAS ("ide:*m-tape*")
 
 module_init (idetape_init)
 
 module_exit (idetape_exit)
 
 MODULE_ALIAS_CHARDEV_MAJOR (IDETAPE_MAJOR)
 
 MODULE_DESCRIPTION ("ATAPI Streaming TAPE Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DOOR_EXPLICITLY_LOCKED   2

Definition at line 121 of file ide-tape.c.

#define DOOR_LOCKED   1

Definition at line 120 of file ide-tape.c.

#define DOOR_UNLOCKED   0

Definition at line 119 of file ide-tape.c.

#define DRV_NAME   "ide-tape"

Definition at line 18 of file ide-tape.c.

#define ide_debug_log (   lvl,
  fmt,
  args... 
)    do {} while (0)

Definition at line 55 of file ide-tape.c.

#define IDETAPE_BLOCK_DESCRIPTOR   0

Definition at line 133 of file ide-tape.c.

#define IDETAPE_CAPABILITIES_PAGE   0x2a

Definition at line 134 of file ide-tape.c.

#define IDETAPE_DSC_MA_FAST   2*HZ /* 2 seconds */

Definition at line 104 of file ide-tape.c.

#define IDETAPE_DSC_MA_SLOW   30*HZ /* 30 seconds */

Definition at line 106 of file ide-tape.c.

#define IDETAPE_DSC_MA_THRESHOLD   5*60*HZ /* 5 minutes */

Definition at line 105 of file ide-tape.c.

#define IDETAPE_DSC_MA_TIMEOUT   2*60*60*HZ /* 2 hours */

Definition at line 107 of file ide-tape.c.

#define IDETAPE_DSC_RW_MAX   40*HZ/100 /* 400 msec */

Definition at line 102 of file ide-tape.c.

#define IDETAPE_DSC_RW_MIN   5*HZ/100 /* 50 msec */

Definition at line 101 of file ide-tape.c.

#define IDETAPE_DSC_RW_TIMEOUT   2*60*HZ /* 2 minutes */

Definition at line 103 of file ide-tape.c.

#define IDETAPE_FIFO_THRESHOLD   2

Definition at line 73 of file ide-tape.c.

#define IDETAPE_LU_EOT_MASK   4

Definition at line 130 of file ide-tape.c.

#define IDETAPE_LU_LOAD_MASK   1

Definition at line 128 of file ide-tape.c.

#define IDETAPE_LU_RETENSION_MASK   2

Definition at line 129 of file ide-tape.c.

#define IDETAPE_MAX_PC_RETRIES   3

Definition at line 65 of file ide-tape.c.

#define IDETAPE_SPACE_OVER_FILEMARK   1

Definition at line 124 of file ide-tape.c.

#define IDETAPE_SPACE_TO_EOD   3

Definition at line 125 of file ide-tape.c.

#define IDETAPE_VERSION   "1.20"

Definition at line 20 of file ide-tape.c.

Typedef Documentation

Enumeration Type Documentation

anonymous enum
Enumerator:
IDETAPE_DIR_NONE 
IDETAPE_DIR_READ 
IDETAPE_DIR_WRITE 

Definition at line 112 of file ide-tape.c.

Function Documentation

MODULE_ALIAS ( "ide:*m-tape*"  )
MODULE_ALIAS_CHARDEV_MAJOR ( IDETAPE_MAJOR  )
MODULE_DESCRIPTION ( "ATAPI Streaming TAPE Driver"  )
module_exit ( idetape_exit  )
module_init ( idetape_init  )
MODULE_LICENSE ( "GPL"  )