Changeset 89c09ae in mainline for uspace/srv/hid/char_mouse


Ignore:
Timestamp:
2010-03-16T21:35:37Z (16 years ago)
Author:
U-GONZALES\root <root@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7b76744
Parents:
6e81d04
Message:

Improvements to i8042/char_mouse. This fixes ticket #208.

Location:
uspace/srv/hid/char_mouse
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/char_mouse/chardev.c

    r6e81d04 r89c09ae  
    4848static int dev_phone;
    4949
    50 #define NAME "kbd"
     50#define NAME "char_mouse"
    5151
    5252int mouse_port_init(void)
  • uspace/srv/hid/char_mouse/proto/ps2.c

    r6e81d04 r89c09ae  
    3636
    3737#include <stdio.h>
     38#include <mouse_port.h>
     39#include <char_mouse.h>
    3840#include <mouse_proto.h>
    39 #include <char_mouse.h>
    4041
    4142#define BUFSIZE 3
     43
     44#define PS2_MOUSE_OUT_INIT  0xf4
     45#define PS2_MOUSE_ACK       0xfa
    4246
    4347typedef struct {
     
    6771int mouse_proto_init(void)
    6872{
     73        mouse_port_write(PS2_MOUSE_OUT_INIT);
    6974        return 0;
    7075}
Note: See TracChangeset for help on using the changeset viewer.