iPXE
sdi.h
Go to the documentation of this file.
1#ifndef _SDI_H
2#define _SDI_H
4/** @file
5 *
6 * System Deployment Image (SDI)
7 *
8 */
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11
12/** SDI image header */
13struct sdi_header {
14 /** Signature */
16 /** Version (as an ASCII string) */
18 /** Reserved */
20 /** Boot code offset */
22 /** Boot code size */
24} __attribute__ (( packed ));
25
26/** SDI image signature */
27#define SDI_MAGIC \
28 ( ( '$' << 0 ) | ( 'S' << 8 ) | ( 'D' << 16 ) | ( 'I' << 24 ) )
29
30/** SDI boot segment */
31#define SDI_BOOT_SEG 0x0000
32
33/** SDI boot offset */
34#define SDI_BOOT_OFF 0x7c00
35
36/** Constant to binary-OR with physical address of SDI image */
37#define SDI_WTF 0x41
38
39#endif /* _SDI_H */
unsigned int uint32_t
Definition stdint.h:12
unsigned long long uint64_t
Definition stdint.h:13
unsigned char uint8_t
Definition stdint.h:10
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define __attribute__(x)
Definition compiler.h:10
SDI image header.
Definition sdi.h:13
uint64_t boot_offset
Boot code offset.
Definition sdi.h:21
uint32_t magic
Signature.
Definition sdi.h:15
uint64_t boot_size
Boot code size.
Definition sdi.h:23
uint8_t reserved[8]
Reserved.
Definition sdi.h:19
uint32_t version
Version (as an ASCII string)
Definition sdi.h:17