#include <linux/module.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/proc_fs.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/mtio.h>
#include <linux/ioctl.h>
#include <linux/fcntl.h>
#include <linux/spinlock.h>
#include <linux/vmalloc.h>
#include <linux/blkdev.h>
#include <linux/moduleparam.h>
#include <linux/delay.h>
#include <linux/jiffies.h>
#include <linux/mutex.h>
#include <asm/uaccess.h>
#include <asm/dma.h>
#include <scsi/scsi.h>
#include <scsi/scsi_dbg.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_driver.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_ioctl.h>
#include "st.h"
#include "osst.h"
#include "osst_options.h"
#include "osst_detect.h"
Go to the source code of this file.
|
| __setup ("osst=", osst_setup) |
|
| DEVICE_ATTR (ADR_rev, S_IRUGO, osst_adr_rev_show, NULL) |
|
| DEVICE_ATTR (media_version, S_IRUGO, osst_linux_media_version_show, NULL) |
|
| DEVICE_ATTR (capacity, S_IRUGO, osst_capacity_show, NULL) |
|
| DEVICE_ATTR (BOT_frame, S_IRUGO, osst_first_data_ppos_show, NULL) |
|
| DEVICE_ATTR (EOD_frame, S_IRUGO, osst_eod_frame_ppos_show, NULL) |
|
| DEVICE_ATTR (file_count, S_IRUGO, osst_filemark_cnt_show, NULL) |
|
| module_init (init_osst) |
|
| module_exit (exit_osst) |
|
#define OSST_FRAME_SHIFT 6 |
#define OSST_FW_NEED_POLL_MAX 10704 /*(108D)*/ |
#define OSST_FW_NEED_POLL_MIN 10601 /*(107A)*/ |
#define OSST_LONG_TIMEOUT (1800 * HZ) |
#define OSST_POLL_PER_SEC 10 |
#define OSST_SECTOR_MASK 0x03F |
#define OSST_SECTOR_SHIFT 9 |
#define OSST_TIMEOUT (200 * HZ) |
#define OSST_WAIT_LONG_WRITE_COMPLETE (HZ / 2) |
#define OSST_WAIT_POSITION_COMPLETE (HZ > 200 ? HZ / 200 : 1) |
#define OSST_WAIT_WRITE_COMPLETE (HZ / 12) |
#define SET_DENS_AND_BLK 0x10001 |
#define TAPE_REWIND |
( |
|
x | ) |
((iminor(x) & 0x80) == 0) |
DEVICE_ATTR |
( |
ADR_rev |
, |
|
|
S_IRUGO |
, |
|
|
osst_adr_rev_show |
, |
|
|
NULL |
|
|
) |
| |
DEVICE_ATTR |
( |
media_version |
, |
|
|
S_IRUGO |
, |
|
|
osst_linux_media_version_show |
, |
|
|
NULL |
|
|
) |
| |
DEVICE_ATTR |
( |
BOT_frame |
, |
|
|
S_IRUGO |
, |
|
|
osst_first_data_ppos_show |
, |
|
|
NULL |
|
|
) |
| |
DEVICE_ATTR |
( |
EOD_frame |
, |
|
|
S_IRUGO |
, |
|
|
osst_eod_frame_ppos_show |
, |
|
|
NULL |
|
|
) |
| |
module_exit |
( |
exit_osst |
| ) |
|
module_init |
( |
init_osst |
| ) |
|