Changeset 56ad818 in mainline for uspace/srv/hid/kbd/ctl/sun.c


Ignore:
Timestamp:
2011-06-11T20:29:41Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9be360ee
Parents:
b1bdc7a4
Message:

Control keyboard ctl modules through ops structures. Always compile in
all ctl modules.

File:
1 edited

Legend:

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

    rb1bdc7a4 r56ad818  
    4242#include <kbd_port.h>
    4343
     44static void sun_ctl_parse_scancode(int scancode);
     45static int sun_ctl_init(kbd_port_ops_t *kbd_port);
     46static void sun_ctl_set_ind(unsigned mods);
     47
     48kbd_ctl_ops_t sun_ctl = {
     49        .parse_scancode = sun_ctl_parse_scancode,
     50        .init = sun_ctl_init,
     51        .set_ind = sun_ctl_set_ind
     52};
     53
    4454#define KBD_KEY_RELEASE         0x80
    4555#define KBD_ALL_KEYS_UP         0x7f
     
    4757static int scanmap_simple[];
    4858
    49 int kbd_ctl_init(kbd_port_ops_t *kbd_port)
     59static int sun_ctl_init(kbd_port_ops_t *kbd_port)
    5060{
    5161        return 0;
    5262}
    5363
    54 void kbd_ctl_parse_scancode(int scancode)
     64static void sun_ctl_parse_scancode(int scancode)
    5565{
    5666        kbd_event_type_t type;
     
    7585}
    7686
    77 void kbd_ctl_set_ind(unsigned mods)
     87static void sun_ctl_set_ind(unsigned mods)
    7888{
    7989        (void) mods;
Note: See TracChangeset for help on using the changeset viewer.