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


Ignore:
Timestamp:
2011-06-11T22:06:47Z (14 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/apple.c

    r56ad818 r9be360ee  
    11/*
    2  * Copyright (c) 2010 Jiri Svoboda
     2 * Copyright (c) 2011 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4242#include <kbd_port.h>
    4343
    44 static void apple_ctl_parse_scancode(int scancode);
    45 static int apple_ctl_init(kbd_port_ops_t *kbd_port);
    46 static void apple_ctl_set_ind(unsigned mods);
     44static void apple_ctl_parse_scancode(int);
     45static int apple_ctl_init(kbd_dev_t *);
     46static void apple_ctl_set_ind(unsigned);
    4747
    4848kbd_ctl_ops_t apple_ctl = {
     
    5454#define KBD_KEY_RELEASE         0x80
    5555
     56static kbd_dev_t *kbd_dev;
     57
    5658static int scanmap[];
    5759
    58 static int apple_ctl_init(kbd_port_ops_t *kbd_port)
     60static int apple_ctl_init(kbd_dev_t *kdev)
    5961{
    60         (void) kbd_port;
     62        kbd_dev = kdev;
    6163        return 0;
    6264}
     
    7981        key = scanmap[scancode];
    8082        if (key != 0)
    81                 kbd_push_ev(type, key);
     83                kbd_push_ev(kbd_dev, type, key);
    8284}
    8385
Note: See TracChangeset for help on using the changeset viewer.