Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
53c700.c File Reference
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/blkdev.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/byteorder.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_dbg.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_tcq.h>
#include <scsi/scsi_transport.h>
#include <scsi/scsi_transport_spi.h>
#include "53c700.h"
#include "53c700_d.h"

Go to the source code of this file.

Macros

#define NCR_700_VERSION   "2.8"
 
#define to32bit(x)   ((__u32)((unsigned long)(x)))
 
#define STATIC   static
 

Functions

 MODULE_AUTHOR ("James Bottomley")
 
 MODULE_DESCRIPTION ("53c700 and 53c700-66 Driver")
 
 MODULE_LICENSE ("GPL")
 
STATIC int NCR_700_queuecommand (struct Scsi_Host *h, struct scsi_cmnd *)
 
STATIC int NCR_700_abort (struct scsi_cmnd *SCpnt)
 
STATIC int NCR_700_bus_reset (struct scsi_cmnd *SCpnt)
 
STATIC int NCR_700_host_reset (struct scsi_cmnd *SCpnt)
 
STATIC void NCR_700_chip_setup (struct Scsi_Host *host)
 
STATIC void NCR_700_chip_reset (struct Scsi_Host *host)
 
STATIC int NCR_700_slave_alloc (struct scsi_device *SDpnt)
 
STATIC int NCR_700_slave_configure (struct scsi_device *SDpnt)
 
STATIC void NCR_700_slave_destroy (struct scsi_device *SDpnt)
 
struct Scsi_HostNCR_700_detect (struct scsi_host_template *tpnt, struct NCR_700_Host_Parameters *hostdata, struct device *dev)
 
int NCR_700_release (struct Scsi_Host *host)
 
STATIC struct
NCR_700_command_slot
find_empty_slot (struct NCR_700_Host_Parameters *hostdata)
 
STATIC void free_slot (struct NCR_700_command_slot *slot, struct NCR_700_Host_Parameters *hostdata)
 
STATIC void save_for_reselection (struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, __u32 dsp)
 
STATIC void NCR_700_unmap (struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, struct NCR_700_command_slot *slot)
 
STATIC void NCR_700_scsi_done (struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, int result)
 
STATIC void NCR_700_internal_bus_reset (struct Scsi_Host *host)
 
STATIC __u32 process_extended_message (struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, __u32 dsp, __u32 dsps)
 
STATIC __u32 process_message (struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata, struct scsi_cmnd *SCp, __u32 dsp, __u32 dsps)
 
STATIC __u32 process_script_interrupt (__u32 dsps, __u32 dsp, struct scsi_cmnd *SCp, struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata)
 
STATIC __u32 process_selection (struct Scsi_Host *host, __u32 dsp)
 
STATIC int NCR_700_start_command (struct scsi_cmnd *SCp)
 
irqreturn_t NCR_700_intr (int irq, void *dev_id)
 
STATIC DEF_SCSI_QCMD (NCR_700_queuecommand)
 
STATIC void NCR_700_set_period (struct scsi_target *STp, int period)
 
STATIC void NCR_700_set_offset (struct scsi_target *STp, int offset)
 
 EXPORT_SYMBOL (NCR_700_detect)
 
 EXPORT_SYMBOL (NCR_700_release)
 
 EXPORT_SYMBOL (NCR_700_intr)
 
 module_init (NCR_700_init)
 
 module_exit (NCR_700_exit)
 

Variables

STATIC struct device_attributeNCR_700_dev_attrs []
 
STATIC struct
scsi_transport_template
NCR_700_transport_template = NULL
 

Macro Definition Documentation

#define NCR_700_VERSION   "2.8"

Definition at line 115 of file 53c700.c.

#define STATIC   static

Definition at line 158 of file 53c700.c.

#define to32bit (   x)    ((__u32)((unsigned long)(x)))

Definition at line 153 of file 53c700.c.

Function Documentation

STATIC DEF_SCSI_QCMD ( NCR_700_queuecommand  )

Definition at line 1906 of file 53c700.c.

EXPORT_SYMBOL ( NCR_700_detect  )
EXPORT_SYMBOL ( NCR_700_release  )
EXPORT_SYMBOL ( NCR_700_intr  )
STATIC struct NCR_700_command_slot* find_empty_slot ( struct NCR_700_Host_Parameters hostdata)
read

Definition at line 510 of file 53c700.c.

