Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 511 → Rev 509

/kernel/trunk/arch/ia32/src/drivers/i8042.c
35,8 → 35,6
#include <print.h>
#include <synch/spinlock.h>
#include <typedefs.h>
#include <console/chardev.h>
#include <console/console.h>
 
/**
* i8042 processor driver.
57,15 → 55,6
static volatile int keyflags; /**< Tracking of multiple keypresses. */
static volatile int lockflags; /**< Tracking of multiple keys lockings. */
 
static void i8042_suspend(void);
static void i8042_resume(void);
 
static chardev_t kbrd;
static chardev_operations_t ops = {
.suspend = i8042_suspend,
.resume = i8042_resume
};
 
/** Primary meaning of scancodes. */
static char sc_primary_map[] = {
SPECIAL, /* 0x00 */
231,8 → 220,6
{
trap_register(VECTOR_KBD, i8042_interrupt);
spinlock_initialize(&keylock);
chardev_initialize(&kbrd, &ops);
stdin = &kbrd;
}
 
/** Process i8042 interrupt.
305,18 → 292,8
shift = !shift;
if (shift)
map = sc_secondary_map;
chardev_push_character(&kbrd, map[sc]);
putchar(map[sc]);
break;
}
spinlock_unlock(&keylock);
}
 
/* Called from getc(). */
void i8042_resume(void)
{
}
 
/* Called from getc(). */
void i8042_suspend(void)
{
}