vxworks.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * (C) Copyright 2008
  3. * Niklaus Giger, niklaus.giger@member.fsf.org
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef _VXWORKS_H_
  8. #define _VXWORKS_H_
  9. /*
  10. * VxWorks x86 E820 related stuff
  11. *
  12. * VxWorks on x86 gets E820 information from pre-defined address @
  13. * 0x4a00 and 0x4000. At 0x4a00 it's an information table defined
  14. * by VxWorks and the actual E820 table entries starts from 0x4000.
  15. * As defined by the BIOS E820 spec, the maximum number of E820 table
  16. * entries is 128 and each entry occupies 20 bytes, so it's 128 * 20
  17. * = 2560 (0xa00) bytes in total. That's where VxWorks stores some
  18. * information that is retrieved from the BIOS E820 call and saved
  19. * later for sanity test during the kernel boot-up.
  20. */
  21. #define VXWORKS_E820_DATA_ADDR 0x4000
  22. #define VXWORKS_E820_INFO_ADDR 0x4a00
  23. /* E820 info signatiure "SMAP" - System MAP */
  24. #define E820_SIGNATURE 0x534d4150
  25. struct e820info {
  26. u32 sign; /* "SMAP" signature */
  27. u32 x0; /* don't care, used by VxWorks */
  28. u32 x1; /* don't care, used by VxWorks */
  29. u32 x2; /* don't care, used by VxWorks */
  30. u32 addr; /* last e820 table entry addr */
  31. u32 x3; /* don't care, used by VxWorks */
  32. u32 entries; /* e820 table entry count */
  33. u32 error; /* must be zero */
  34. };
  35. int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
  36. void boot_prep_vxworks(bootm_headers_t *images);
  37. void boot_jump_vxworks(bootm_headers_t *images);
  38. void do_bootvx_fdt(bootm_headers_t *images);
  39. #endif