Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
epat.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/wait.h>
#include <asm/io.h>
#include "paride.h"

Go to the source code of this file.

Macros

#define EPAT_VERSION   "1.02"
 
#define j44(a, b)   (((a>>4)&0x0f)+(b&0xf0))
 
#define j53(a, b)   (((a>>3)&0x1f)+((b<<4)&0xe0))
 
#define WR(r, v)   epat_write_regr(pi,2,r,v)
 
#define RR(r)   (epat_read_regr(pi,2,r))
 
#define WRi(r, v)   epat_write_regr(pi,0,r,v)
 
#define RRi(r)   (epat_read_regr(pi,0,r))
 
#define CPP(x)
 

Functions

 module_param (epatc8, int, 0)
 
 MODULE_PARM_DESC (epatc8,"support for the Shuttle EP1284 chip, ""used in any recent Imation SuperDisk (LS-120) drive.")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CPP (   x)
Value:
w2(4);w0(0x22);w0(0xaa);w0(0x55);w0(0);w0(0xff);\
w0(0x87);w0(0x78);w0(x);w2(4);w2(5);w2(4);w0(0xff);

Definition at line 210 of file epat.c.

#define EPAT_VERSION   "1.02"

Definition at line 19 of file epat.c.

#define j44 (   a,
  b 
)    (((a>>4)&0x0f)+(b&0xf0))

Definition at line 31 of file epat.c.

#define j53 (   a,
  b 
)    (((a>>3)&0x1f)+((b<<4)&0xe0))

Definition at line 32 of file epat.c.

#define RR (   r)    (epat_read_regr(pi,2,r))

Definition at line 201 of file epat.c.

#define RRi (   r)    (epat_read_regr(pi,0,r))

Definition at line 206 of file epat.c.

#define WR (   r,
  v 
)    epat_write_regr(pi,2,r,v)

Definition at line 200 of file epat.c.

#define WRi (   r,
  v 
)    epat_write_regr(pi,0,r,v)

Definition at line 205 of file epat.c.

Function Documentation

MODULE_LICENSE ( "GPL"  )
module_param ( epatc8  ,
int  ,
 
)
MODULE_PARM_DESC ( epatc8  ,
"support for the Shuttle EP1284  chip,
""used in any recent Imation SuperDisk(LS-120) drive."   
)