bootx.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * This file describes the structure passed from the BootX application
  4. * (for MacOS) when it is used to boot Linux.
  5. *
  6. * Written by Benjamin Herrenschmidt.
  7. */
  8. #ifndef __ASM_BOOTX_H__
  9. #define __ASM_BOOTX_H__
  10. #include <uapi/asm/bootx.h>
  11. /* (*) The format of the colormap is 256 * 3 * 2 bytes. Each color index
  12. * is represented by 3 short words containing a 16 bits (unsigned) color
  13. * component. Later versions may contain the gamma table for direct-color
  14. * devices here.
  15. */
  16. #define BOOTX_COLORTABLE_SIZE (256UL*3UL*2UL)
  17. /* BootX passes the device-tree using a format that comes from earlier
  18. * ppc32 kernels. This used to match what is in prom.h, but not anymore
  19. * so we now define it here
  20. */
  21. struct bootx_dt_prop {
  22. u32 name;
  23. int length;
  24. u32 value;
  25. u32 next;
  26. };
  27. struct bootx_dt_node {
  28. u32 unused0;
  29. u32 unused1;
  30. u32 phandle; /* not really available */
  31. u32 unused2;
  32. u32 unused3;
  33. u32 unused4;
  34. u32 unused5;
  35. u32 full_name;
  36. u32 properties;
  37. u32 parent;
  38. u32 child;
  39. u32 sibling;
  40. u32 next;
  41. u32 allnext;
  42. };
  43. extern void bootx_init(unsigned long r4, unsigned long phys);
  44. #endif