Changeset a1c7827 in mainline


Ignore:
Timestamp:
2006-05-16T10:25:22Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c2b43de
Parents:
ca603c6
Message:

Added keyboard support to mips.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rca603c6 ra1c7827  
    4242
    4343ifeq ($(ARCH), amd64)
    44         DIRS += pci
     44        DIRS += pci \
     45                kbd
    4546endif
    4647ifeq ($(ARCH), ia32)
    4748        DIRS += pci \
    4849                kbd
     50endif
     51ifeq ($(ARCH), mips32)
     52        DIRS += kbd
     53endif
     54ifeq ($(ARCH), mips32eb)
     55        DIRS += kbd
    4956endif
    5057
  • init/init.c

    rca603c6 ra1c7827  
    365365//      test_slam();
    366366//      test_as_send();
    367         test_pci();
     367//      test_pci();
    368368        test_kbd();
    369369
  • kbd/arch/mips32/include/kbd.h

    rca603c6 ra1c7827  
    3030#define __mips32_KBD_H__
    3131
    32 void kbd_arch_init(void);
     32int kbd_arch_init(void);
     33int kbd_arch_process(int scan_code);
    3334
    3435#endif
  • kbd/arch/mips32/src/kbd.c

    rca603c6 ra1c7827  
    2929#include <arch/kbd.h>
    3030#include <ipc.h>
     31#include <key_buffer.h>
    3132
    3233irq_cmd_t msim_cmds[1] = {
     
    3940};
    4041
    41 void kbd_arch_init(void)
     42int kbd_arch_init(void)
    4243{
    4344        ipc_register_irq(2, &msim_kbd);
     45        return 1;
    4446}
    4547
    46 
     48int kbd_arch_process(int scan_code)
     49{
     50        key_buffer_push(scan_code);
     51        return  1;
     52}
  • kbd/include/arch

    rca603c6 ra1c7827  
    1 ../arch/ia32/include
     1../arch/mips32/include
Note: See TracChangeset for help on using the changeset viewer.