37,6 → 37,8 |
#include <arch/kbd.h> |
#include <ipc/ipc.h> |
#include <sysinfo.h> |
#include <kbd.h> |
#include <keys.h> |
|
#define KEY_F1 0x504f1b |
#define KEY_F2 0x514f1b |
55,7 → 57,7 |
#define FUNCTION_KEYS 0x100 |
|
irq_cmd_t ski_cmds[1] = { |
{ CMD_IA64_GETCHAR, 0, 0 } |
{ CMD_IA64_GETCHAR, 0, 0, 2 } |
}; |
|
irq_code_t ski_kbd = { |
67,9 → 69,9 |
{ |
if(sysinfo_value("kbd")) { |
ipc_register_irq(sysinfo_value("kbd.irq"), &ski_kbd); |
return 1; |
return 0; |
} |
|
return 1; |
} |
|
/* |
81,11 → 83,12 |
} |
*/ |
|
int kbd_arch_process(keybuffer_t *keybuffer, int scan_code) |
int kbd_arch_process(keybuffer_t *keybuffer, ipc_call_t *call) |
{ |
static unsigned long long buf=0; |
static int count=0; |
static int esc_count=0; |
int scan_code = IPC_GET_ARG2(*call); |
|
|
/* |