Subversion Repositories HelenOS

Rev

Rev 3478 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3478 Rev 3529
Line 42... Line 42...
42
#include <print.h>
42
#include <print.h>
43
#include <ddi/device.h>
43
#include <ddi/device.h>
44
#include <mm/page.h>
44
#include <mm/page.h>
45
#include <arch/machine.h>
45
#include <arch/machine.h>
46
#include <arch/debug/print.h>
46
#include <arch/debug/print.h>
-
 
47
#include <genarch/fb/fb.h>
-
 
48
#include <genarch/fb/visuals.h>
47
 
49
 
48
/* Addresses of devices. */
50
/* Addresses of devices. */
49
#define GXEMUL_VIDEORAM            0x10000000
51
#define GXEMUL_VIDEORAM            0x10000000
50
#define GXEMUL_KBD                 0x10000000
52
#define GXEMUL_KBD                 0x10000000
51
#define GXEMUL_HALT_OFFSET         0x10
53
#define GXEMUL_HALT_OFFSET         0x10
Line 107... Line 109...
107
static inline void gxemul_irqc_unmask(uint32_t irq)
109
static inline void gxemul_irqc_unmask(uint32_t irq)
108
{
110
{
109
    *((uint32_t *) gxemul_hw_map.irqc_unmask) = irq;
111
    *((uint32_t *) gxemul_hw_map.irqc_unmask) = irq;
110
}
112
}
111
 
113
 
-
 
114
/** Initializes the gxemul testarm frame buffer */
-
 
115
void gxemul_fb_init(void)
-
 
116
{
-
 
117
    fb_init(gxemul_get_fb_address(), 640, 480, 1920, VISUAL_RGB_8_8_8);
-
 
118
}
112
 
119
 
113
/** Initializes #gxemul_hw_map. */
120
/** Initializes #gxemul_hw_map. */
114
void gxemul_hw_map_init(void)
121
void gxemul_hw_map_init(void)
115
{
122
{
116
    gxemul_hw_map.videoram = hw_map(GXEMUL_VIDEORAM, PAGE_SIZE);
123
    gxemul_hw_map.videoram = hw_map(GXEMUL_VIDEORAM, PAGE_SIZE);