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:
Blue Swirl
2008-12-05 18:31:27 +00:00
parent ce3424579b
commit e338f06ba1
9 changed files with 34 additions and 67 deletions

View File

@@ -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();

View File

@@ -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"