Changeset 15039b67 in mainline for kbd/arch/ia32/include/kbd.h


Ignore:
Timestamp:
2006-06-11T17:05:41Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f8d5b85
Parents:
290c0db
Message:

Modified uspace to match changes in kernel ipc/irq.
Fixed types in ega fb.
Added dummy interfacing with PS/2 mouse.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kbd/arch/ia32/include/kbd.h

    r290c0db r15039b67  
    2828
    2929/** @addtogroup kbdamd64 amd64
    30  * @brief       HelenOS ia32 / amd64 arch dependent parts of uspace keyboard handler.
     30 * @brief       HelenOS ia32 / amd64 arch dependent parts of uspace keyboard and mouse handler.
    3131 * @ingroup  kbd
    3232 * @{
     
    4141
    4242#include <key_buffer.h>
     43#include <ddi.h>
     44#include <libarch/ddi.h>
     45
     46#define KBD_IRQ      1
     47#define MOUSE_IRQ    12
     48
     49#define i8042_DATA      0x60
     50#define i8042_STATUS    0X64
     51
     52
     53typedef unsigned char u8;
     54typedef short u16;
     55
     56static inline void i8042_data_write(u8 data)
     57{
     58        outb(i8042_DATA, data);
     59}
     60
     61static inline u8 i8042_data_read(void)
     62{
     63        return inb(i8042_DATA);
     64}
     65
     66static inline u8 i8042_status_read(void)
     67{
     68        return inb(i8042_STATUS);
     69}
     70
     71static inline void i8042_command_write(u8 command)
     72{
     73        outb(i8042_STATUS, command);
     74}
    4375
    4476int kbd_arch_init(void);
    45 int kbd_arch_process(keybuffer_t *keybuffer, int scan_code);
    4677
    4778#endif
Note: See TracChangeset for help on using the changeset viewer.