mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
39
arch/x86/xbox/console.c
Normal file
39
arch/x86/xbox/console.c
Normal 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"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user