Changeset 973be64e in mainline for arch/mips32/include/drivers/msim.h


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 moved

Legend:

Unmodified
Added
Removed
  • arch/mips32/include/drivers/msim.h

    r705b4149 r973be64e  
    11/*
    2  * Copyright (C) 2005 Jakub Jermar
     2 * Copyright (C) 2005 Ondrej Palkovsky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 #ifndef __mips32_KEYBOARD_H__
    30 #define __mips32_KEYBOARD_H__
     29#ifndef _MSIM_H_
     30#define _MSIM_H_
    3131
    32 #include <arch/types.h>
    33 #include <arch/interrupt.h>
     32#include <console/chardev.h>
    3433
     34#define MSIM_VIDEORAM            0xB0000000
    3535/** Address of 'keyboard' device. */
    36 #define KEYBOARD_ADDRESS                0xB0000000
     36#define MSIM_KBD_ADDRESS                0xB0000000
     37#define MSIM_KBD_IRQ    2
    3738
    38 extern void keyboard_init(void);
    39 extern void keyboard(void);
    40 extern void keyboard_poll(void);
     39chardev_t * msim_console(void);
    4140
    4241#endif
Note: See TracChangeset for help on using the changeset viewer.