Changeset 9be360ee in mainline for uspace/srv/hid/kbd/port/z8530.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/port/z8530.c

    r56ad818 r9be360ee  
    4646#include <errno.h>
    4747
     48static kbd_dev_t *kbd_dev;
     49
    4850#define CHAN_A_STATUS  4
    4951#define CHAN_A_DATA    6
     
    8587static void z8530_irq_handler(ipc_callid_t iid, ipc_call_t *call);
    8688
    87 int z8530_port_init(void)
     89int z8530_port_init(kbd_dev_t *kdev)
    8890{
     91        kbd_dev = kdev;
     92       
    8993        sysarg_t kaddr;
    9094        if (sysinfo_get_value("kbd.address.kernel", &kaddr) != EOK)
     
    107111{
    108112        int scan_code = IPC_GET_ARG2(*call);
    109         kbd_push_scancode(scan_code);
     113        kbd_push_scancode(kbd_dev, scan_code);
    110114       
    111115        if (irc_service)
Note: See TracChangeset for help on using the changeset viewer.