Ignore:
Timestamp:
2011-06-17T16:48:53Z (14 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3a605be
Parents:
df8110d3 (diff), 98caf49 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/include/kbd_ctl.h

    rdf8110d3 rd900699  
    11/*
    2  * Copyright (c) 2009 Jiri Svoboda
    3  * Copyright (c) 2011 Lubos Slovak
    4  * (copied from /uspace/srv/hid/kbd/include/layout.h)
     2 * Copyright (c) 2011 Jiri Svoboda
    53 * All rights reserved.
    64 *
     
    2927 */
    3028
    31 /** @addtogroup drvusbhid
     29/** @addtogroup inputgen generic
     30 * @brief       Keyboard controller driver interface.
     31 * @ingroup  input
    3232 * @{
    3333 */
    3434/** @file
    35  * Keyboard layout.
    3635 */
    3736
    38 #ifndef USB_HID_LAYOUT_H_
    39 #define USB_HID_LAYOUT_H_
     37#ifndef KBD_CTL_H_
     38#define KBD_CTL_H_
    4039
    41 #include <sys/types.h>
    42 #include <io/console.h>
     40#include <kbd_port.h>
    4341
    44 typedef struct {
    45         void (*reset)(void);
    46         wchar_t (*parse_ev)(kbd_event_t *);
    47 } layout_op_t;
     42struct kbd_dev;
    4843
    49 extern layout_op_t us_qwerty_op;
    50 extern layout_op_t us_dvorak_op;
    51 extern layout_op_t cz_op;
     44typedef struct kbd_ctl_ops {
     45        void (*parse_scancode)(int);
     46        int (*init)(struct kbd_dev *);
     47        void (*set_ind)(struct kbd_dev *, unsigned);
     48} kbd_ctl_ops_t;
     49
     50extern kbd_ctl_ops_t apple_ctl;
     51extern kbd_ctl_ops_t gxe_fb_ctl;
     52extern kbd_ctl_ops_t kbdev_ctl;
     53extern kbd_ctl_ops_t pc_ctl;
     54extern kbd_ctl_ops_t stty_ctl;
     55extern kbd_ctl_ops_t sun_ctl;
    5256
    5357#endif
     
    5559/**
    5660 * @}
    57  */
     61 */
     62
Note: See TracChangeset for help on using the changeset viewer.