/* SPDX-License-Identifier: GPL-2.0 */1/*2* This file describes the structure passed from the BootX application3* (for MacOS) when it is used to boot Linux.4*5* Written by Benjamin Herrenschmidt.6*/78#ifndef __ASM_BOOTX_H__9#define __ASM_BOOTX_H__1011#include <uapi/asm/bootx.h>1213/* (*) The format of the colormap is 256 * 3 * 2 bytes. Each color index14* is represented by 3 short words containing a 16 bits (unsigned) color15* component. Later versions may contain the gamma table for direct-color16* devices here.17*/18#define BOOTX_COLORTABLE_SIZE (256UL*3UL*2UL)1920/* BootX passes the device-tree using a format that comes from earlier21* ppc32 kernels. This used to match what is in prom.h, but not anymore22* so we now define it here23*/24struct bootx_dt_prop {25u32 name;26int length;27u32 value;28u32 next;29};3031struct bootx_dt_node {32u32 unused0;33u32 unused1;34u32 phandle; /* not really available */35u32 unused2;36u32 unused3;37u32 unused4;38u32 unused5;39u32 full_name;40u32 properties;41u32 parent;42u32 child;43u32 sibling;44u32 next;45u32 allnext;46};4748extern void bootx_init(unsigned long r4, unsigned long phys);4950#endif515253