|
#define | DC395X_NAME "dc395x" |
|
#define | DC395X_BANNER "Tekram DC395(U/UW/F), DC315(U) - ASIC TRM-S1040" |
|
#define | DC395X_VERSION "v2.05, 2004/03/08" |
|
#define | DBG_KG 0x0001 |
|
#define | DBG_0 0x0002 |
|
#define | DBG_1 0x0004 |
|
#define | DBG_SG 0x0020 |
|
#define | DBG_FIFO 0x0040 |
|
#define | DBG_PIO 0x0080 |
|
#define | dprintkl(level, format, arg...) printk(level DC395X_NAME ": " format , ## arg) |
|
#define | dprintkdbg(type, format, arg...) do {} while (0) |
|
#define | debug_enabled(type) (0) |
|
#define | PCI_VENDOR_ID_TEKRAM 0x1DE1 /* Vendor ID */ |
|
#define | PCI_DEVICE_ID_TEKRAM_TRMS1040 0x0391 /* Device ID */ |
|
#define | DC395x_LOCK_IO(dev, flags) spin_lock_irqsave(((struct Scsi_Host *)dev)->host_lock, flags) |
|
#define | DC395x_UNLOCK_IO(dev, flags) spin_unlock_irqrestore(((struct Scsi_Host *)dev)->host_lock, flags) |
|
#define | DC395x_read8(acb, address) (u8)(inb(acb->io_port_base + (address))) |
|
#define | DC395x_read16(acb, address) (u16)(inw(acb->io_port_base + (address))) |
|
#define | DC395x_read32(acb, address) (u32)(inl(acb->io_port_base + (address))) |
|
#define | DC395x_write8(acb, address, value) outb((value), acb->io_port_base + (address)) |
|
#define | DC395x_write16(acb, address, value) outw((value), acb->io_port_base + (address)) |
|
#define | DC395x_write32(acb, address, value) outl((value), acb->io_port_base + (address)) |
|
#define | RES_TARGET 0x000000FF /* Target State */ |
|
#define | RES_TARGET_LNX STATUS_MASK /* Only official ... */ |
|
#define | RES_ENDMSG 0x0000FF00 /* End Message */ |
|
#define | RES_DID 0x00FF0000 /* DID_ codes */ |
|
#define | RES_DRV 0xFF000000 /* DRIVER_ codes */ |
|
#define | MK_RES(drv, did, msg, tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt)) |
|
#define | MK_RES_LNX(drv, did, msg, tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt)<<1) |
|
#define | SET_RES_TARGET(who, tgt) { who &= ~RES_TARGET; who |= (int)(tgt); } |
|
#define | SET_RES_TARGET_LNX(who, tgt) { who &= ~RES_TARGET_LNX; who |= (int)(tgt) << 1; } |
|
#define | SET_RES_MSG(who, msg) { who &= ~RES_ENDMSG; who |= (int)(msg) << 8; } |
|
#define | SET_RES_DID(who, did) { who &= ~RES_DID; who |= (int)(did) << 16; } |
|
#define | SET_RES_DRV(who, drv) { who &= ~RES_DRV; who |= (int)(drv) << 24; } |
|
#define | TAG_NONE 255 |
|
#define | SEGMENTX_LEN (sizeof(struct SGentry)*DC395x_MAX_SG_LISTENTRY) |
|
#define | CFG_ADAPTER_ID 0 |
|
#define | CFG_MAX_SPEED 1 |
|
#define | CFG_DEV_MODE 2 |
|
#define | CFG_ADAPTER_MODE 3 |
|
#define | CFG_TAGS 4 |
|
#define | CFG_RESET_DELAY 5 |
|
#define | CFG_NUM 6 /* number of configuration items */ |
|
#define | CFG_PARAM_UNSET -1 |
|
#define | DC395x_ENABLE_MSGOUT |
|
#define | DC395x_LASTPIO 4 |
|
#define | SPRINTF(args...) pos += sprintf(pos, args) |
|
#define | YESNO(YN) |
|
|
| module_param_named (safe, use_safe_settings, bool, 0) |
|
| MODULE_PARM_DESC (safe,"Use safe and slow settings only. Default: false") |
|
| module_param_named (adapter_id, cfg_data[CFG_ADAPTER_ID].value, int, 0) |
|
| MODULE_PARM_DESC (adapter_id,"Adapter SCSI ID. Default 7 (0-15)") |
|
| module_param_named (max_speed, cfg_data[CFG_MAX_SPEED].value, int, 0) |
|
| MODULE_PARM_DESC (max_speed,"Maximum bus speed. Default 1 (0-7) Speeds: 0=20, 1=13.3, 2=10, 3=8, 4=6.7, 5=5.8, 6=5, 7=4 Mhz") |
|
| module_param_named (dev_mode, cfg_data[CFG_DEV_MODE].value, int, 0) |
|
| MODULE_PARM_DESC (dev_mode,"Device mode.") |
|
| module_param_named (adapter_mode, cfg_data[CFG_ADAPTER_MODE].value, int, 0) |
|
| MODULE_PARM_DESC (adapter_mode,"Adapter mode.") |
|
| module_param_named (tags, cfg_data[CFG_TAGS].value, int, 0) |
|
| MODULE_PARM_DESC (tags,"Number of tags (1<<x). Default 3 (0-5)") |
|
| module_param_named (reset_delay, cfg_data[CFG_RESET_DELAY].value, int, 0) |
|
| MODULE_PARM_DESC (reset_delay,"Reset delay in seconds. Default 1 (0-180)") |
|
| MODULE_DEVICE_TABLE (pci, dc395x_pci_table) |
|
| module_init (dc395x_module_init) |
|
| module_exit (dc395x_module_exit) |
|
| MODULE_AUTHOR ("C.L. Huang / Erich Chen / Kurt Garloff") |
|
| MODULE_DESCRIPTION ("SCSI host adapter driver for Tekram TRM-S1040 based adapters: Tekram DC395 and DC315 series") |
|
| MODULE_LICENSE ("GPL") |
|