mirror of
https://github.com/drasko/codezero.git
synced 2026-03-28 23:09:03 +01:00
Important points: ---------------- 1. Works fine for pb926 + qemu. 2. Scan code logic for kryboard is not complete. We just have generic keys and shift working. 3. Mouse scancodes are collected but not decoded. 4. Right now we are doing enable_irq(), just before we go for waiting again for new irqs. This is not correct but we had latency issues. This needs to be fixed immediately. 5. Also it seems like the notify_clot count should be an atomic variable. Needs to be discussed.
19 lines
319 B
C
Executable File
19 lines
319 B
C
Executable File
/*
|
|
* Keyboard details.
|
|
*/
|
|
#ifndef __KEYBOARD_H__
|
|
#define __KEYBOARD_H__
|
|
|
|
#include <libdev/kmi.h>
|
|
|
|
/*
|
|
* Keyboard structure
|
|
*/
|
|
struct keyboard {
|
|
unsigned long base; /* Virtual base address */
|
|
struct capability cap; /* Capability describing keyboard */
|
|
struct keyboard_state state;
|
|
};
|
|
|
|
#endif /* __KEYBOARD_H__ */
|