Changeset d0688a3 in mainline for kernel/arch/ppc32/src/drivers/cuda.c


Ignore:
Timestamp:
2009-03-13T10:08:39Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
afdce6eb
Parents:
449d4ecc
Message:

bring back kernel HID on ppc32
this concludes the transition from chardev_t to indev_t and outdev_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/drivers/cuda.c

    r449d4ecc rd0688a3  
    2727 */
    2828
    29 /** @addtogroup ppc32   
     29/** @addtogroup ppc32
    3030 * @{
    3131 */
     
    205205
    206206
    207 /* Called from getc(). */
    208 static void cuda_resume(chardev_t *d)
    209 {
    210 }
    211 
    212 
    213 /* Called from getc(). */
    214 static void cuda_suspend(chardev_t *d)
    215 {
    216 }
    217 
    218 
    219 static char key_read(chardev_t *d)
    220 {
    221         char ch;
    222        
    223         ch = 0;
    224         return ch;
    225 }
    226 
    227 
    228 static chardev_t kbrd;
    229 static chardev_operations_t ops = {
    230         .suspend = cuda_suspend,
    231         .resume = cuda_resume,
    232         .read = key_read
     207static indev_t kbrd;
     208static indev_operations_t ops = {
     209        .poll = NULL
    233210};
    234211
     
    252229{
    253230        int scan_code = cuda_get_scancode();
    254                
     231       
    255232        if (scan_code != -1) {
    256233                uint8_t scancode = (uint8_t) scan_code;
    257234                if ((scancode & 0x80) != 0x80)
    258                         chardev_push_character(&kbrd, lchars[scancode & 0x7f]);
     235                        indev_push_character(&kbrd, lchars[scancode & 0x7f]);
    259236        }
    260237}
     
    269246        cuda = (uint8_t *) hw_map(base, size);
    270247       
    271         chardev_initialize("cuda_kbd", &kbrd, &ops);
     248        indev_initialize("cuda_kbd", &kbrd, &ops);
    272249        stdin = &kbrd;
    273250       
Note: See TracChangeset for help on using the changeset viewer.