Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
pf.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/hdreg.h>
#include <linux/cdrom.h>
#include <linux/spinlock.h>
#include <linux/blkdev.h>
#include <linux/blkpg.h>
#include <linux/mutex.h>
#include <asm/uaccess.h>
#include "paride.h"
#include "pseudo.h"

Go to the source code of this file.

Data Structures

struct  pf_unit
 

Macros

#define PF_VERSION   "1.04"
 
#define PF_MAJOR   47
 
#define PF_NAME   "pf"
 
#define PF_UNITS   4
 
#define PF_FD_MAX   8192 /* use FD geometry under this size */
 
#define PF_FD_HDS   2
 
#define PF_FD_SPT   18
 
#define PF_HD_HDS   64
 
#define PF_HD_SPT   32
 
#define PF_MAX_RETRIES   5
 
#define PF_TMO   800 /* interrupt timeout in jiffies */
 
#define PF_SPIN_DEL   50 /* spin delay in micro-seconds */
 
#define PF_SPIN   (1000000*PF_TMO)/(HZ*PF_SPIN_DEL)
 
#define STAT_ERR   0x00001
 
#define STAT_INDEX   0x00002
 
#define STAT_ECC   0x00004
 
#define STAT_DRQ   0x00008
 
#define STAT_SEEK   0x00010
 
#define STAT_WRERR   0x00020
 
#define STAT_READY   0x00040
 
#define STAT_BUSY   0x00080
 
#define ATAPI_REQ_SENSE   0x03
 
#define ATAPI_LOCK   0x1e
 
#define ATAPI_DOOR   0x1b
 
#define ATAPI_MODE_SENSE   0x5a
 
#define ATAPI_CAPACITY   0x25
 
#define ATAPI_IDENTIFY   0x12
 
#define ATAPI_READ_10   0x28
 
#define ATAPI_WRITE_10   0x2a
 
#define PF_NM   0
 
#define PF_RO   1
 
#define PF_RW   2
 
#define PF_NAMELEN   8
 
#define PF_RESET_TMO   30 /* in tenths of a second */
 

Enumerations

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

Functions

 module_param (verbose, bool, 0644)
 
 module_param (major, int, 0)
 
 module_param (name, charp, 0)
 
 module_param (cluster, int, 0)
 
 module_param (nice, int, 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_CAPACITY   0x25

Definition at line 203 of file pf.c.

#define ATAPI_DOOR   0x1b

Definition at line 201 of file pf.c.

#define ATAPI_IDENTIFY   0x12

Definition at line 204 of file pf.c.

#define ATAPI_LOCK   0x1e

Definition at line 200 of file pf.c.

#define ATAPI_MODE_SENSE   0x5a

Definition at line 202 of file pf.c.

#define ATAPI_READ_10   0x28

Definition at line 205 of file pf.c.

#define ATAPI_REQ_SENSE   0x03

Definition at line 199 of file pf.c.

#define ATAPI_WRITE_10   0x2a

Definition at line 206 of file pf.c.

#define PF_FD_HDS   2

Definition at line 179 of file pf.c.

#define PF_FD_MAX   8192 /* use FD geometry under this size */

Definition at line 178 of file pf.c.

#define PF_FD_SPT   18

Definition at line 180 of file pf.c.

#define PF_HD_HDS   64

Definition at line 181 of file pf.c.

#define PF_HD_SPT   32

Definition at line 182 of file pf.c.

#define PF_MAJOR   47

Definition at line 117 of file pf.c.

#define PF_MAX_RETRIES   5

Definition at line 184 of file pf.c.

#define PF_NAME   "pf"

Definition at line 118 of file pf.c.

#define PF_NAMELEN   8

Definition at line 228 of file pf.c.

#define PF_NM   0

Definition at line 224 of file pf.c.

#define PF_RESET_TMO   30 /* in tenths of a second */

Definition at line 524 of file pf.c.

#define PF_RO   1

Definition at line 225 of file pf.c.

#define PF_RW   2

Definition at line 226 of file pf.c.

#define PF_SPIN   (1000000*PF_TMO)/(HZ*PF_SPIN_DEL)

Definition at line 188 of file pf.c.

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

Definition at line 186 of file pf.c.

#define PF_TMO   800 /* interrupt timeout in jiffies */

Definition at line 185 of file pf.c.

#define PF_UNITS   4

Definition at line 119 of file pf.c.

#define PF_VERSION   "1.04"

Definition at line 116 of file pf.c.

#define STAT_BUSY   0x00080

Definition at line 197 of file pf.c.

#define STAT_DRQ   0x00008

Definition at line 193 of file pf.c.

#define STAT_ECC   0x00004

Definition at line 192 of file pf.c.

#define STAT_ERR   0x00001

Definition at line 190 of file pf.c.

#define STAT_INDEX   0x00002

Definition at line 191 of file pf.c.

#define STAT_READY   0x00040

Definition at line 196 of file pf.c.

#define STAT_SEEK   0x00010

Definition at line 194 of file pf.c.

#define STAT_WRERR   0x00020

Definition at line 195 of file pf.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
D_PRT 
D_PRO 
D_UNI 
D_MOD 
D_SLV 
D_LUN 
D_DLY 

Definition at line 144 of file pf.c.

Function Documentation

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