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

Data Structures

struct  qla_boards
 
struct  qla_fw
 
struct  setup_tokens
 

Macros

#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
 

Enumerations

enum  tokens {
  TOKEN_NVRAM, TOKEN_SYNC, TOKEN_WIDE, TOKEN_PPR,
  TOKEN_VERBOSE, TOKEN_DEBUG
}
 

Functions

 __setup ("qla1280=", qla1280_setup)
 
 MODULE_DEVICE_TABLE (pci, qla1280_pci_tbl)
 
 DEFINE_MUTEX (qla1280_firmware_mutex)
 
 module_init (qla1280_init)
 
 module_exit (qla1280_exit)
 
 MODULE_AUTHOR ("Qlogic & Jes Sorensen")
 
 MODULE_DESCRIPTION ("Qlogic ISP SCSI (qla1x80/qla1x160) driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE ("qlogic/1040.bin")
 
 MODULE_FIRMWARE ("qlogic/1280.bin")
 
 MODULE_FIRMWARE ("qlogic/12160.bin")
 
 MODULE_VERSION (QLA1280_VERSION)
 

Variables

struct qla_fw qla1280_fw_tbl [QL_NUM_FW_IMAGES]
 

Macro Definition Documentation

#define CMD_CDBLEN (   Cmnd)    Cmnd->cmd_len

Definition at line 522 of file qla1280.c.

#define CMD_CDBP (   Cmnd)    Cmnd->cmnd

Definition at line 523 of file qla1280.c.

#define CMD_HANDLE (   Cmnd)    Cmnd->host_scribble

Definition at line 527 of file qla1280.c.

#define CMD_HOST (   Cmnd)    Cmnd->device->host

Definition at line 530 of file qla1280.c.

#define CMD_REQUEST (   Cmnd)    Cmnd->request->cmd

Definition at line 528 of file qla1280.c.

#define CMD_RESULT (   Cmnd)    Cmnd->result

Definition at line 526 of file qla1280.c.

#define CMD_SNSLEN (   Cmnd)    SCSI_SENSE_BUFFERSIZE

Definition at line 525 of file qla1280.c.

#define CMD_SNSP (   Cmnd)    Cmnd->sense_buffer

Definition at line 524 of file qla1280.c.

#define CMD_SP (   Cmnd)    &Cmnd->SCp

Definition at line 521 of file qla1280.c.

#define DEBUG_PRINT_NVRAM   0

Definition at line 379 of file qla1280.c.

#define DEBUG_QLA1280   0

Definition at line 380 of file qla1280.c.

#define DEBUG_QLA1280_INTR   0

Definition at line 378 of file qla1280.c.

#define dprintk (   level,
  format,
  a... 
)    do{}while(0)

Definition at line 602 of file qla1280.c.

#define DUMP_IT_BACK   0 /* for debug of RISC loading */

Definition at line 1747 of file qla1280.c.

#define ENTER (   x)    dprintk(3, "qla1280 : Entering %s()\n", x);

Definition at line 607 of file qla1280.c.

#define ENTER_INTR (   x)    dprintk(4, "qla1280 : Entering %s()\n", x);

Definition at line 609 of file qla1280.c.

#define IS_ISP1040 (   ha)    (ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP1020)

Definition at line 414 of file qla1280.c.

#define IS_ISP1x160 (   ha)
Value:
(ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP10160 || \
ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP12160)

Definition at line 417 of file qla1280.c.

#define IS_ISP1x40 (   ha)
Value:
(ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP1020 || \
ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP1240)

Definition at line 415 of file qla1280.c.

#define LEAVE (   x)    dprintk(3, "qla1280 : Leaving %s()\n", x);

Definition at line 608 of file qla1280.c.

#define LEAVE_INTR (   x)    dprintk(4, "qla1280 : Leaving %s()\n", x);

Definition at line 610 of file qla1280.c.

#define MEMORY_MAPPED_IO   1

Definition at line 388 of file qla1280.c.

#define NVRAM_DELAY ( )    udelay(500) /* 2 microseconds */

Definition at line 407 of file qla1280.c.

#define pci_dma_hi32 (   a)    0

Definition at line 403 of file qla1280.c.

#define pci_dma_lo32 (   a)    (a & 0xffffffff)

Definition at line 405 of file qla1280.c.

#define ql_debug_level   0

Definition at line 601 of file qla1280.c.

#define QL_NUM_FW_IMAGES   3

Definition at line 571 of file qla1280.c.

#define qla1280_dump_buffer (   a,
  b,
  c 
)    do{}while(0)

Definition at line 603 of file qla1280.c.

#define qla1280_print_scsi_cmd (   a,
  b 
)    do{}while(0)

Definition at line 604 of file qla1280.c.

#define QLA1280_VERSION   "3.27.1"

Definition at line 20 of file qla1280.c.

#define SCSI_BUS_32 (   Cmnd)    Cmnd->device->channel

Definition at line 531 of file qla1280.c.

#define SCSI_LUN_32 (   Cmnd)    Cmnd->device->lun

Definition at line 533 of file qla1280.c.

#define SCSI_PHASE_INVALID   0x87FF

Definition at line 3945 of file qla1280.c.

#define SCSI_TCN_32 (   Cmnd)    Cmnd->device->id

Definition at line 532 of file qla1280.c.

#define SET_SXP_BANK   0x0100

Definition at line 3944 of file qla1280.c.

Enumeration Type Documentation

enum tokens
Enumerator:
TOKEN_NVRAM 
TOKEN_SYNC 
TOKEN_WIDE 
TOKEN_PPR 
TOKEN_VERBOSE 
TOKEN_DEBUG 

Definition at line 4098 of file qla1280.c.

Function Documentation

__setup ( )
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  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( QLA1280_VERSION  )

Variable Documentation

struct qla_fw qla1280_fw_tbl[QL_NUM_FW_IMAGES]
Initial value:
= {
{"qlogic/1040.bin", NULL},
{"qlogic/1280.bin", NULL},
{"qlogic/12160.bin", NULL},
}

Definition at line 573 of file qla1280.c.