#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/major.h>
#include <linux/blkdev.h>
#include <linux/stat.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <../drivers/scsi/scsi.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi.h>
#include <scsi/scsi_ioctl.h>
#include <pcmcia/cistpl.h>
#include <pcmcia/cisreg.h>
#include <pcmcia/ds.h>
#include "nsp_cs.h"
#include "nsp_io.h"
#include "nsp_message.c"
Go to the source code of this file.
|
| MODULE_AUTHOR ("YOKOTA Hiroshi <yokota@netlab.is.tsukuba.ac.jp>") |
|
| MODULE_DESCRIPTION ("WorkBit NinjaSCSI-3 / NinjaSCSI-32Bi(16bit) PCMCIA SCSI host adapter module") |
|
| MODULE_SUPPORTED_DEVICE ("sd,sr,sg,st") |
|
| module_param (nsp_burst_mode, int, 0) |
|
| MODULE_PARM_DESC (nsp_burst_mode,"Burst transfer mode (0=io8, 1=io32, 2=mem32(default))") |
|
| module_param (free_ports, bool, 0) |
|
| MODULE_PARM_DESC (free_ports,"Release IO ports after configuration? (default: 0 (=no))") |
|
| MODULE_DEVICE_TABLE (pcmcia, nsp_cs_ids) |
|
#define nsp_dbg |
( |
|
mask, |
|
|
|
args... |
|
) |
| /* */ |
#define NSP_DEBUG_AUTOSCSI BIT(2) |
#define NSP_DEBUG_BUF_LEN 150 |
#define NSP_DEBUG_BUSFREE BIT(5) |
#define NSP_DEBUG_BUSRESET BIT(11) |
#define NSP_DEBUG_CDB_CONTENTS BIT(6) |
#define NSP_DEBUG_DATA_IO BIT(18) |
#define NSP_DEBUG_EEPROM BIT(9) |
#define NSP_DEBUG_INIT BIT(17) |
#define NSP_DEBUG_INTR BIT(3) |
#define NSP_DEBUG_MASK 0x000000 |
#define NSP_DEBUG_MSGINOCCUR BIT(8) |
#define NSP_DEBUG_MSGOUTOCCUR BIT(10) |
#define NSP_DEBUG_PROC BIT(16) |
#define NSP_DEBUG_QUEUECOMMAND BIT(0) |
#define NSP_DEBUG_REGISTER BIT(1) |
#define NSP_DEBUG_RESELECTION BIT(7) |
#define NSP_DEBUG_RESTART BIT(12) |
#define NSP_DEBUG_SGLIST BIT(4) |
#define NSP_DEBUG_SYNC BIT(13) |
#define NSP_DEBUG_TARGETFLAG BIT(15) |
#define NSP_DEBUG_WAIT BIT(14) |
#define nsp_msg |
( |
|
type, |
|
|
|
args... |
|
) |
| nsp_cs_message("", 0, (type), args) |
#define NSP_SPECIAL_PRINT_REGISTER BIT(20) |
#define SPRINTF |
( |
|
args... | ) |
|
MODULE_DESCRIPTION |
( |
"WorkBit NinjaSCSI-3 / NinjaSCSI-32Bi(16bit) PCMCIA SCSI host adapter module" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
pcmcia |
, |
|
|
nsp_cs_ids |
|
|
) |
| |
module_param |
( |
nsp_burst_mode |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
free_ports |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
nsp_burst_mode |
, |
|
|
"Burst transfer mode (0=io8, 1=io32, 2=mem32(default))" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
free_ports |
, |
|
|
"Release IO ports after configuration? (default: 0 (=no))" |
|
|
) |
| |
MODULE_SUPPORTED_DEVICE |
( |
" |
sd, |
|
|
sr |
, |
|
|
sg |
, |
|
|
st" |
|
|
) |
| |