|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <asm/irq.h>#include <linux/io.h>#include <linux/blkdev.h>#include <linux/completion.h>#include <linux/errno.h>#include <linux/string.h>#include <linux/wait.h>#include <linux/ioport.h>#include <linux/delay.h>#include <linux/proc_fs.h>#include <linux/interrupt.h>#include <linux/init.h>#include <linux/kernel.h>#include <linux/isapnp.h>#include <linux/spinlock.h>#include <linux/workqueue.h>#include <linux/list.h>#include <linux/slab.h>#include <scsi/scsicam.h>#include "scsi.h"#include <scsi/scsi_dbg.h>#include <scsi/scsi_host.h>#include <scsi/scsi_transport_spi.h>#include <scsi/scsi_eh.h>#include "aha152x.h"Go to the source code of this file.
Data Structures | |
| struct | aha152x_hostdata |
| struct | aha152x_scdata |
| struct | signature |
Macros | |
| #define | DPRINTK(when, msgs...) |
| #define | DO_LOCK(flags) spin_lock_irqsave(&QLOCK,flags) |
| #define | DO_UNLOCK(flags) spin_unlock_irqrestore(&QLOCK,flags) |
| #define | LEAD "(scsi%d:%d:%d) " |
| #define | WARN_LEAD KERN_WARNING LEAD |
| #define | INFO_LEAD KERN_INFO LEAD |
| #define | NOTE_LEAD KERN_NOTICE LEAD |
| #define | ERR_LEAD KERN_ERR LEAD |
| #define | DEBUG_LEAD KERN_DEBUG LEAD |
| #define | CMDINFO(cmd) |
| #define | DELAY_DEFAULT 1000 |
| #define | IRQ_MIN 9 |
| #define | IRQ_MAX 12 |
| #define | HOSTDATA(shpnt) ((struct aha152x_hostdata *) &shpnt->hostdata) |
| #define | HOSTNO ((shpnt)->host_no) |
| #define | CURRENT_SC (HOSTDATA(shpnt)->current_SC) |
| #define | DONE_SC (HOSTDATA(shpnt)->done_SC) |
| #define | ISSUE_SC (HOSTDATA(shpnt)->issue_SC) |
| #define | DISCONNECTED_SC (HOSTDATA(shpnt)->disconnected_SC) |
| #define | QLOCK (HOSTDATA(shpnt)->lock) |
| #define | QLOCKER (HOSTDATA(shpnt)->locker) |
| #define | QLOCKERL (HOSTDATA(shpnt)->lockerl) |
| #define | STATE (HOSTDATA(shpnt)->state) |
| #define | PREVSTATE (HOSTDATA(shpnt)->prevstate) |
| #define | LASTSTATE (HOSTDATA(shpnt)->laststate) |
| #define | RECONN_TARGET (HOSTDATA(shpnt)->target) |
| #define | CMD_I (HOSTDATA(shpnt)->cmd_i) |
| #define | MSGO(i) (HOSTDATA(shpnt)->msgo[i]) |
| #define | MSGO_I (HOSTDATA(shpnt)->msgo_i) |
| #define | MSGOLEN (HOSTDATA(shpnt)->msgo_len) |
| #define | ADDMSGO(x) (MSGOLEN<256 ? (void)(MSGO(MSGOLEN++)=x) : aha152x_error(shpnt,"MSGO overflow")) |
| #define | MSGI(i) (HOSTDATA(shpnt)->msgi[i]) |
| #define | MSGILEN (HOSTDATA(shpnt)->msgi_len) |
| #define | ADDMSGI(x) (MSGILEN<256 ? (void)(MSGI(MSGILEN++)=x) : aha152x_error(shpnt,"MSGI overflow")) |
| #define | DATA_LEN (HOSTDATA(shpnt)->data_len) |
| #define | SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->device->id]) |
| #define | SYNCNEG (HOSTDATA(shpnt)->syncneg[CURRENT_SC->device->id]) |
| #define | DELAY (HOSTDATA(shpnt)->delay) |
| #define | EXT_TRANS (HOSTDATA(shpnt)->ext_trans) |
| #define | TC1550 (HOSTDATA(shpnt)->tc1550) |
| #define | RECONNECT (HOSTDATA(shpnt)->reconnect) |
| #define | PARITY (HOSTDATA(shpnt)->parity) |
| #define | SYNCHRONOUS (HOSTDATA(shpnt)->synchronous) |
| #define | HOSTIOPORT0 (HOSTDATA(shpnt)->io_port0) |
| #define | HOSTIOPORT1 (HOSTDATA(shpnt)->io_port1) |
| #define | SCDATA(SCpnt) ((struct aha152x_scdata *) (SCpnt)->host_scribble) |
| #define | SCNEXT(SCpnt) SCDATA(SCpnt)->next |
| #define | SCSEM(SCpnt) SCDATA(SCpnt)->done |
| #define | SG_ADDRESS(buffer) ((char *) sg_virt((buffer))) |
| #define | SPRINTF(args...) pos += sprintf(pos, ## args) |
| #define | SPRINTF(args...) do { if(pos < buffer + length) pos += sprintf(pos, ## args); } while(0) |
Enumerations | |
| enum | { not_issued = 0x0001, selecting = 0x0002, identified = 0x0004, disconnected = 0x0008, completed = 0x0010, aborted = 0x0020, resetted = 0x0040, spiordy = 0x0080, syncneg = 0x0100, aborting = 0x0200, resetting = 0x0400, check_condition = 0x0800 } |
| enum | aha152x_state { idle =0, unknown, seldo, seldi, selto, busfree, msgo, cmd, msgi, status, datai, datao, parerr, rsti, maxstate } |
Functions | |
| MODULE_AUTHOR ("Jürgen Fischer") | |
| MODULE_DESCRIPTION (AHA152X_REVID) | |
| MODULE_LICENSE ("GPL") | |
| struct Scsi_Host * | aha152x_probe_one (struct aha152x_setup *setup) |
| void | aha152x_release (struct Scsi_Host *shpnt) |
| int | aha152x_host_reset_host (struct Scsi_Host *shpnt) |
| module_init (aha152x_init) | |
| module_exit (aha152x_exit) | |
| __setup ("aha152x=", aha152x_setup) | |
| #define CMDINFO | ( | cmd | ) |
| #define DEBUG_LEAD KERN_DEBUG LEAD |
| #define DISCONNECTED_SC (HOSTDATA(shpnt)->disconnected_SC) |
| #define HOSTDATA | ( | shpnt | ) | ((struct aha152x_hostdata *) &shpnt->hostdata) |
| #define NOTE_LEAD KERN_NOTICE LEAD |
| #define SCDATA | ( | SCpnt | ) | ((struct aha152x_scdata *) (SCpnt)->host_scribble) |
| #define SYNCNEG (HOSTDATA(shpnt)->syncneg[CURRENT_SC->device->id]) |
| #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->device->id]) |
| #define WARN_LEAD KERN_WARNING LEAD |
| anonymous enum |
| enum aha152x_state |
| __setup | ( | ) |
|
read |
| MODULE_AUTHOR | ( | "Jürgen Fischer" | ) |
| MODULE_DESCRIPTION | ( | AHA152X_REVID | ) |
| module_exit | ( | aha152x_exit | ) |
| module_init | ( | aha152x_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
1.8.2