Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
atari_scsi.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/stddef.h>
#include <linux/ctype.h>
#include <linux/delay.h>
#include <linux/mm.h>
#include <linux/blkdev.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/nvram.h>
#include <linux/bitops.h>
#include <asm/setup.h>
#include <asm/atarihw.h>
#include <asm/atariints.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/irq.h>
#include <asm/traps.h>
#include "scsi.h"
#include <scsi/scsi_host.h>
#include "atari_scsi.h"
#include "NCR5380.h"
#include <asm/atari_stdma.h>
#include <asm/atari_stram.h>
#include <asm/io.h>
#include <linux/stat.h>
#include "atari_NCR5380.c"
#include "scsi_module.c"

Go to the source code of this file.

Macros

#define NDEBUG   (0)
 
#define NDEBUG_ABORT   0x00100000
 
#define NDEBUG_TAGS   0x00200000
 
#define NDEBUG_MERGING   0x00400000
 
#define AUTOSENSE
 
#define REAL_DMA
 
#define SUPPORT_TAGS
 
#define MAX_TAGS   32
 
#define IS_A_TT()   ATARIHW_PRESENT(TT_SCSI)
 
#define SCSI_DMA_WRITE_P(elt, val)
 
#define SCSI_DMA_READ_P(elt)
 
#define HOSTDATA_DMALEN
 
#define AFTER_RESET_DELAY   (HZ/2)
 
#define STRAM_BUFFER_SIZE   (4096)
 
#define STRAM_ADDR(a)   (((a) & atari_dma_stram_mask) == 0)
 
#define CMD_SURELY_BLOCK_MODE   0
 
#define CMD_SURELY_BYTE_MODE   1
 
#define CMD_MODE_UNKNOWN   2
 

Functions

 module_param (setup_can_queue, int, 0)
 
 module_param (setup_cmd_per_lun, int, 0)
 
 module_param (setup_sg_tablesize, int, 0)
 
 module_param (setup_use_tagged_queuing, int, 0)
 
 module_param (setup_hostid, int, 0)
 
 __setup ("atascsi=", atari_scsi_setup)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AFTER_RESET_DELAY   (HZ/2)

Definition at line 181 of file atari_scsi.c.

#define AUTOSENSE

Definition at line 76 of file atari_scsi.c.

#define CMD_MODE_UNKNOWN   2

Definition at line 950 of file atari_scsi.c.

#define CMD_SURELY_BLOCK_MODE   0

Definition at line 948 of file atari_scsi.c.

#define CMD_SURELY_BYTE_MODE   1

Definition at line 949 of file atari_scsi.c.

#define HOSTDATA_DMALEN
Value:
(((struct NCR5380_hostdata *) \
(atari_scsi_host->hostdata))->dma_len)

Definition at line 174 of file atari_scsi.c.

#define IS_A_TT ( )    ATARIHW_PRESENT(TT_SCSI)

Definition at line 112 of file atari_scsi.c.

#define MAX_TAGS   32

Definition at line 81 of file atari_scsi.c.

#define NDEBUG   (0)

Definition at line 70 of file atari_scsi.c.

#define NDEBUG_ABORT   0x00100000

Definition at line 72 of file atari_scsi.c.

#define NDEBUG_MERGING   0x00400000

Definition at line 74 of file atari_scsi.c.

#define NDEBUG_TAGS   0x00200000

Definition at line 73 of file atari_scsi.c.

#define REAL_DMA

Definition at line 78 of file atari_scsi.c.

#define SCSI_DMA_READ_P (   elt)
Value:
(((((((unsigned long)tt_scsi_dma.elt##_hi << 8) | \
(unsigned long)tt_scsi_dma.elt##_hmd) << 8) | \
(unsigned long)tt_scsi_dma.elt##_lmd) << 8) | \
(unsigned long)tt_scsi_dma.elt##_lo)

Definition at line 126 of file atari_scsi.c.

#define SCSI_DMA_WRITE_P (   elt,
  val 
)
Value:
do { \
unsigned long v = val; \
tt_scsi_dma.elt##_lo = v & 0xff; \
v >>= 8; \
tt_scsi_dma.elt##_lmd = v & 0xff; \
v >>= 8; \
tt_scsi_dma.elt##_hmd = v & 0xff; \
v >>= 8; \
tt_scsi_dma.elt##_hi = v & 0xff; \
} while(0)

Definition at line 114 of file atari_scsi.c.

#define STRAM_ADDR (   a)    (((a) & atari_dma_stram_mask) == 0)

Definition at line 233 of file atari_scsi.c.

#define STRAM_BUFFER_SIZE   (4096)

Definition at line 230 of file atari_scsi.c.

#define SUPPORT_TAGS

Definition at line 80 of file atari_scsi.c.

Function Documentation

__setup ( )
MODULE_LICENSE ( "GPL"  )
module_param ( setup_can_queue  ,
int  ,
 
)
module_param ( setup_cmd_per_lun  ,
int  ,
 
)
module_param ( setup_sg_tablesize  ,
int  ,
 
)
module_param ( setup_use_tagged_queuing  ,
int  ,
 
)
module_param ( setup_hostid  ,
int  ,
 
)