Changeset d0688a3 in mainline


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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • HelenOS.config

    r449d4ecc rd0688a3  
    342342@ "generic" Monitor or serial line
    343343@ "none" No output device
    344 ! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=sparc64|(PLATFORM=ia64&MACHINE=i460GX)|(PLATFORM=mips32&MACHINE=msim)] CONFIG_HID_OUT (choice)
     344! [PLATFORM=ia32|PLATFORM=amd64|PLATFORM=sparc64|PLATFORM=ppc32|(PLATFORM=ia64&MACHINE=i460GX)|(PLATFORM=mips32&MACHINE=msim)] CONFIG_HID_OUT (choice)
    345345
    346346% Output device class
     
    410410
    411411% Framebuffer support
    412 ! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64)] CONFIG_FB (y/n)
     412! [CONFIG_HID_OUT=generic&(PLATFORM=ia32|PLATFORM=amd64|PLATFORM=ppc32)] CONFIG_FB (y/n)
    413413
    414414% Framebuffer support
  • defaults/ppc32/Makefile.config

    r449d4ecc rd0688a3  
    2323CONFIG_TEST = y
    2424
    25 # Input device class
    26 CONFIG_HID_IN = keyboard
    27 
    2825# Output device class
    29 CONFIG_HID_OUT = monitor
     26CONFIG_HID_OUT = generic
    3027
    3128# Framebuffer support
  • 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       
  • kernel/arch/ppc32/src/ppc32.c

    r449d4ecc rd0688a3  
    8080{
    8181        if (config.cpu_active == 1) {
     82
     83#ifdef CONFIG_FB
    8284                /* Initialize framebuffer */
    8385                if (bootinfo.screen.addr) {
     
    110112                        fb_init(&prop);
    111113                }
     114#endif
    112115               
    113116                /* Initialize IRQ routing */
     
    160163void arch_grab_console(void)
    161164{
     165#ifdef CONFIG_FB
    162166        fb_redraw();
     167#endif
    163168}
    164169
Note: See TracChangeset for help on using the changeset viewer.