initial import of openbios--main--1.0--patch-26

git-svn-id: svn://coreboot.org/openbios/openbios-devel@1 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Stefan Reinauer
2006-04-26 15:08:19 +00:00
commit 5c9eb9b45b
522 changed files with 83237 additions and 0 deletions

39
arch/x86/xbox/console.c Normal file
View File

@@ -0,0 +1,39 @@
/*
* Xbox framebuffer - Video + Console
*
* Copyright (C) 2005 Ed Schouten <ed@fxq.nl>,
* Stefan Reinauer <stepan@openbios.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
*/
#include "openbios/config.h"
#include "openbios/bindings.h"
#include "libc/diskio.h"
typedef struct osi_fb_info {
unsigned long mphys;
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"