Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. * Move to LinuxBIOS by LYH yhlu@tyan.com
  8. *
  9. */
  10. #ifndef _BTEXT_H__
  11. #define _BTEXT_H__
  12. #if 1
  13. #define u32 unsigned int
  14. #define u16 unsigned short
  15. #define u8 unsigned char
  16. #endif
  17. /* Here are the boot informations that are passed to the bootstrap
  18. * Note that the kernel arguments and the device tree are appended
  19. * at the end of this structure. */
  20. typedef struct boot_infos
  21. {
  22. /* NEW (vers. 2) this holds the current _logical_ base addr of
  23. the frame buffer (for use by early boot message) */
  24. u8* logicalDisplayBase;
  25. /* Some infos about the current MacOS display */
  26. u32 dispDeviceRect[4]; /* left,top,right,bottom */
  27. u32 dispDeviceDepth; /* (8, 16 or 32) */
  28. u32 dispDeviceBase; /* base address (physical) */
  29. u32 dispDeviceRowBytes; /* rowbytes (in bytes) */
  30. u32 dispDeviceColorsOffset; /* Colormap (8 bits only) or 0 (*) */
  31. /* The framebuffer size (optional, currently 0) */
  32. u32 frameBufferSize; /* Represents a max size, can be 0. */
  33. } boot_infos_t;
  34. /* (*) The format of the colormap is 256 * 3 * 2 bytes. Each color index is represented
  35. * by 3 short words containing a 16 bits (unsigned) color component.
  36. * Later versions may contain the gamma table for direct-color devices here.
  37. */
  38. #define BOOTX_COLORTABLE_SIZE (256UL*3UL*2UL)
  39. /*
  40. * Definitions for using the procedures in btext.c.
  41. *
  42. * Benjamin Herrenschmidt <benh@kernel.crashing.org>
  43. */
  44. extern boot_infos_t disp_bi;
  45. extern u32 boot_text_mapped;
  46. #endif /* _BTEXT_H */