Changeset 8333801 in mainline


Ignore:
Timestamp:
2006-06-06T12:42:42Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c782434
Parents:
99f3249
Message:

dummy ppc32 keyboard

File:
1 edited

Legend:

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

    r99f3249 r8333801  
    5050static volatile __u8 *cuda = (__u8 *) 0xf2000000;
    5151
     52
     53/* Called from getc(). */
     54static void cuda_resume(chardev_t *d)
     55{
     56}
     57
     58
     59/* Called from getc(). */
     60static void cuda_suspend(chardev_t *d)
     61{
     62}
     63
     64
     65static char key_read(chardev_t *d)
     66{
     67        char ch;
     68       
     69        ch = 0;
     70        return ch;
     71}
     72
     73
     74static chardev_t kbrd;
     75static chardev_operations_t ops = {
     76        .suspend = cuda_suspend,
     77        .resume = cuda_resume,
     78        .read = key_read
     79};
     80
    5281#include <print.h>
    5382static void cuda_irq(int n, istate_t *istate)
     
    6089        int_register(CUDA_IRQ, "cuda", cuda_irq);
    6190        pic_enable_interrupt(CUDA_IRQ);
     91       
     92        chardev_initialize("cuda_kbd", &kbrd, &ops);
     93        stdin = &kbrd;
    6294}
    6395
Note: See TracChangeset for help on using the changeset viewer.