Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cumana_1.c File Reference
#include <linux/module.h>
#include <linux/signal.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/blkdev.h>
#include <linux/init.h>
#include <asm/ecard.h>
#include <asm/io.h>
#include "../scsi.h"
#include <scsi/scsi_host.h>
#include <scsi/scsicam.h>
#include "../NCR5380.h"
#include "../NCR5380.c"

Go to the source code of this file.

Macros

#define AUTOSENSE
 
#define PSEUDO_DMA
 
#define CUMANASCSI_PUBLIC_RELEASE   1
 
#define priv(host)   ((struct NCR5380_hostdata *)(host)->hostdata)
 
#define NCR5380_local_declare()   struct Scsi_Host *_instance
 
#define NCR5380_setup(instance)   _instance = instance
 
#define NCR5380_read(reg)   cumanascsi_read(_instance, reg)
 
#define NCR5380_write(reg, value)   cumanascsi_write(_instance, reg, value)
 
#define NCR5380_intr   cumanascsi_intr
 
#define NCR5380_queue_command   cumanascsi_queue_command
 
#define NCR5380_proc_info   cumanascsi_proc_info
 
#define NCR5380_implementation_fields
 
#define BOARD_NORMAL   0
 
#define BOARD_NCR53C400   1
 
#define CTRL   0x16fc
 
#define STAT   0x2004
 
#define L(v)   (((v)<<16)|((v) & 0x0000ffff))
 
#define H(v)   (((v)>>16)|((v) & 0xffff0000))
 

Functions

void cumanascsi_setup (char *str, int *ints)
 
const charcumanascsi_info (struct Scsi_Host *spnt)
 
 module_init (cumanascsi_init)
 
 module_exit (cumanascsi_exit)
 
 MODULE_DESCRIPTION ("Cumana SCSI-1 driver for Acorn machines")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AUTOSENSE

Definition at line 21 of file cumana_1.c.

#define BOARD_NCR53C400   1

Definition at line 41 of file cumana_1.c.

#define BOARD_NORMAL   0

Definition at line 40 of file cumana_1.c.

#define CTRL   0x16fc

Definition at line 54 of file cumana_1.c.

#define CUMANASCSI_PUBLIC_RELEASE   1

Definition at line 24 of file cumana_1.c.

#define H (   v)    (((v)>>16)|((v) & 0xffff0000))

Definition at line 57 of file cumana_1.c.

#define L (   v)    (((v)<<16)|((v) & 0x0000ffff))

Definition at line 56 of file cumana_1.c.

#define NCR5380_implementation_fields
Value:
unsigned ctrl; \
void __iomem *base; \
void __iomem *dma

Definition at line 35 of file cumana_1.c.

#define NCR5380_intr   cumanascsi_intr

Definition at line 31 of file cumana_1.c.

#define NCR5380_local_declare ( )    struct Scsi_Host *_instance

Definition at line 27 of file cumana_1.c.

#define NCR5380_proc_info   cumanascsi_proc_info

Definition at line 33 of file cumana_1.c.

#define NCR5380_queue_command   cumanascsi_queue_command

Definition at line 32 of file cumana_1.c.

#define NCR5380_read (   reg)    cumanascsi_read(_instance, reg)

Definition at line 29 of file cumana_1.c.

#define NCR5380_setup (   instance)    _instance = instance

Definition at line 28 of file cumana_1.c.

#define NCR5380_write (   reg,
  value 
)    cumanascsi_write(_instance, reg, value)

Definition at line 30 of file cumana_1.c.

#define priv (   host)    ((struct NCR5380_hostdata *)(host)->hostdata)

Definition at line 26 of file cumana_1.c.

#define PSEUDO_DMA

Definition at line 22 of file cumana_1.c.

#define STAT   0x2004

Definition at line 55 of file cumana_1.c.

Function Documentation

const char* cumanascsi_info ( struct Scsi_Host spnt)

Definition at line 49 of file cumana_1.c.

void cumanascsi_setup ( char str,
int ints 
)

Definition at line 45 of file cumana_1.c.

MODULE_DESCRIPTION ( "Cumana SCSI-1 driver for Acorn machines"  )
module_exit ( cumanascsi_exit  )
module_init ( cumanascsi_init  )
MODULE_LICENSE ( "GPL"  )