Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
pg.c File Reference
#include <linux/types.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/mtio.h>
#include <linux/pg.h>
#include <linux/device.h>
#include <linux/sched.h>
#include <linux/mutex.h>
#include <linux/jiffies.h>
#include <asm/uaccess.h>
#include "paride.h"

Go to the source code of this file.

Data Structures

struct  pg
 

Macros

#define PG_VERSION   "1.02"
 
#define PG_MAJOR   97
 
#define PG_NAME   "pg"
 
#define PG_UNITS   4
 
#define PI_PG   4
 
#define PG_SPIN_DEL   50 /* spin delay in micro-seconds */
 
#define PG_SPIN   200
 
#define PG_TMO   HZ
 
#define PG_RESET_TMO   10*HZ
 
#define STAT_ERR   0x01
 
#define STAT_INDEX   0x02
 
#define STAT_ECC   0x04
 
#define STAT_DRQ   0x08
 
#define STAT_SEEK   0x10
 
#define STAT_WRERR   0x20
 
#define STAT_READY   0x40
 
#define STAT_BUSY   0x80
 
#define ATAPI_IDENTIFY   0x12
 
#define PG_NAMELEN   8
 

Enumerations

enum  {
  D_PRT, D_PRO, D_UNI, D_MOD,
  D_SLV, D_DLY
}
 

Functions

 module_param (verbose, bool, 0644)
 
 module_param (major, int, 0)
 
 module_param (name, charp, 0)
 
 module_param_array (drive0, int, NULL, 0)
 
 module_param_array (drive1, int, NULL, 0)
 
 module_param_array (drive2, int, NULL, 0)
 
 module_param_array (drive3, int, NULL, 0)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ATAPI_IDENTIFY   0x12

Definition at line 195 of file pg.c.

#define PG_MAJOR   97

Definition at line 125 of file pg.c.

#define PG_NAME   "pg"

Definition at line 126 of file pg.c.

#define PG_NAMELEN   8

Definition at line 206 of file pg.c.

#define PG_RESET_TMO   10*HZ

Definition at line 184 of file pg.c.

#define PG_SPIN   200

Definition at line 182 of file pg.c.

#define PG_SPIN_DEL   50 /* spin delay in micro-seconds */

Definition at line 181 of file pg.c.

#define PG_TMO   HZ

Definition at line 183 of file pg.c.

#define PG_UNITS   4

Definition at line 127 of file pg.c.

#define PG_VERSION   "1.02"

Definition at line 124 of file pg.c.

#define PI_PG   4

Definition at line 130 of file pg.c.

#define STAT_BUSY   0x80

Definition at line 193 of file pg.c.

#define STAT_DRQ   0x08

Definition at line 189 of file pg.c.

#define STAT_ECC   0x04

Definition at line 188 of file pg.c.

#define STAT_ERR   0x01

Definition at line 186 of file pg.c.

#define STAT_INDEX   0x02

Definition at line 187 of file pg.c.

#define STAT_READY   0x40

Definition at line 192 of file pg.c.

#define STAT_SEEK   0x10

Definition at line 190 of file pg.c.

#define STAT_WRERR   0x20

Definition at line 191 of file pg.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
D_PRT 
D_PRO 
D_UNI 
D_MOD 
D_SLV 
D_DLY 

Definition at line 153 of file pg.c.

Function Documentation

MODULE_LICENSE ( "GPL"  )
module_param ( verbose  ,
bool  ,
0644   
)
module_param ( major  ,
int  ,
 
)
module_param ( name  ,
charp  ,
 
)
module_param_array ( drive0  ,
int  ,
NULL  ,
 
)
module_param_array ( drive1  ,
int  ,
NULL  ,
 
)
module_param_array ( drive2  ,
int  ,
NULL  ,
 
)
module_param_array ( drive3  ,
int  ,
NULL  ,
 
)