Changeset b1bdc7a4 in mainline for uspace/srv/hid/kbd/ctl


Ignore:
Timestamp:
2011-06-11T19:48:15Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
56ad818
Parents:
774fc85
Message:

Control keyboard port modules through ops structures. Allows compiling in
all modules at the same time.

Location:
uspace/srv/hid/kbd/ctl
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/kbd/ctl/apple.c

    r774fc85 rb1bdc7a4  
    4040#include <io/keycode.h>
    4141#include <kbd_ctl.h>
     42#include <kbd_port.h>
    4243
    4344#define KBD_KEY_RELEASE         0x80
     
    4546static int scanmap[];
    4647
    47 int kbd_ctl_init(void)
     48int kbd_ctl_init(kbd_port_ops_t *kbd_port)
    4849{
     50        (void) kbd_port;
    4951        return 0;
    5052}
  • uspace/srv/hid/kbd/ctl/gxe_fb.c

    r774fc85 rb1bdc7a4  
    4040#include <io/keycode.h>
    4141#include <kbd_ctl.h>
     42#include <kbd_port.h>
    4243#include <gsp.h>
    4344#include <stroke.h>
     
    207208};
    208209
    209 int kbd_ctl_init(void)
     210int kbd_ctl_init(kbd_port_ops_t *kbd_port)
    210211{
     212        (void) kbd_port;
    211213        ds = 0;
    212214
  • uspace/srv/hid/kbd/ctl/pc.c

    r774fc85 rb1bdc7a4  
    6464
    6565static enum dec_state ds;
     66static kbd_port_ops_t *kbd_port;
    6667
    6768static int scanmap_simple[] = {
     
    197198};
    198199
    199 int kbd_ctl_init(void)
     200int kbd_ctl_init(kbd_port_ops_t *kbd_p)
    200201{
     202        kbd_port = kbd_p;
    201203        ds = ds_s;
    202204        return 0;
     
    265267                b = b | LI_SCROLL;
    266268
    267         kbd_port_write(KBD_CMD_SET_LEDS);
    268         kbd_port_write(b);
     269        (*kbd_port->write)(KBD_CMD_SET_LEDS);
     270        (*kbd_port->write)(b);
    269271}
    270272
  • uspace/srv/hid/kbd/ctl/stty.c

    r774fc85 rb1bdc7a4  
    3939#include <io/keycode.h>
    4040#include <kbd_ctl.h>
     41#include <kbd_port.h>
    4142#include <gsp.h>
    4243#include <stroke.h>
     
    206207};
    207208
    208 int kbd_ctl_init(void)
     209int kbd_ctl_init(kbd_port_ops_t *kbd_port)
    209210{
     211        (void) kbd_port;
    210212        ds = 0;
    211213
  • uspace/srv/hid/kbd/ctl/sun.c

    r774fc85 rb1bdc7a4  
    4040#include <io/keycode.h>
    4141#include <kbd_ctl.h>
     42#include <kbd_port.h>
    4243
    4344#define KBD_KEY_RELEASE         0x80
     
    4647static int scanmap_simple[];
    4748
    48 int kbd_ctl_init(void)
     49int kbd_ctl_init(kbd_port_ops_t *kbd_port)
    4950{
    5051        return 0;
Note: See TracChangeset for help on using the changeset viewer.