// enable port D0
ioperm(0x378, 1, 1);
byte = inb(0x378);
- byte = byte | 0x10; /* hex 10 = 00010000 */
+ byte = byte | 0x01; /* hex 10 = 00010000 */
outb(byte, 0x378);
}
void send_parallel_port_intrp()
{
- outb(inb(0x378) & 0xEF, 0x378);
- outb(inb(0x378) | 0x10, 0x378); /* enable interrupt */
+ outb(inb(0x378) & 0xFE, 0x378);
+ outb(inb(0x378) | 0x01, 0x378); /* enable interrupt */
}
void do_task(void *arg)
// enable port D0
ioperm(0x378, 1, 1);
byte = inb(0x378);
- byte = byte | 0x10; /* hex 10 = 00010000 */
+ byte = byte | 0x01; /* hex 10 = 00010000 */
outb(byte, 0x378);
}
void send_parallel_port_intrp()
{
- outb(inb(0x378) & 0xEF, 0x378);
- outb(inb(0x378) | 0x10, 0x378); /* enable interrupt */
+ outb(inb(0x378) & 0xFE, 0x378);
+ outb(inb(0x378) | 0x01, 0x378); /* enable interrupt */
}
void do_task(void *arg)