#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/pci.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
#include <linux/pci_ids.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/dma-mapping.h>
#include <linux/firmware.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/byteorder.h>
#include <asm/processor.h>
#include <asm/types.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_tcq.h>
#include "qla1280.h"
Go to the source code of this file.
|
| #define | QLA1280_VERSION "3.27.1" |
| |
| #define | DEBUG_QLA1280_INTR 0 |
| |
| #define | DEBUG_PRINT_NVRAM 0 |
| |
| #define | DEBUG_QLA1280 0 |
| |
| #define | MEMORY_MAPPED_IO 1 |
| |
| #define | pci_dma_hi32(a) 0 |
| |
| #define | pci_dma_lo32(a) (a & 0xffffffff) |
| |
| #define | NVRAM_DELAY() udelay(500) /* 2 microseconds */ |
| |
| #define | IS_ISP1040(ha) (ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP1020) |
| |
| #define | IS_ISP1x40(ha) |
| |
| #define | IS_ISP1x160(ha) |
| |
| #define | CMD_SP(Cmnd) &Cmnd->SCp |
| |
| #define | CMD_CDBLEN(Cmnd) Cmnd->cmd_len |
| |
| #define | CMD_CDBP(Cmnd) Cmnd->cmnd |
| |
| #define | CMD_SNSP(Cmnd) Cmnd->sense_buffer |
| |
| #define | CMD_SNSLEN(Cmnd) SCSI_SENSE_BUFFERSIZE |
| |
| #define | CMD_RESULT(Cmnd) Cmnd->result |
| |
| #define | CMD_HANDLE(Cmnd) Cmnd->host_scribble |
| |
| #define | CMD_REQUEST(Cmnd) Cmnd->request->cmd |
| |
| #define | CMD_HOST(Cmnd) Cmnd->device->host |
| |
| #define | SCSI_BUS_32(Cmnd) Cmnd->device->channel |
| |
| #define | SCSI_TCN_32(Cmnd) Cmnd->device->id |
| |
| #define | SCSI_LUN_32(Cmnd) Cmnd->device->lun |
| |
| #define | QL_NUM_FW_IMAGES 3 |
| |
| #define | ql_debug_level 0 |
| |
| #define | dprintk(level, format, a...) do{}while(0) |
| |
| #define | qla1280_dump_buffer(a, b, c) do{}while(0) |
| |
| #define | qla1280_print_scsi_cmd(a, b) do{}while(0) |
| |
| #define | ENTER(x) dprintk(3, "qla1280 : Entering %s()\n", x); |
| |
| #define | LEAVE(x) dprintk(3, "qla1280 : Leaving %s()\n", x); |
| |
| #define | ENTER_INTR(x) dprintk(4, "qla1280 : Entering %s()\n", x); |
| |
| #define | LEAVE_INTR(x) dprintk(4, "qla1280 : Leaving %s()\n", x); |
| |
| #define | DUMP_IT_BACK 0 /* for debug of RISC loading */ |
| |
| #define | SET_SXP_BANK 0x0100 |
| |
| #define | SCSI_PHASE_INVALID 0x87FF |
| |
| #define CMD_CDBLEN |
( |
|
Cmnd | ) |
Cmnd->cmd_len |
| #define CMD_CDBP |
( |
|
Cmnd | ) |
Cmnd->cmnd |
| #define CMD_HANDLE |
( |
|
Cmnd | ) |
Cmnd->host_scribble |
| #define CMD_RESULT |
( |
|
Cmnd | ) |
Cmnd->result |
| #define CMD_SNSP |
( |
|
Cmnd | ) |
Cmnd->sense_buffer |
| #define CMD_SP |
( |
|
Cmnd | ) |
&Cmnd->SCp |
| #define DEBUG_PRINT_NVRAM 0 |
| #define DEBUG_QLA1280_INTR 0 |
| #define DUMP_IT_BACK 0 /* for debug of RISC loading */ |
| #define ENTER |
( |
|
x | ) |
dprintk(3, "qla1280 : Entering %s()\n", x); |
| #define ENTER_INTR |
( |
|
x | ) |
dprintk(4, "qla1280 : Entering %s()\n", x); |
| #define IS_ISP1x160 |
( |
|
ha | ) |
|
| #define LEAVE |
( |
|
x | ) |
dprintk(3, "qla1280 : Leaving %s()\n", x); |
| #define LEAVE_INTR |
( |
|
x | ) |
dprintk(4, "qla1280 : Leaving %s()\n", x); |
| #define MEMORY_MAPPED_IO 1 |
| #define pci_dma_hi32 |
( |
|
a | ) |
0 |
| #define pci_dma_lo32 |
( |
|
a | ) |
(a & 0xffffffff) |
| #define QL_NUM_FW_IMAGES 3 |
| #define qla1280_dump_buffer |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| do{}while(0) |
| #define qla1280_print_scsi_cmd |
( |
|
a, |
|
|
|
b |
|
) |
| do{}while(0) |
| #define QLA1280_VERSION "3.27.1" |
| #define SCSI_LUN_32 |
( |
|
Cmnd | ) |
Cmnd->device->lun |
| #define SCSI_PHASE_INVALID 0x87FF |
| #define SCSI_TCN_32 |
( |
|
Cmnd | ) |
Cmnd->device->id |
| #define SET_SXP_BANK 0x0100 |
- Enumerator:
| TOKEN_NVRAM |
|
| TOKEN_SYNC |
|
| TOKEN_WIDE |
|
| TOKEN_PPR |
|
| TOKEN_VERBOSE |
|
| TOKEN_DEBUG |
|
Definition at line 4098 of file qla1280.c.
| DEFINE_MUTEX |
( |
qla1280_firmware_mutex |
| ) |
|
| MODULE_AUTHOR |
( |
"Qlogic & Jes Sorensen" |
| ) |
|
| MODULE_DESCRIPTION |
( |
"Qlogic ISP SCSI (qla1x80/qla1x160) driver" |
| ) |
|
| MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
qla1280_pci_tbl |
|
|
) |
| |
| module_exit |
( |
qla1280_exit |
| ) |
|
| MODULE_FIRMWARE |
( |
"qlogic/1040.bin" |
| ) |
|
| MODULE_FIRMWARE |
( |
"qlogic/1280.bin" |
| ) |
|
| MODULE_FIRMWARE |
( |
"qlogic/12160.bin" |
| ) |
|
| module_init |
( |
qla1280_init |
| ) |
|
Initial value:= {
{
"qlogic/1040.bin",
NULL},
{
"qlogic/1280.bin",
NULL},
{
"qlogic/12160.bin",
NULL},
}
Definition at line 573 of file qla1280.c.