Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
gdth.c File Reference
#include <linux/module.h>
#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/in.h>
#include <linux/proc_fs.h>
#include <linux/time.h>
#include <linux/timer.h>
#include <linux/dma-mapping.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/reboot.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <linux/spinlock.h>
#include <linux/blkdev.h>
#include <linux/scatterlist.h>
#include "scsi.h"
#include <scsi/scsi_host.h>
#include "gdth.h"
#include "gdth_proc.h"
#include "gdth_proc.c"

Go to the source code of this file.

Macros

#define GDTH_STATISTICS
 
#define TRACE(a)
 
#define TRACE2(a)
 
#define TRACE3(a)
 
#define PTR2USHORT(a)   (u16)(unsigned long)(a)
 
#define GDTOFFSOF(a, b)   (size_t)&(((a*)0)->b)
 
#define INDEX_OK(i, t)   ((i)<ARRAY_SIZE(t))
 
#define BUS_L2P(a, b)   ((b)>(a)->virt_bus ? (b-1):(b))
 
#define DIN   1 /* IN data direction */
 
#define DOU   2 /* OUT data direction */
 
#define DNO   DIN /* no data transfer */
 
#define DUN   DIN /* unknown data direction */
 

Functions

 module_param_array (irq, int, NULL, 0)
 
 module_param (disable, int, 0)
 
 module_param (reserve_mode, int, 0)
 
 module_param_array (reserve_list, int, NULL, 0)
 
 module_param (reverse_scan, int, 0)
 
 module_param (hdr_channel, int, 0)
 
 module_param (max_ids, int, 0)
 
 module_param (rescan, int, 0)
 
 module_param (shared_access, int, 0)
 
 module_param (probe_eisa_isa, int, 0)
 
 module_param (force_dma32, int, 0)
 
 MODULE_AUTHOR ("Achim Leubner")
 
 MODULE_LICENSE ("GPL")
 
int __gdth_execute (struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd, int timeout, u32 *info)
 
int gdth_execute (struct Scsi_Host *shost, gdth_cmd_str *gdtcmd, char *cmnd, int timeout, u32 *info)
 
int __init option_setup (char *str)
 
 module_init (gdth_init)
 
 module_exit (gdth_exit)
 
 __setup ("gdth=", option_setup)
 

Macro Definition Documentation

#define BUS_L2P (   a,
  b 
)    ((b)>(a)->virt_bus ? (b-1):(b))

Definition at line 286 of file gdth.c.

#define DIN   1 /* IN data direction */

Definition at line 303 of file gdth.c.

#define DNO   DIN /* no data transfer */

Definition at line 305 of file gdth.c.

#define DOU   2 /* OUT data direction */

Definition at line 304 of file gdth.c.

#define DUN   DIN /* unknown data direction */

Definition at line 306 of file gdth.c.

#define GDTH_STATISTICS

Definition at line 104 of file gdth.c.

#define GDTOFFSOF (   a,
  b 
)    (size_t)&(((a*)0)->b)

Definition at line 283 of file gdth.c.

#define INDEX_OK (   i,
  t 
)    ((i)<ARRAY_SIZE(t))

Definition at line 284 of file gdth.c.

#define PTR2USHORT (   a)    (u16)(unsigned long)(a)

Definition at line 282 of file gdth.c.

#define TRACE (   a)

Definition at line 268 of file gdth.c.

#define TRACE2 (   a)

Definition at line 269 of file gdth.c.

#define TRACE3 (   a)

Definition at line 270 of file gdth.c.

Function Documentation

int __gdth_execute ( struct scsi_device sdev,
gdth_cmd_str *  gdtcmd,
char cmnd,
int  timeout,
u32 info 
)

Definition at line 445 of file gdth.c.

__setup ( )
int gdth_execute ( struct Scsi_Host shost,
gdth_cmd_str *  gdtcmd,
char cmnd,
int  timeout,
u32 info 
)

Definition at line 488 of file gdth.c.

MODULE_AUTHOR ( "Achim Leubner"  )
module_exit ( gdth_exit  )
module_init ( gdth_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( disable  ,
int  ,
 
)
module_param ( reserve_mode  ,
int  ,
 
)
module_param ( reverse_scan  ,
int  ,
 
)
module_param ( hdr_channel  ,
int  ,
 
)
module_param ( max_ids  ,
int  ,
 
)
module_param ( rescan  ,
int  ,
 
)
module_param ( shared_access  ,
int  ,
 
)
module_param ( probe_eisa_isa  ,
int  ,
 
)
module_param ( force_dma32  ,
int  ,
 
)
module_param_array ( irq  ,
int  ,
NULL  ,
 
)
module_param_array ( reserve_list  ,
int  ,
NULL  ,
 
)
int __init option_setup ( char str)

Definition at line 3838 of file gdth.c.