Changeset aec2ad4 in mainline for uspace/drv/usbhid/layout.h


Ignore:
Timestamp:
2011-02-04T11:48:33Z (14 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
103a3626
Parents:
ba5ab09 (diff), 3597dab (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 from usb/development

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/layout.h

    rba5ab09 raec2ad4  
    11/*
    2  * Copyright (c) 2010 Vojtech Horky
     2 * Copyright (c) 2009 Jiri Svoboda
     3 * Copyright (c) 2011 Lubos Slovak
     4 * (copied from /uspace/srv/hid/kbd/include/layout.h)
    35 * All rights reserved.
    46 *
     
    2729 */
    2830
    29 /** @addtogroup drvusbvhc
     31/** @addtogroup drvusbhid
    3032 * @{
    3133 */
    3234/** @file
    33  * @brief Debugging support.
     35 * Keyboard layout.
    3436 */
    35 #include <stdio.h>
    36 #include <ipc/ipc.h>
    37 #include <usb/debug.h>
    3837
    39 #include "vhcd.h"
     38#ifndef USBHID_LAYOUT_H_
     39#define USBHID_LAYOUT_H_
    4040
     41#include <sys/types.h>
     42#include <io/console.h>
    4143
    42 /** Debug print informing of invalid call.
    43  */
    44 void dprintf_inval_call(int level, ipc_call_t call, sysarg_t phone_hash)
    45 {
    46         dprintf(level, "phone%#x: invalid call [%u (%u, %u, %u, %u, %u)]",
    47             phone_hash,
    48             IPC_GET_IMETHOD(call),
    49             IPC_GET_ARG1(call), IPC_GET_ARG2(call), IPC_GET_ARG3(call),
    50             IPC_GET_ARG4(call), IPC_GET_ARG5(call));
    51 }
     44typedef struct {
     45        void (*reset)(void);
     46        wchar_t (*parse_ev)(console_event_t *);
     47} layout_op_t;
     48
     49extern layout_op_t us_qwerty_op;
     50extern layout_op_t us_dvorak_op;
     51extern layout_op_t cz_op;
     52
     53#endif
    5254
    5355/**
Note: See TracChangeset for help on using the changeset viewer.