1 --- lcd4linux-0.10.0-RC1/drv_generic_parport.c 2005-01-06 17:54:54.000000000 +0100
2 +++ lcd/drv_generic_parport.c 2005-03-20 01:20:48.052255953 +0100
6 ioctl (PPfd, PPDATADIR, &direction);
10 + /* code stolen from linux/parport_pc.h */
11 + ctr = (ctr & ~0x20) ^ (direction?0x20:0x00);
15 - /* code stolen from linux/parport_pc.h */
16 - ctr = (ctr & ~0x20) ^ (direction?0x20:0x00);
25 ioctl (PPfd, PPRSTATUS, &data);
29 + data = inb (Port+1);
32 - data = inb (Port+1);
35 /* clear unused bits */
40 ioctl (PPfd, PPFCONTROL, &frob);
44 + /* code stolen from linux/parport_pc.h */
45 + ctr = (ctr & ~mask) ^ val;
49 - /* code stolen from linux/parport_pc.h */
50 - ctr = (ctr & ~mask) ^ val;
58 ioctl (PPfd, PPFCONTROL, &frob);
67 ctr = (ctr & ~bits) ^ value1;
71 ctr = (ctr & ~bits) ^ value2;
82 ioctl(PPfd, PPWDATA, &data);
94 unsigned char drv_generic_parport_read (void)
98 ioctl (PPfd, PPRDATA, &data);