Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bpck.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 BPCK_VERSION   "1.02"
 
#define PC   pi->private
 
#define r2()   (PC=(in_p(2) & 0xff))
 
#define w2(byte)   {out_p(2,byte); PC = byte;}
 
#define t2(pat)   {PC ^= pat; out_p(2,PC);}
 
#define e2()   {PC &= 0xfe; out_p(2,PC);}
 
#define o2()   {PC |= 1; out_p(2,PC);}
 
#define j44(l, h)   (((l>>3)&0x7)|((l>>4)&0x8)|((h<<1)&0x70)|(h&0x80))
 
#define WR(r, v)   bpck_write_regr(pi,2,r,v)
 
#define RR(r)   (bpck_read_regr(pi,2,r))
 
#define TEST_LEN   16
 

Functions

 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BPCK_VERSION   "1.02"

Definition at line 17 of file bpck.c.

#define e2 ( )    {PC &= 0xfe; out_p(2,PC);}

Definition at line 36 of file bpck.c.

#define j44 (   l,
  h 
)    (((l>>3)&0x7)|((l>>4)&0x8)|((h<<1)&0x70)|(h&0x80))

Definition at line 39 of file bpck.c.

#define o2 ( )    {PC |= 1; out_p(2,PC);}

Definition at line 37 of file bpck.c.

#define PC   pi->private

Definition at line 32 of file bpck.c.

#define r2 ( )    (PC=(in_p(2) & 0xff))

Definition at line 33 of file bpck.c.

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

Definition at line 106 of file bpck.c.

#define t2 (   pat)    {PC ^= pat; out_p(2,PC);}

Definition at line 35 of file bpck.c.

#define TEST_LEN   16

Definition at line 276 of file bpck.c.

#define w2 (   byte)    {out_p(2,byte); PC = byte;}

Definition at line 34 of file bpck.c.

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

Definition at line 105 of file bpck.c.

Function Documentation

MODULE_LICENSE ( "GPL"  )