1 #ifdef GO32 2 #include <inlines/pc.h> 3 #else 4 #include <asm/io.h> 5 #endif 6 7 #ifndef KBDBASE 8 #define KBDBASE 0x60 9 #endif 10 11 #ifdef GO32 12 #define outb(val, addr) outportb(val, addr) 13 #define inb(addr) inportb(addr) 14 #define ioperm(from, num, on) 0 15 #endif 16 17 int main(int argc, char **argv) { 18 if (ioperm(KBDBASE,16,1)!=0) return(1); 19 if (argc>1) { 20 outb(0xa8,KBDBASE+4); 21 outb(0xae,KBDBASE+4); 22 outb(0xf4,KBDBASE); 23 } else { 24 outb(0xf4,KBDBASE); 25 outb(0xa7,KBDBASE+4); 26 outb(0xad,KBDBASE+4); 27 } 28 return(0); 29 } |