source: mainline/kernel/arch/arm32/include/mach/testarm/testarm.h@ 5ebdf94

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 5ebdf94 was a71c158, checked in by Martin Decky <martin@…>, 16 years ago

kernel output devices now suport multiple instances (except ski and sgcn, which respect the same interface, but behave as singletons)
if more than one output device gets initialized, the output is cloned to all of them
get rid of arch_grab_console() and arch_release_console() (output devices can implement a generic "redraw" method, input devices respect the "silent" global variable)
related cleanups and modifications

  • Property mode set to 100644
File size: 2.7 KB
Line 
1/*
2 * Copyright (c) 2007 Michal Kebrt
3 * Copyright (c) 2009 Vineeth Pillai
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * - Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * - Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * - The name of the author may not be used to endorse or promote products
16 * derived from this software without specific prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30/** @addtogroup arm32gxemul GXemul
31 * @brief GXemul machine specific parts.
32 * @ingroup arm32
33 * @{
34 */
35/** @file
36 * @brief GXemul peripheries drivers declarations.
37 */
38
39#ifndef KERN_arm32_MACHINE_H_
40#define KERN_arm32_MACHINE_H_
41
42#include <arch/machine_func.h>
43
44/** Last interrupt number (beginning from 0) whose status is probed
45 * from interrupt controller
46 */
47#define GXEMUL_IRQC_MAX_IRQ 8
48#define GXEMUL_KBD_IRQ 2
49#define GXEMUL_TIMER_IRQ 4
50
51/** Timer frequency */
52#define GXEMUL_TIMER_FREQ 100
53
54#define GXEMUL_KBD_ADDRESS 0x10000000
55#define GXEMUL_MP_ADDRESS 0x11000000
56#define GXEMUL_FB_ADDRESS 0x12000000
57#define GXEMUL_RTC_ADDRESS 0x15000000
58#define GXEMUL_IRQC_ADDRESS 0x16000000
59
60extern void *gxemul_kbd;
61extern void *gxemul_rtc;
62extern void *gxemul_irqc;
63
64#define GXEMUL_HALT_OFFSET 0x010
65#define GXEMUL_RTC_FREQ_OFFSET 0x100
66#define GXEMUL_MP_MEMSIZE_OFFSET 0x090
67#define GXEMUL_RTC_ACK_OFFSET 0x110
68
69extern void gxemul_init(void);
70extern void gxemul_output_init(void);
71extern void gxemul_input_init(void);
72extern void gxemul_timer_irq_start(void);
73extern void gxemul_cpu_halt(void);
74extern void gxemul_irq_exception(int exc_no, istate_t *istate);
75extern uintptr_t gxemul_get_memory_size(void);
76extern void gxemul_frame_init(void);
77
78
79#endif
80
81/** @}
82 */
Note: See TracBrowser for help on using the repository browser.