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

Go to the source code of this file.

Data Structures

struct  ultrastor_sg_list
 
struct  mscp
 
struct  ultrastor_config
 

Macros

#define ULTRASTOR_PRIVATE   /* Get the private stuff from ultrastor.h */
 
#define FALSE   0
 
#define TRUE   1
 
#define ULTRASTOR_DEBUG   (UD_ABORT|UD_CSIR|UD_RESET)
 
#define VERSION   "1.12"
 
#define PACKED   __attribute__((packed))
 
#define ALIGNED(x)   __attribute__((aligned(x)))
 
#define U14F_PRODUCT_ID(port)   ((port) + 0x4)
 
#define CONFIG(port)   ((port) + 0x6)
 
#define LCL_DOORBELL_MASK(port)   ((port) + 0x0)
 
#define LCL_DOORBELL_INTR(port)   ((port) + 0x1)
 
#define SYS_DOORBELL_MASK(port)   ((port) + 0x2)
 
#define SYS_DOORBELL_INTR(port)   ((port) + 0x3)
 

Functions

int ultrastor_biosparam (struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *dkinfo)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ALIGNED (   x)    __attribute__((aligned(x)))

Definition at line 161 of file ultrastor.c.

#define CONFIG (   port)    ((port) + 0x6)

Definition at line 207 of file ultrastor.c.

#define FALSE   0

Definition at line 151 of file ultrastor.c.

#define LCL_DOORBELL_INTR (   port)    ((port) + 0x1)

Definition at line 211 of file ultrastor.c.

#define LCL_DOORBELL_MASK (   port)    ((port) + 0x0)

Definition at line 210 of file ultrastor.c.

#define PACKED   __attribute__((packed))

Definition at line 160 of file ultrastor.c.

#define SYS_DOORBELL_INTR (   port)    ((port) + 0x3)

Definition at line 213 of file ultrastor.c.

#define SYS_DOORBELL_MASK (   port)    ((port) + 0x2)

Definition at line 212 of file ultrastor.c.

#define TRUE   1

Definition at line 152 of file ultrastor.c.

#define U14F_PRODUCT_ID (   port)    ((port) + 0x4)

Definition at line 206 of file ultrastor.c.

#define ULTRASTOR_DEBUG   (UD_ABORT|UD_CSIR|UD_RESET)

Definition at line 155 of file ultrastor.c.

#define ULTRASTOR_PRIVATE   /* Get the private stuff from ultrastor.h */

Definition at line 146 of file ultrastor.c.

#define VERSION   "1.12"

Definition at line 158 of file ultrastor.c.

Function Documentation

MODULE_LICENSE ( "GPL"  )
int ultrastor_biosparam ( struct scsi_device sdev,
struct block_device bdev,
sector_t  capacity,
int dkinfo 
)

Definition at line 1034 of file ultrastor.c.

Variable Documentation

unsigned char heads

Definition at line 279 of file ultrastor.c.

unsigned char sectors

Definition at line 280 of file ultrastor.c.