Changeset 607c5f9 in mainline for arch/ia32/src/drivers/i8042.c


Ignore:
Timestamp:
2005-11-23T00:16:03Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a83a802
Parents:
2677758
Message:

Enable dummy kconsole for ia32 and amd64 (UP mode works).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/drivers/i8042.c

    r2677758 r607c5f9  
    3636#include <synch/spinlock.h>
    3737#include <typedefs.h>
     38#include <console/chardev.h>
     39#include <console/console.h>
    3840
    3941/**
     
    5557static volatile int keyflags;           /**< Tracking of multiple keypresses. */
    5658static volatile int lockflags;          /**< Tracking of multiple keys lockings. */
     59
     60static void i8042_suspend(void);
     61static void i8042_resume(void);
     62
     63static chardev_t kbrd;
     64static chardev_operations_t ops = {
     65        .suspend = i8042_suspend,
     66        .resume = i8042_resume
     67};
    5768
    5869/** Primary meaning of scancodes. */
     
    221232        trap_register(VECTOR_KBD, i8042_interrupt);
    222233        spinlock_initialize(&keylock);
     234        chardev_initialize(&kbrd, &ops);
     235        stdin = &kbrd;
    223236}
    224237
     
    293306                if (shift)
    294307                        map = sc_secondary_map;
    295                 putchar(map[sc]);
     308                chardev_push_character(&kbrd, map[sc]);
    296309                break;
    297310        }
    298311        spinlock_unlock(&keylock);
    299312}
     313
     314/* Called from getc(). */
     315void i8042_resume(void)
     316{
     317}
     318
     319/* Called from getc(). */
     320void i8042_suspend(void)
     321{
     322}
Note: See TracChangeset for help on using the changeset viewer.