/*
   Heh
*/

#ifdef GO32
#include <inlines/pc.h>
#else
#include <asm/io.h>
#endif

#ifndef KBDBASE
#define KBDBASE 0x60
#endif

#ifdef GO32
void outb(unsigned char value,int address) {
  outportb(value,address);
  return;
}
unsigned char inb(int address) {
  return(inportb(address));
}

unsigned char ioperm(unsigned long from, unsigned long num, int turn_on) {
  return(0);
}
#endif

int main(int argc, char *argv[]) {
  ioperm(KBDBASE,16,1);
  if (strcmp(argv[1],"r\0")==0) {
    outb(0xa8,KBDBASE+4);
    outb(0xae,KBDBASE+4);
    outb(0xf4,KBDBASE);
  } else {
    outb(0xa7,KBDBASE+4);
    outb(0xad,KBDBASE+4);
  }
}
