1 /* SPDX-License-Identifier: GPL-2.0 */
3 * This file describes the structure passed from the BootX application
4 * (for MacOS) when it is used to boot Linux.
6 * Written by Benjamin Herrenschmidt.
9 #ifndef __ASM_BOOTX_H__
10 #define __ASM_BOOTX_H__
12 #include <uapi/asm/bootx.h>
14 /* (*) The format of the colormap is 256 * 3 * 2 bytes. Each color index
15 * is represented by 3 short words containing a 16 bits (unsigned) color
16 * component. Later versions may contain the gamma table for direct-color
19 #define BOOTX_COLORTABLE_SIZE (256UL*3UL*2UL)
21 /* BootX passes the device-tree using a format that comes from earlier
22 * ppc32 kernels. This used to match what is in prom.h, but not anymore
23 * so we now define it here
25 struct bootx_dt_prop
{
32 struct bootx_dt_node
{
35 u32 phandle
; /* not really available */
49 extern void bootx_init(unsigned long r4
, unsigned long phys
);