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

#ifndef KBDBASE
#define KBDBASE 0x60
#endif

#ifdef GO32
#define outb(val, addr) outportb(val, addr)
#define inb(addr) inportb(addr)
#define ioperm(from, num, on) 0
#endif

int main(int argc, char **argv) {
	if (ioperm(KBDBASE,16,1)!=0) return(1);
	if (argc>1) {
		outb(0xa8,KBDBASE+4);
		outb(0xae,KBDBASE+4);
		outb(0xf4,KBDBASE);
	} else {
		outb(0xf4,KBDBASE);
		outb(0xa7,KBDBASE+4);
		outb(0xad,KBDBASE+4);
	}
	return(0);
}
