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

Go to the source code of this file.

Data Structures

struct  override
 

Macros

#define USLEEP
 
#define USLEEP_POLL   1
 
#define USLEEP_SLEEP   20
 
#define USLEEP_WAITLONG   500
 
#define AUTOPROBE_IRQ
 
#define AUTOSENSE
 
#define NCR_NOT_SET   0
 
#define NO_OVERRIDES   ARRAY_SIZE(overrides)
 
#define PRINTP(x)   len += sprintf(buffer+len, x)
 
#define ANDP   ,
 

Functions

int __init generic_NCR5380_detect (struct scsi_host_template *tpnt)
 
const chargeneric_NCR5380_info (struct Scsi_Host *host)
 
int generic_NCR5380_release_resources (struct Scsi_Host *instance)
 
 module_param (ncr_irq, int, 0)
 
 module_param (ncr_dma, int, 0)
 
 module_param (ncr_addr, int, 0)
 
 module_param (ncr_5380, int, 0)
 
 module_param (ncr_53c400, int, 0)
 
 module_param (ncr_53c400a, int, 0)
 
 module_param (dtc_3181e, int, 0)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (isapnp, id_table)
 
 __setup ("ncr5380=", do_NCR5380_setup)
 

Macro Definition Documentation

#define ANDP   ,

Definition at line 749 of file g_NCR5380.c.

#define AUTOPROBE_IRQ

Definition at line 91 of file g_NCR5380.c.

#define AUTOSENSE

Definition at line 92 of file g_NCR5380.c.

#define NCR_NOT_SET   0

Definition at line 117 of file g_NCR5380.c.

#define NO_OVERRIDES   ARRAY_SIZE(overrides)

Definition at line 138 of file g_NCR5380.c.

#define PRINTP (   x)    len += sprintf(buffer+len, x)

Definition at line 748 of file g_NCR5380.c.

#define USLEEP

Definition at line 86 of file g_NCR5380.c.

#define USLEEP_POLL   1

Definition at line 87 of file g_NCR5380.c.

#define USLEEP_SLEEP   20

Definition at line 88 of file g_NCR5380.c.

#define USLEEP_WAITLONG   500

Definition at line 89 of file g_NCR5380.c.

Function Documentation

__setup ( )
int __init generic_NCR5380_detect ( struct scsi_host_template tpnt)

generic_NCR5380_detect - look for NCR5380 controllers : the scsi template

Scan for the present of NCR5380, NCR53C400, NCR53C400A, DTC3181E and DTC436(ISAPnP) controllers. If overrides have been set we use them.

The caller supplied NCR5380_init function is invoked from here, before the interrupt line is taken.

Locks: none

Definition at line 284 of file g_NCR5380.c.

const char* generic_NCR5380_info ( struct Scsi_Host host)

generic_NCR5380_info - reporting string : NCR5380 to report on

Report driver information for the NCR5380

Definition at line 496 of file g_NCR5380.c.

int generic_NCR5380_release_resources ( struct Scsi_Host instance)

generic_NCR5380_release_resources - free resources : host adapter to clean up

Free the generic interface resources from this adapter.

Locks: none

Definition at line 511 of file g_NCR5380.c.

MODULE_DEVICE_TABLE ( isapnp  ,
id_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( ncr_irq  ,
int  ,
 
)
module_param ( ncr_dma  ,
int  ,
 
)
module_param ( ncr_addr  ,
int  ,
 
)
module_param ( ncr_5380  ,
int  ,
 
)
module_param ( ncr_53c400  ,
int  ,
 
)
module_param ( ncr_53c400a  ,
int  ,
 
)
module_param ( dtc_3181e  ,
int  ,
 
)