bootx.h 1.1 KB

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