Changeset 9be360ee in mainline for uspace/srv/hid/kbd/include/kbd.h


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/include/kbd.h

    r56ad818 r9be360ee  
    11/*
    22 * Copyright (c) 2006 Josef Cejka
     3 * Copyright (c) 2011 Jiri Svoboda
    34 * All rights reserved.
    45 *
     
    3839#define KBD_KBD_H_
    3940
     41#include <adt/list.h>
    4042#include <bool.h>
     43
     44struct kbd_port_ops;
     45struct kbd_ctl_ops;
     46
     47typedef struct kbd_dev {
     48        /** Link to kbd_devs list */
     49        link_t kbd_devs;
     50
     51        /** Port ops */
     52        struct kbd_port_ops *port_ops;
     53
     54        /** Ctl ops */
     55        struct kbd_ctl_ops *ctl_ops;
     56} kbd_dev_t;
    4157
    4258extern bool irc_service;
    4359extern int irc_phone;
    4460
    45 extern void kbd_push_scancode(int);
    46 extern void kbd_push_ev(int, unsigned int);
     61extern void kbd_push_scancode(kbd_dev_t *, int);
     62extern void kbd_push_ev(kbd_dev_t *, int, unsigned int);
    4763
    4864#endif
Note: See TracChangeset for help on using the changeset viewer.