Changeset 973be64e in mainline for arch/mips32/include


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.

Location:
arch/mips32/include
Files:
1 added
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • arch/mips32/include/console.h

    r705b4149 r973be64e  
    3131
    3232
    33 #define VIDEORAM        0xB0000000
    34 
    35 #define SERIAL_PORT_BASE        ((char *) 0xB80003f8 )
    36 #define SERIAL_LSR              ((char *) (SERIAL_PORT_BASE + 5))
    37 #define TRANSMIT_EMPTY_BIT      5         
    38 
    3933void console_init(void);
    4034
  • arch/mips32/include/drivers/arc.h

    r705b4149 r973be64e  
    3131
    3232#include <arch/types.h>
     33#include <console/chardev.h>
    3334
    3435#define ARC_BASE_ADDR 0x1000;
     
    213214extern void arc_print_memory_map(void);
    214215extern int arc_enabled(void);
    215 extern void arc_putchar(char ch);
    216216extern void arc_print_devices(void);
    217 extern int arc_getchar(void);
    218217void arc_frame_init(void);
     218chardev_t * arc_console(void);
    219219
    220220#endif
  • 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
  • arch/mips32/include/interrupt.h

    r705b4149 r973be64e  
    3232#include <arch/exception.h>
    3333
     34#define IVT_ITEMS   32
     35
    3436#define IRQ2    2
    3537#define IRQ3    3
    3638#define IRQ7    7
    3739
    38 #define KEYBOARD_IRQ    IRQ2
    3940#define TIMER_IRQ       IRQ7
    4041
    4142extern void interrupt(struct exception_regdump *pstate);
     43extern void interrupt_init(void);
    4244
    4345#endif
Note: See TracChangeset for help on using the changeset viewer.