You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sdi.h 747B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _SDI_H
  2. #define _SDI_H
  3. /** @file
  4. *
  5. * System Deployment Image (SDI)
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. /** SDI image header */
  10. struct sdi_header {
  11. /** Signature */
  12. uint32_t magic;
  13. /** Version (as an ASCII string) */
  14. uint32_t version;
  15. /** Reserved */
  16. uint8_t reserved[8];
  17. /** Boot code offset */
  18. uint64_t boot_offset;
  19. /** Boot code size */
  20. uint64_t boot_size;
  21. } __attribute__ (( packed ));
  22. /** SDI image signature */
  23. #define SDI_MAGIC \
  24. ( ( '$' << 0 ) | ( 'S' << 8 ) | ( 'D' << 16 ) | ( 'I' << 24 ) )
  25. /** SDI boot segment */
  26. #define SDI_BOOT_SEG 0x0000
  27. /** SDI boot offset */
  28. #define SDI_BOOT_OFF 0x7c00
  29. /** Constant to binary-OR with physical address of SDI image */
  30. #define SDI_WTF 0x41
  31. #endif /* _SDI_H */