#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.
|
| #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 |
| |
| #define BPCK_VERSION "1.02" |
| #define e2 |
( |
| ) |
{PC &= 0xfe; out_p(2,PC);} |
| #define j44 |
( |
|
l, |
|
|
|
h |
|
) |
| (((l>>3)&0x7)|((l>>4)&0x8)|((h<<1)&0x70)|(h&0x80)) |
| #define r2 |
( |
| ) |
(PC=(in_p(2) & 0xff)) |
| #define RR |
( |
|
r | ) |
(bpck_read_regr(pi,2,r)) |
| #define WR |
( |
|
r, |
|
|
|
v |
|
) |
| bpck_write_regr(pi,2,r,v) |