Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
nsp32.c File Reference
#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.

Macros

#define ASYNC_MODE   1
 
#define ULTRA20M_MODE   2
 
#define NSP32_DEBUG_MASK   0x000000
 
#define nsp32_msg(type, args...)   nsp32_message ("", 0, (type), args)
 
#define nsp32_dbg(mask, args...)   /* */
 
#define NSP32_DEBUG_QUEUECOMMAND   BIT(0)
 
#define NSP32_DEBUG_REGISTER   BIT(1)
 
#define NSP32_DEBUG_AUTOSCSI   BIT(2)
 
#define NSP32_DEBUG_INTR   BIT(3)
 
#define NSP32_DEBUG_SGLIST   BIT(4)
 
#define NSP32_DEBUG_BUSFREE   BIT(5)
 
#define NSP32_DEBUG_CDB_CONTENTS   BIT(6)
 
#define NSP32_DEBUG_RESELECTION   BIT(7)
 
#define NSP32_DEBUG_MSGINOCCUR   BIT(8)
 
#define NSP32_DEBUG_EEPROM   BIT(9)
 
#define NSP32_DEBUG_MSGOUTOCCUR   BIT(10)
 
#define NSP32_DEBUG_BUSRESET   BIT(11)
 
#define NSP32_DEBUG_RESTART   BIT(12)
 
#define NSP32_DEBUG_SYNC   BIT(13)
 
#define NSP32_DEBUG_WAIT   BIT(14)
 
#define NSP32_DEBUG_TARGETFLAG   BIT(15)
 
#define NSP32_DEBUG_PROC   BIT(16)
 
#define NSP32_DEBUG_INIT   BIT(17)
 
#define NSP32_SPECIAL_PRINT_REGISTER   BIT(20)
 
#define NSP32_DEBUG_BUF_LEN   100
 
#define show_command(arg)   /* */
 
#define show_busphase(arg)   /* */
 
#define show_autophase(arg)   /* */
 
#define SPRINTF(args...)
 

Functions

 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)
 

Macro Definition Documentation

#define ASYNC_MODE   1

Definition at line 58 of file nsp32.c.

#define nsp32_dbg (   mask,
  args... 
)    /* */

Definition at line 294 of file nsp32.c.

#define NSP32_DEBUG_AUTOSCSI   BIT(2)

Definition at line 305 of file nsp32.c.

#define NSP32_DEBUG_BUF_LEN   100

Definition at line 323 of file nsp32.c.

#define NSP32_DEBUG_BUSFREE   BIT(5)

Definition at line 308 of file nsp32.c.

#define NSP32_DEBUG_BUSRESET   BIT(11)

Definition at line 314 of file nsp32.c.

#define NSP32_DEBUG_CDB_CONTENTS   BIT(6)

Definition at line 309 of file nsp32.c.

#define NSP32_DEBUG_EEPROM   BIT(9)

Definition at line 312 of file nsp32.c.

#define NSP32_DEBUG_INIT   BIT(17)

Definition at line 320 of file nsp32.c.

#define NSP32_DEBUG_INTR   BIT(3)

Definition at line 306 of file nsp32.c.

#define NSP32_DEBUG_MASK   0x000000

Definition at line 292 of file nsp32.c.

#define NSP32_DEBUG_MSGINOCCUR   BIT(8)

Definition at line 311 of file nsp32.c.

#define NSP32_DEBUG_MSGOUTOCCUR   BIT(10)

Definition at line 313 of file nsp32.c.

#define NSP32_DEBUG_PROC   BIT(16)

Definition at line 319 of file nsp32.c.

#define NSP32_DEBUG_QUEUECOMMAND   BIT(0)

Definition at line 303 of file nsp32.c.

#define NSP32_DEBUG_REGISTER   BIT(1)

Definition at line 304 of file nsp32.c.

#define NSP32_DEBUG_RESELECTION   BIT(7)

Definition at line 310 of file nsp32.c.

#define NSP32_DEBUG_RESTART   BIT(12)

Definition at line 315 of file nsp32.c.

#define NSP32_DEBUG_SGLIST   BIT(4)

Definition at line 307 of file nsp32.c.

#define NSP32_DEBUG_SYNC   BIT(13)

Definition at line 316 of file nsp32.c.

#define NSP32_DEBUG_TARGETFLAG   BIT(15)

Definition at line 318 of file nsp32.c.

#define NSP32_DEBUG_WAIT   BIT(14)

Definition at line 317 of file nsp32.c.

#define nsp32_msg (   type,
  args... 
)    nsp32_message ("", 0, (type), args)

Definition at line 293 of file nsp32.c.

#define NSP32_SPECIAL_PRINT_REGISTER   BIT(20)

Definition at line 321 of file nsp32.c.

#define show_autophase (   arg)    /* */

Definition at line 362 of file nsp32.c.

#define show_busphase (   arg)    /* */

Definition at line 361 of file nsp32.c.

#define show_command (   arg)    /* */

Definition at line 360 of file nsp32.c.

#define SPRINTF (   args...)
Value:
do { \
if(length > (pos - buffer)) { \
pos += snprintf(pos, length - (pos - buffer) + 1, ## args); \
nsp32_dbg(NSP32_DEBUG_PROC, "buffer=0x%p pos=0x%p length=%d %d\n", buffer, pos, length, length - (pos - buffer));\
} \
} while(0)

Definition at line 1445 of file nsp32.c.

#define ULTRA20M_MODE   2

Definition at line 59 of file nsp32.c.

Function Documentation

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_DEVICE_TABLE ( pci  ,
nsp32_pci_table   
)
module_exit ( exit_nsp32  )
module_init ( init_nsp32  )
MODULE_LICENSE ( "GPL"  )
module_param ( trans_mode  ,
int  ,
 
)
module_param ( auto_param  ,
bool  ,
 
)
module_param ( disc_priv  ,
bool  ,
 
)
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))"   
)