Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
bootx.h
Go to the documentation of this file.
1 /*
2  * This file describes the structure passed from the BootX application
3  * (for MacOS) when it is used to boot Linux.
4  *
5  * Written by Benjamin Herrenschmidt.
6  */
7 
8 #ifndef __ASM_BOOTX_H__
9 #define __ASM_BOOTX_H__
10 
11 #include <uapi/asm/bootx.h>
12 
13 /* (*) The format of the colormap is 256 * 3 * 2 bytes. Each color index
14  * is represented by 3 short words containing a 16 bits (unsigned) color
15  * component. Later versions may contain the gamma table for direct-color
16  * devices here.
17  */
18 #define BOOTX_COLORTABLE_SIZE (256UL*3UL*2UL)
19 
20 /* BootX passes the device-tree using a format that comes from earlier
21  * ppc32 kernels. This used to match what is in prom.h, but not anymore
22  * so we now define it here
23  */
24 struct bootx_dt_prop {
26  int length;
29 };
30 
31 struct bootx_dt_node {
34  u32 phandle; /* not really available */
46 };
47 
48 extern void bootx_init(unsigned long r4, unsigned long phys);
49 
50 #endif