btext.h

Go to the documentation of this file.
00001 /*
00002  * This file describes the structure passed from the BootX application
00003  * (for MacOS) when it is used to boot Linux.
00004  *
00005  * Written by Benjamin Herrenschmidt.
00006  *  
00007  * Move to LinuxBIOS by LYH  yhlu@tyan.com
00008  *
00009  */
00010 
00011 
00012 #ifndef _BTEXT_H__
00013 #define _BTEXT_H__
00014 
00015 #if 1
00016 #define u32 unsigned int
00017 #define u16 unsigned short
00018 #define u8 unsigned char
00019 #endif
00020 
00021 /* Here are the boot informations that are passed to the bootstrap
00022  * Note that the kernel arguments and the device tree are appended
00023  * at the end of this structure. */
00024 typedef struct boot_infos
00025 {
00026 
00027     /* NEW (vers. 2) this holds the current _logical_ base addr of
00028        the frame buffer (for use by early boot message) */
00029     u8*       logicalDisplayBase;
00030 
00031 
00032     /* Some infos about the current MacOS display */
00033     u32       dispDeviceRect[4];       /* left,top,right,bottom */
00034     u32       dispDeviceDepth;         /* (8, 16 or 32) */
00035     u32       dispDeviceBase;          /* base address (physical) */
00036     u32       dispDeviceRowBytes;      /* rowbytes (in bytes) */
00037     u32       dispDeviceColorsOffset;  /* Colormap (8 bits only) or 0 (*) */
00038 
00039 
00040     /* The framebuffer size (optional, currently 0) */
00041     u32       frameBufferSize;         /* Represents a max size, can be 0. */
00042 
00043 
00044 } boot_infos_t;
00045 
00046 /* (*) The format of the colormap is 256 * 3 * 2 bytes. Each color index is represented
00047  * by 3 short words containing a 16 bits (unsigned) color component.
00048  * Later versions may contain the gamma table for direct-color devices here.
00049  */
00050 #define BOOTX_COLORTABLE_SIZE    (256UL*3UL*2UL)
00051 
00052 
00053 /*
00054  * Definitions for using the procedures in btext.c.
00055  *
00056  * Benjamin Herrenschmidt <benh@kernel.crashing.org>
00057  */
00058 
00059 extern boot_infos_t disp_bi;
00060 extern u32 boot_text_mapped;
00061 
00062 #endif /* _BTEXT_H */

Generated on Tue Apr 6 20:01:06 2010 for gPXE by  doxygen 1.5.7.1