Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
u14-34f.c File Reference
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <asm/io.h>
#include <asm/byteorder.h>
#include <linux/proc_fs.h>
#include <linux/blkdev.h>
#include <linux/interrupt.h>
#include <linux/stat.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/ctype.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <asm/dma.h>
#include <asm/irq.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 <scsi/scsicam.h>
#include "scsi_module.c"

Go to the source code of this file.

Data Structures

struct  sg_list
 
struct  mscp
 
struct  hostdata
 

Macros

#define PRODUCT_ID1   0x56
 
#define PRODUCT_ID2   0x40 /* NOTE: Only upper nibble is used */
 
#define ISA   0
 
#define ESA   1
 
#define OP_HOST_ADAPTER   0x1
 
#define OP_SCSI   0x2
 
#define OP_RESET   0x4
 
#define DTD_SCSI   0x0
 
#define DTD_IN   0x1
 
#define DTD_OUT   0x2
 
#define DTD_NONE   0x3
 
#define HA_CMD_INQUIRY   0x1
 
#define HA_CMD_SELF_DIAG   0x2
 
#define HA_CMD_READ_BUFF   0x3
 
#define HA_CMD_WRITE_BUFF   0x4
 
#define MAX_ISA   3
 
#define MAX_VESA   1
 
#define MAX_EISA   0
 
#define MAX_PCI   0
 
#define MAX_BOARDS   (MAX_ISA + MAX_VESA + MAX_EISA + MAX_PCI)
 
#define MAX_CHANNEL   1
 
#define MAX_LUN   8
 
#define MAX_TARGET   8
 
#define MAX_MAILBOXES   16
 
#define MAX_SGLIST   32
 
#define MAX_SAFE_SGLIST   16
 
#define MAX_INTERNAL_RETRIES   64
 
#define MAX_CMD_PER_LUN   2
 
#define MAX_TAGGED_CMD_PER_LUN   (MAX_MAILBOXES - MAX_CMD_PER_LUN)
 
#define SKIP   ULONG_MAX
 
#define FALSE   0
 
#define TRUE   1
 
#define FREE   0
 
#define IN_USE   1
 
#define LOCKED   2
 
#define IN_RESET   3
 
#define IGNORE   4
 
#define READY   5
 
#define ABORTING   6
 
#define NO_DMA   0xff
 
#define MAXLOOP   10000
 
#define TAG_DISABLED   0
 
#define TAG_SIMPLE   1
 
#define TAG_ORDERED   2
 
#define REG_LCL_MASK   0
 
#define REG_LCL_INTR   1
 
#define REG_SYS_MASK   2
 
#define REG_SYS_INTR   3
 
#define REG_PRODUCT_ID1   4
 
#define REG_PRODUCT_ID2   5
 
#define REG_CONFIG1   6
 
#define REG_CONFIG2   7
 
#define REG_OGM   8
 
#define REG_ICM   12
 
#define REGION_SIZE   13UL
 
#define BSY_ASSERTED   0x01
 
#define IRQ_ASSERTED   0x01
 
#define CMD_RESET   0xc0
 
#define CMD_OGM_INTR   0x01
 
#define CMD_CLR_INTR   0x01
 
#define CMD_ENA_INTR   0x81
 
#define ASOK   0x00
 
#define ASST   0x91
 
#define YESNO(a)   ((a) ? 'y' : 'n')
 
#define TLDEV(type)   ((type) == TYPE_DISK || (type) == TYPE_ROM)
 
#define PACKED   __attribute__((packed))
 
#define CP_TAIL_SIZE   (sizeof(struct sglist *) + sizeof(dma_addr_t))
 
#define HD(board)   ((struct hostdata *) &sh[board]->hostdata)
 
#define BN(board)   (HD(board)->board_name)
 
#define H2DEV(x)   cpu_to_le32(x)
 
#define DEV2H(x)   le32_to_cpu(x)
 
#define MAX_INT_PARAM   10
 
#define MAX_BOOT_OPTIONS_SIZE   256
 

Functions

 __setup ("u14-34f=", option_setup)
 

Macro Definition Documentation

#define ABORTING   6

Definition at line 512 of file u14-34f.c.

#define ASOK   0x00

Definition at line 536 of file u14-34f.c.

#define ASST   0x91

Definition at line 537 of file u14-34f.c.

#define BN (   board)    (HD(board)->board_name)

Definition at line 631 of file u14-34f.c.

#define BSY_ASSERTED   0x01

Definition at line 530 of file u14-34f.c.

#define CMD_CLR_INTR   0x01

Definition at line 534 of file u14-34f.c.

#define CMD_ENA_INTR   0x81

Definition at line 535 of file u14-34f.c.

#define CMD_OGM_INTR   0x01

Definition at line 533 of file u14-34f.c.

#define CMD_RESET   0xc0

Definition at line 532 of file u14-34f.c.

#define CP_TAIL_SIZE   (sizeof(struct sglist *) + sizeof(dma_addr_t))

Definition at line 588 of file u14-34f.c.

#define DEV2H (   x)    le32_to_cpu(x)

Definition at line 635 of file u14-34f.c.

#define DTD_IN   0x1

Definition at line 472 of file u14-34f.c.

#define DTD_NONE   0x3

Definition at line 474 of file u14-34f.c.

#define DTD_OUT   0x2

Definition at line 473 of file u14-34f.c.

