Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * This file describes the structure passed from the BootX application
0004  * (for MacOS) when it is used to boot Linux.
0005  *
0006  * Written by Benjamin Herrenschmidt.
0007  */
0008 
0009 #ifndef __ASM_BOOTX_H__
0010 #define __ASM_BOOTX_H__
0011 
0012 #include <uapi/asm/bootx.h>
0013 
0014 /* (*) The format of the colormap is 256 * 3 * 2 bytes. Each color index
0015  * is represented by 3 short words containing a 16 bits (unsigned) color
0016  * component. Later versions may contain the gamma table for direct-color
0017  * devices here.
0018  */
0019 #define BOOTX_COLORTABLE_SIZE    (256UL*3UL*2UL)
0020 
0021 /* BootX passes the device-tree using a format that comes from earlier
0022  * ppc32 kernels. This used to match what is in prom.h, but not anymore
0023  * so we now define it here
0024  */
0025 struct bootx_dt_prop {
0026     u32 name;
0027     int length;
0028     u32 value;
0029     u32 next;
0030 };
0031 
0032 struct bootx_dt_node {
0033     u32 unused0;
0034     u32 unused1;
0035     u32 phandle;    /* not really available */
0036     u32 unused2;
0037     u32 unused3;
0038     u32 unused4;
0039     u32 unused5;
0040     u32 full_name;
0041     u32 properties;
0042     u32 parent;
0043     u32 child;
0044     u32 sibling;
0045     u32 next;
0046     u32 allnext;
0047 };
0048 
0049 extern void bootx_init(unsigned long r4, unsigned long phys);
0050 
0051 #endif