STATIC void free_slot ( struct NCR_700_command_slot slot,
struct NCR_700_Host_Parameters hostdata 
)

Definition at line 542 of file 53c700.c.

MODULE_AUTHOR ( "James Bottomley"  )
MODULE_DESCRIPTION ( "53c700 and 53c700-66 Driver"  )
module_exit ( NCR_700_exit  )
module_init ( NCR_700_init  )
MODULE_LICENSE ( "GPL"  )
STATIC int NCR_700_abort ( struct scsi_cmnd SCpnt)
STATIC int NCR_700_bus_reset ( struct scsi_cmnd SCpnt)

Definition at line 1941 of file 53c700.c.

STATIC void NCR_700_chip_reset ( struct Scsi_Host host)

Definition at line 758 of file 53c700.c.

STATIC void NCR_700_chip_setup ( struct Scsi_Host host)

Definition at line 648 of file 53c700.c.

struct Scsi_Host* NCR_700_detect ( struct scsi_host_template tpnt,
struct NCR_700_Host_Parameters hostdata,
struct device dev 
)
read

Definition at line 287 of file 53c700.c.

STATIC int NCR_700_host_reset ( struct scsi_cmnd SCpnt)

Definition at line 1978 of file 53c700.c.

STATIC void NCR_700_internal_bus_reset ( struct Scsi_Host host)

Definition at line 638 of file 53c700.c.

irqreturn_t NCR_700_intr ( int  irq,
void dev_id 
)

Definition at line 1480 of file 53c700.c.

STATIC int NCR_700_queuecommand ( struct Scsi_Host h,
struct scsi_cmnd  
)
int NCR_700_release ( struct Scsi_Host host)

Definition at line 410 of file 53c700.c.

STATIC void NCR_700_scsi_done ( struct NCR_700_Host_Parameters hostdata,
struct scsi_cmnd SCp,
int  result 
)
inline

Definition at line 588 of file 53c700.c.

STATIC void NCR_700_set_offset ( struct scsi_target STp,
int  offset 
)

Definition at line 2013 of file 53c700.c.

STATIC void NCR_700_set_period ( struct scsi_target STp,
int  period 
)

Definition at line 1994 of file 53c700.c.

STATIC int NCR_700_slave_alloc ( struct scsi_device SDpnt)

Definition at line 2039 of file 53c700.c.

STATIC int NCR_700_slave_configure ( struct scsi_device SDpnt)

Definition at line 2051 of file 53c700.c.

STATIC void NCR_700_slave_destroy ( struct scsi_device SDpnt)

Definition at line 2077 of file 53c700.c.

STATIC int NCR_700_start_command ( struct scsi_cmnd SCp)

Definition at line 1392 of file 53c700.c.

STATIC void NCR_700_unmap ( struct NCR_700_Host_Parameters hostdata,
struct scsi_cmnd SCp,
struct NCR_700_command_slot slot 
)
inline

Definition at line 579 of file 53c700.c.

STATIC __u32 process_extended_message ( struct Scsi_Host host,
struct NCR_700_Host_Parameters hostdata,
struct scsi_cmnd SCp,
__u32  dsp,
__u32  dsps 
)

Definition at line 786 of file 53c700.c.

STATIC __u32 process_message ( struct Scsi_Host host,
struct NCR_700_Host_Parameters hostdata,
struct scsi_cmnd SCp,
__u32  dsp,
__u32  dsps 
)

Definition at line 869 of file 53c700.c.

STATIC __u32 process_script_interrupt ( __u32  dsps,
__u32  dsp,
struct scsi_cmnd SCp,
struct Scsi_Host host,
struct NCR_700_Host_Parameters hostdata 
)

Definition at line 956 of file 53c700.c.

STATIC __u32 process_selection ( struct Scsi_Host host,
__u32  dsp 
)
inline

Definition at line 1282 of file 53c700.c.

STATIC void save_for_reselection ( struct NCR_700_Host_Parameters hostdata,
struct scsi_cmnd SCp,
__u32  dsp 
)

Definition at line 564 of file 53c700.c.

Variable Documentation

STATIC struct device_attribute * NCR_700_dev_attrs
Initial value:
= {
&NCR_700_active_tags_attr,
}

Definition at line 181 of file 53c700.c.

STATIC struct scsi_transport_template* NCR_700_transport_template = NULL

Definition at line 183 of file 53c700.c.