mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Initialize VGA from PCI configuration (Laurent Vivier)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@281 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -51,7 +51,7 @@ arch_init( void )
|
||||
ob_floppy_init();
|
||||
#endif
|
||||
#ifdef CONFIG_XBOX
|
||||
init_video();
|
||||
init_video(phys_to_virt(0x3C00000), 640, 480, 32, 2560);
|
||||
node_methods_init();
|
||||
#endif
|
||||
device_end();
|
||||
|
||||
@@ -19,19 +19,6 @@ typedef struct osi_fb_info {
|
||||
int rb, w, h, depth;
|
||||
} osi_fb_info_t;
|
||||
|
||||
int Xbox_GetFBInfo (osi_fb_info_t *fb)
|
||||
{
|
||||
fb->w = 640;
|
||||
fb->h = 480;
|
||||
fb->depth = 32;
|
||||
fb->rb = fb->w * 4; /* rgb + alpha */
|
||||
fb->mphys = phys_to_virt(0x3C00000); /* 60M - 64M */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define openbios_GetFBInfo(x) Xbox_GetFBInfo(x)
|
||||
|
||||
#include "../../../modules/video.c"
|
||||
#include "../../../modules/console.c"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user