#define DTD_SCSI   0x0

Definition at line 471 of file u14-34f.c.

#define ESA   1

Definition at line 466 of file u14-34f.c.

#define FALSE   0

Definition at line 504 of file u14-34f.c.

#define FREE   0

Definition at line 506 of file u14-34f.c.

#define H2DEV (   x)    cpu_to_le32(x)

Definition at line 634 of file u14-34f.c.

#define HA_CMD_INQUIRY   0x1

Definition at line 475 of file u14-34f.c.

#define HA_CMD_READ_BUFF   0x3

Definition at line 477 of file u14-34f.c.

#define HA_CMD_SELF_DIAG   0x2

Definition at line 476 of file u14-34f.c.

#define HA_CMD_WRITE_BUFF   0x4

Definition at line 478 of file u14-34f.c.

#define HD (   board)    ((struct hostdata *) &sh[board]->hostdata)

Definition at line 630 of file u14-34f.c.

#define IGNORE   4

Definition at line 510 of file u14-34f.c.

#define IN_RESET   3

Definition at line 509 of file u14-34f.c.

#define IN_USE   1

Definition at line 507 of file u14-34f.c.

#define IRQ_ASSERTED   0x01

Definition at line 531 of file u14-34f.c.

#define ISA   0

Definition at line 465 of file u14-34f.c.

#define LOCKED   2

Definition at line 508 of file u14-34f.c.

#define MAX_BOARDS   (MAX_ISA + MAX_VESA + MAX_EISA + MAX_PCI)

Definition at line 492 of file u14-34f.c.

#define MAX_BOOT_OPTIONS_SIZE   256

Definition at line 669 of file u14-34f.c.

#define MAX_CHANNEL   1

Definition at line 493 of file u14-34f.c.

#define MAX_CMD_PER_LUN   2

Definition at line 500 of file u14-34f.c.

#define MAX_EISA   0

Definition at line 490 of file u14-34f.c.

#define MAX_INT_PARAM   10

Definition at line 668 of file u14-34f.c.

#define MAX_INTERNAL_RETRIES   64

Definition at line 499 of file u14-34f.c.

#define MAX_ISA   3

Definition at line 488 of file u14-34f.c.

#define MAX_LUN   8

Definition at line 494 of file u14-34f.c.

#define MAX_MAILBOXES   16

Definition at line 496 of file u14-34f.c.

#define MAX_PCI   0

Definition at line 491 of file u14-34f.c.

#define MAX_SAFE_SGLIST   16

Definition at line 498 of file u14-34f.c.

#define MAX_SGLIST   32

Definition at line 497 of file u14-34f.c.

#define MAX_TAGGED_CMD_PER_LUN   (MAX_MAILBOXES - MAX_CMD_PER_LUN)

Definition at line 501 of file u14-34f.c.

#define MAX_TARGET   8

Definition at line 495 of file u14-34f.c.

#define MAX_VESA   1

Definition at line 489 of file u14-34f.c.

#define MAXLOOP   10000

Definition at line 514 of file u14-34f.c.

#define NO_DMA   0xff

Definition at line 513 of file u14-34f.c.

#define OP_HOST_ADAPTER   0x1

Definition at line 468 of file u14-34f.c.

#define OP_RESET   0x4

Definition at line 470 of file u14-34f.c.

#define OP_SCSI   0x2

Definition at line 469 of file u14-34f.c.

#define PACKED   __attribute__((packed))

Definition at line 542 of file u14-34f.c.

#define PRODUCT_ID1   0x56

Definition at line 461 of file u14-34f.c.

#define PRODUCT_ID2   0x40 /* NOTE: Only upper nibble is used */

Definition at line 462 of file u14-34f.c.

#define READY   5

Definition at line 511 of file u14-34f.c.

#define REG_CONFIG1   6

Definition at line 525 of file u14-34f.c.

#define REG_CONFIG2   7

Definition at line 526 of file u14-34f.c.

#define REG_ICM   12

Definition at line 528 of file u14-34f.c.

#define REG_LCL_INTR   1

Definition at line 520 of file u14-34f.c.

#define REG_LCL_MASK   0

Definition at line 519 of file u14-34f.c.

#define REG_OGM   8

Definition at line 527 of file u14-34f.c.

#define REG_PRODUCT_ID1   4

Definition at line 523 of file u14-34f.c.

#define REG_PRODUCT_ID2   5

Definition at line 524 of file u14-34f.c.

#define REG_SYS_INTR   3

Definition at line 522 of file u14-34f.c.

#define REG_SYS_MASK   2

Definition at line 521 of file u14-34f.c.

#define REGION_SIZE   13UL

Definition at line 529 of file u14-34f.c.

#define SKIP   ULONG_MAX

Definition at line 503 of file u14-34f.c.

#define TAG_DISABLED   0

Definition at line 515 of file u14-34f.c.

#define TAG_ORDERED   2

Definition at line 517 of file u14-34f.c.

#define TAG_SIMPLE   1

Definition at line 516 of file u14-34f.c.

#define TLDEV (   type)    ((type) == TYPE_DISK || (type) == TYPE_ROM)

Definition at line 540 of file u14-34f.c.

#define TRUE   1

Definition at line 505 of file u14-34f.c.

#define YESNO (   a)    ((a) ? 'y' : 'n')

Definition at line 539 of file u14-34f.c.

Function Documentation

__setup ( )