Changeset 973be64e in mainline for arch/ia32/src/drivers/i8042.c


Ignore:
Timestamp:
2005-12-10T00:19:57Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fcfac420
Parents:
705b4149
Message:

Added generic exc_register/exc_dispatch functions,
copied from ia32 architecture. Currently only mips32 uses them.

The chardev_t can now be both input & output device (was
needed for serial driver).

Broken other architectures - ia64, sparc, powerpc will not compile.

Mips32 supports input on all msim, gxemul, indy(tested emulation
in gxemul, loses characters), simics. Simics serial line
is done using polling, I was unable to make it produce
an interrupt when the key was pressed.

File:
1 edited

Legend:

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

    r705b4149 r973be64e  
    6767static volatile int lockflags;          /**< Tracking of multiple keys lockings. */
    6868
    69 static void i8042_suspend(void);
    70 static void i8042_resume(void);
     69static void i8042_suspend(chardev_t *);
     70static void i8042_resume(chardev_t *);
    7171
    7272static chardev_t kbrd;
     
    242242        trap_virtual_enable_irqs(1<<IRQ_KBD);
    243243        spinlock_initialize(&keylock, "i8042_lock");
    244         chardev_initialize(&kbrd, &ops);
     244        chardev_initialize("i8042_kbd", &kbrd, &ops);
    245245        stdin = &kbrd;
    246246}
     
    323323
    324324/* Called from getc(). */
    325 void i8042_resume(void)
     325void i8042_resume(chardev_t *d)
    326326{
    327327}
    328328
    329329/* Called from getc(). */
    330 void i8042_suspend(void)
    331 {
    332 }
     330void i8042_suspend(chardev_t *d)
     331{
     332}
Note: See TracChangeset for help on using the changeset viewer.