#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/ioport.h>
#include <linux/major.h>
#include <linux/blkdev.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/ctype.h>
#include <linux/dma-mapping.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_ioctl.h>
#include "nsp32.h"
#include "nsp32_io.h"
Go to the source code of this file.
|
| module_param (trans_mode, int, 0) |
|
| MODULE_PARM_DESC (trans_mode,"transfer mode (0: BIOS(default) 1: Async 2: Ultra20M") |
|
| module_param (auto_param, bool, 0) |
|
| MODULE_PARM_DESC (auto_param,"AutoParameter mode (0: ON(default) 1: OFF)") |
|
| module_param (disc_priv, bool, 0) |
|
| MODULE_PARM_DESC (disc_priv,"disconnection privilege mode (0: ON 1: OFF(default))") |
|
| MODULE_AUTHOR ("YOKOTA Hiroshi <yokota@netlab.is.tsukuba.ac.jp>, GOTO Masanori <gotom@debian.or.jp>") |
|
| MODULE_DESCRIPTION ("Workbit NinjaSCSI-32Bi/UDE CardBus/PCI SCSI host bus adapter module") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_DEVICE_TABLE (pci, nsp32_pci_table) |
|
| module_init (init_nsp32) |
|
| module_exit (exit_nsp32) |
|
#define nsp32_dbg |
( |
|
mask, |
|
|
|
args... |
|
) |
| /* */ |
#define NSP32_DEBUG_AUTOSCSI BIT(2) |
#define NSP32_DEBUG_BUF_LEN 100 |
#define NSP32_DEBUG_BUSFREE BIT(5) |
#define NSP32_DEBUG_BUSRESET BIT(11) |
#define NSP32_DEBUG_CDB_CONTENTS BIT(6) |
#define NSP32_DEBUG_EEPROM BIT(9) |
#define NSP32_DEBUG_INIT BIT(17) |
#define NSP32_DEBUG_INTR BIT(3) |
#define NSP32_DEBUG_MASK 0x000000 |
#define NSP32_DEBUG_MSGINOCCUR BIT(8) |
#define NSP32_DEBUG_MSGOUTOCCUR BIT(10) |
#define NSP32_DEBUG_PROC BIT(16) |
#define NSP32_DEBUG_QUEUECOMMAND BIT(0) |
#define NSP32_DEBUG_REGISTER BIT(1) |
#define NSP32_DEBUG_RESELECTION BIT(7) |
#define NSP32_DEBUG_RESTART BIT(12) |
#define NSP32_DEBUG_SGLIST BIT(4) |
#define NSP32_DEBUG_SYNC BIT(13) |
#define NSP32_DEBUG_TARGETFLAG BIT(15) |
#define NSP32_DEBUG_WAIT BIT(14) |
#define nsp32_msg |
( |
|
type, |
|
|
|
args... |
|
) |
| nsp32_message ("", 0, (type), args) |
#define NSP32_SPECIAL_PRINT_REGISTER BIT(20) |
#define show_autophase |
( |
|
arg | ) |
/* */ |
#define show_busphase |
( |
|
arg | ) |
/* */ |
#define show_command |
( |
|
arg | ) |
/* */ |
#define SPRINTF |
( |
|
args... | ) |
|
MODULE_DESCRIPTION |
( |
"Workbit NinjaSCSI-32Bi/UDE CardBus/PCI SCSI host bus adapter module" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
nsp32_pci_table |
|
|
) |
| |
module_exit |
( |
exit_nsp32 |
| ) |
|
module_init |
( |
init_nsp32 |
| ) |
|
module_param |
( |
trans_mode |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
auto_param |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
disc_priv |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
trans_mode |
| ) |
|
MODULE_PARM_DESC |
( |
auto_param |
, |
|
|
"AutoParameter mode (0: ON(default) 1: OFF)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
disc_priv |
, |
|
|
"disconnection privilege mode (0: ON 1: OFF(default))" |
|
|
) |
| |