Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
oak.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 "../NCR5380.h"
#include "../NCR5380.c"

Go to the source code of this file.

Macros

#define AUTOSENSE
 
#define OAKSCSI_PUBLIC_RELEASE   1
 
#define DONT_USE_INTR
 
#define priv(host)   ((struct NCR5380_hostdata *)(host)->hostdata)
 
#define NCR5380_local_declare()   void __iomem *_base
 
#define NCR5380_setup(host)   _base = priv(host)->base
 
#define NCR5380_read(reg)   readb(_base + ((reg) << 2))
 
#define NCR5380_write(reg, value)   writeb(value, _base + ((reg) << 2))
 
#define NCR5380_intr   oakscsi_intr
 
#define NCR5380_queue_command   oakscsi_queue_command
 
#define NCR5380_proc_info   oakscsi_proc_info
 
#define NCR5380_implementation_fields   void __iomem *base
 
#define BOARD_NORMAL   0
 
#define BOARD_NCR53C400   1
 
#define START_DMA_INITIATOR_RECEIVE_REG   (128 + 7)
 
#define STAT   ((128 + 16) << 2)
 
#define DATA   ((128 + 8) << 2)
 

Functions

const charoakscsi_info (struct Scsi_Host *spnt)
 
 module_init (oakscsi_init)
 
 module_exit (oakscsi_exit)
 
 MODULE_AUTHOR ("Russell King")
 
 MODULE_DESCRIPTION ("Oak SCSI driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AUTOSENSE

Definition at line 20 of file oak.c.

#define BOARD_NCR53C400   1

Definition at line 40 of file oak.c.

#define BOARD_NORMAL   0

Definition at line 39 of file oak.c.

#define DATA   ((128 + 8) << 2)

Definition at line 53 of file oak.c.

#define DONT_USE_INTR

Definition at line 24 of file oak.c.

#define NCR5380_implementation_fields   void __iomem *base

Definition at line 36 of file oak.c.

#define NCR5380_intr   oakscsi_intr

Definition at line 32 of file oak.c.

#define NCR5380_local_declare ( )    void __iomem *_base

Definition at line 27 of file oak.c.

#define NCR5380_proc_info   oakscsi_proc_info

Definition at line 34 of file oak.c.

#define NCR5380_queue_command   oakscsi_queue_command

Definition at line 33 of file oak.c.

#define NCR5380_read (   reg)    readb(_base + ((reg) << 2))

Definition at line 30 of file oak.c.

#define NCR5380_setup (   host)    _base = priv(host)->base

Definition at line 28 of file oak.c.

#define NCR5380_write (   reg,
  value 
)    writeb(value, _base + ((reg) << 2))

Definition at line 31 of file oak.c.

#define OAKSCSI_PUBLIC_RELEASE   1

Definition at line 23 of file oak.c.

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

Definition at line 26 of file oak.c.

#define START_DMA_INITIATOR_RECEIVE_REG   (128 + 7)

Definition at line 45 of file oak.c.

#define STAT   ((128 + 16) << 2)

Definition at line 52 of file oak.c.

Function Documentation

MODULE_AUTHOR ( "Russell King"  )
MODULE_DESCRIPTION ( "Oak SCSI driver )
module_exit ( oakscsi_exit  )
module_init ( oakscsi_init  )
MODULE_LICENSE ( "GPL"  )
const char* oakscsi_info ( struct Scsi_Host spnt)

Definition at line 47 of file oak.c.