Changeset 8e7c9fe in mainline for kernel/genarch/src/kbrd/kbrd.c


Ignore:
Timestamp:
2014-09-12T03:45:25Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c53b58e
Parents:
3eb0c85 (diff), 105d8d6 (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

most usb changes were reverted. blink and usbmass were fixed
known problems:
ehci won't initialize
usbmast asserts on unmount (happens on mainline too)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/kbrd/kbrd.c

    r3eb0c85 r8e7c9fe  
    5656#include <arch.h>
    5757#include <macros.h>
     58#include <str.h>
    5859
    5960#define IGNORE_CODE  0x7f
     
    6566
    6667static indev_operations_t kbrd_raw_ops = {
    67         .poll = NULL
     68        .poll = NULL,
     69        .signal = NULL
    6870};
    6971
     
    104106        bool shift;
    105107        bool capslock;
     108        wchar_t ch;
    106109       
    107110        spinlock_lock(&instance->keylock);
     
    127130               
    128131                if (shift)
    129                         indev_push_character(instance->sink, sc_secondary_map[sc]);
     132                        ch = sc_secondary_map[sc];
    130133                else
    131                         indev_push_character(instance->sink, sc_primary_map[sc]);
     134                        ch = sc_primary_map[sc];
     135               
     136                switch (ch) {
     137                case U_PAGE_UP:
     138                        indev_signal(instance->sink, INDEV_SIGNAL_SCROLL_UP);
     139                        break;
     140                case U_PAGE_DOWN:
     141                        indev_signal(instance->sink, INDEV_SIGNAL_SCROLL_DOWN);
     142                        break;
     143                default:
     144                        indev_push_character(instance->sink, ch);
     145                }
     146               
    132147                break;
    133148        }
Note: See TracChangeset for help on using the changeset viewer.