Changeset a84ddf0 in mainline for uspace/drv/char/xtkbd/xtkbd.c


Ignore:
Timestamp:
2011-12-27T11:11:01Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bff90ba
Parents:
336f03b
Message:

xtkbd: Doxygen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/xtkbd/xtkbd.c

    r336f03b ra84ddf0  
    4343
    4444#include "xtkbd.h"
     45/** Scancode set 1 table. */
    4546static const int scanmap_simple[] = {
    4647
     
    152153};
    153154/*----------------------------------------------------------------------------*/
     155#define SCANCODE_SET_EXTENDED 0xe0
     156/** Scancode set 1 extended codes table */
    154157static const int scanmap_e0[] = {
    155158        [0x38] = KC_RALT,
     
    179182    ipc_callid_t icallid, ipc_call_t *icall);
    180183/*----------------------------------------------------------------------------*/
     184/** Keyboard function ops. */
    181185static ddf_dev_ops_t kbd_ops = {
    182186        .default_handler = default_connection_handler
     
    230234}
    231235/*----------------------------------------------------------------------------*/
     236/** Get data and parse scancodes.
     237 * @param arg Pointter to xt_kbd_t structure.
     238 * @return Never.
     239 */
    232240int polling(void *arg)
    233241{
     
    243251                ssize_t size = char_dev_read(kbd->parent_sess, &code, 1);
    244252
    245                 if (code == 0xe0) {
     253                if (code == SCANCODE_SET_EXTENDED) {
    246254                        map = scanmap_e0;
    247255                        map_size = sizeof(scanmap_e0) / sizeof(int);
     
    279287}
    280288/*----------------------------------------------------------------------------*/
     289/** Default handler for IPC methods not handled by DDF.
     290 *
     291 * @param fun Device function handling the call.
     292 * @param icallid Call id.
     293 * @param icall Call data.
     294 */
    281295void default_connection_handler(ddf_fun_t *fun,
    282296    ipc_callid_t icallid, ipc_call_t *icall)
Note: See TracChangeset for help on using the changeset viewer.