Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
aha1542.c File Reference
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/proc_fs.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/isapnp.h>
#include <linux/blkdev.h>
#include <linux/slab.h>
#include <asm/dma.h>
#include <asm/io.h>
#include "scsi.h"
#include <scsi/scsi_host.h>
#include "aha1542.h"
#include <linux/stat.h>
#include "scsi_module.c"

Go to the source code of this file.

Data Structures

struct  aha1542_hostdata
 

Macros

#define SCSI_BUF_PA(address)   isa_virt_to_bus(address)
 
#define SCSI_SG_PA(sgent)   (isa_page_to_bus(sg_page((sgent))) + (sgent)->offset)
 
#define DEB(x)
 
#define MAXBOARDS
 
#define BIOS_TRANSLATION_1632   0 /* Used by some old 1542A boards */
 
#define BIOS_TRANSLATION_6432   1 /* Default case these days */
 
#define BIOS_TRANSLATION_25563   2 /* Big disk case */
 
#define HOSTDATA(host)   ((struct aha1542_hostdata *) &host->hostdata)
 
#define WAITnexttimeout   3000000
 
#define aha1542_intr_reset(base)   outb(IRST, CONTROL(base))
 
#define WAIT(port, mask, allof, noneof)
 
#define WAITd(port, mask, allof, noneof, timeout)
 

Functions

 __setup ("aha1542=", do_setup)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define aha1542_intr_reset (   base)    outb(IRST, CONTROL(base))

Definition at line 147 of file aha1542.c.

#define BIOS_TRANSLATION_1632   0 /* Used by some old 1542A boards */

Definition at line 121 of file aha1542.c.

#define BIOS_TRANSLATION_25563   2 /* Big disk case */

Definition at line 123 of file aha1542.c.

#define BIOS_TRANSLATION_6432   1 /* Default case these days */

Definition at line 122 of file aha1542.c.

#define DEB (   x)

Definition at line 57 of file aha1542.c.

#define HOSTDATA (   host)    ((struct aha1542_hostdata *) &host->hostdata)

Definition at line 135 of file aha1542.c.

#define MAXBOARDS
Value:
4 /* Increase this and the sizes of the
arrays below, if you need more.. */

Definition at line 69 of file aha1542.c.

#define SCSI_BUF_PA (   address)    isa_virt_to_bus(address)

Definition at line 49 of file aha1542.c.

#define SCSI_SG_PA (   sgent)    (isa_page_to_bus(sg_page((sgent))) + (sgent)->offset)

Definition at line 50 of file aha1542.c.

#define WAIT (   port,
  mask,
  allof,
  noneof 
)
Value:
{ register int WAITbits; \
register int WAITtimeout = WAITnexttimeout; \
while (1) { \
WAITbits = inb(port) & (mask); \
if ((WAITbits & (allof)) == (allof) && ((WAITbits & (noneof)) == 0)) \
break; \
if (--WAITtimeout == 0) goto fail; \
} \
}

Definition at line 149 of file aha1542.c.

#define WAITd (   port,
  mask,
  allof,
  noneof,
  timeout 
)
Value:
{ register int WAITbits; \
register int WAITtimeout = timeout; \
while (1) { \
WAITbits = inb(port) & (mask); \
if ((WAITbits & (allof)) == (allof) && ((WAITbits & (noneof)) == 0)) \
break; \
mdelay(1); \
if (--WAITtimeout == 0) goto fail; \
} \
}

Definition at line 162 of file aha1542.c.

#define WAITnexttimeout   3000000

Definition at line 141 of file aha1542.c.

Function Documentation

__setup ( )
MODULE_LICENSE ( "GPL"  )