
#include <linux/io.h>

SYSCALL_DEFINE0(spkon)
{
outb(inb(0x61) | 3, 0x61);
return 0;
}
SYSCALL_DEFINE0(spkoff)
{
outb(inb(0x61) & 0xFC, 0x61);
return 0;
}
SYSCALL_DEFINE1(spkplay, unsigned short int, w)
{
outb(0xB6, 0x43);
outb(w & 0xff, 0x42);
outb((w >> 8) & 0xff, 0x42);
return 0;
}
SYSCALL_DEFINE0(spkpatchexists)
{
return 123;
}
