1 /* 2 Heh 3 */ 4 5 #ifdef GO32 6 #include <inlines/pc.h> 7 #else 8 #include <asm/io.h> 9 #endif 10 11 #ifndef KBDBASE 12 #define KBDBASE 0x60 13 #endif 14 15 #ifdef GO32 16 void outb(unsigned char value,int address) { 17 outportb(value,address); 18 return; 19 } 20 unsigned char inb(int address) { 21 return(inportb(address)); 22 } 23 24 unsigned char ioperm(unsigned long from, unsigned long num, int turn_on) { 25 return(0); 26 } 27 #endif 28 29 int main(int argc, char *argv[]) { 30 ioperm(KBDBASE,16,1); 31 if (strcmp(argv[1],"r\0")==0) { 32 outb(0xa8,KBDBASE+4); 33 outb(0xae,KBDBASE+4); 34 outb(0xf4,KBDBASE); 35 } else { 36 outb(0xa7,KBDBASE+4); 37 outb(0xad,KBDBASE+4); 38 } 39 } |