Changeset 9be360ee in mainline for uspace/srv/hid/kbd/ctl/gxe_fb.c


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

Allow keyboard server to handle more than one driver at the same time.

File:
1 edited

Legend:

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

    r56ad818 r9be360ee  
    11/*
    2  * Copyright (c) 2009 Jiri Svoboda
     2 * Copyright (c) 2011 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4444#include <stroke.h>
    4545
    46 static void gxe_fb_ctl_parse_scancode(int scancode);
    47 static int gxe_fb_ctl_init(kbd_port_ops_t *kbd_port);
    48 static void gxe_fb_ctl_set_ind(unsigned mods);
     46static void gxe_fb_ctl_parse_scancode(int);
     47static int gxe_fb_ctl_init(kbd_dev_t *);
     48static void gxe_fb_ctl_set_ind(unsigned);
    4949
    5050kbd_ctl_ops_t gxe_fb_ctl = {
     
    5353        .set_ind = gxe_fb_ctl_set_ind
    5454};
     55
     56static kbd_dev_t *kbd_dev;
    5557
    5658/** Scancode parser */
     
    218220};
    219221
    220 static int gxe_fb_ctl_init(kbd_port_ops_t *kbd_port)
     222static int gxe_fb_ctl_init(kbd_dev_t *kdev)
    221223{
    222         (void) kbd_port;
     224        kbd_dev = kdev;
    223225        ds = 0;
    224226
     
    233235        ds = gsp_step(&sp, ds, scancode, &mods, &key);
    234236        if (key != 0) {
    235                 stroke_sim(mods, key);
     237                stroke_sim(kbd_dev, mods, key);
    236238        }
    237239}
Note: See TracChangeset for help on using the changeset viewer.