iPXE
sdi.h
Go to the documentation of this file.
1 #ifndef _SDI_H
2 #define _SDI_H
3 
4 /** @file
5  *
6  * System Deployment Image (SDI)
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 /** SDI image header */
13 struct 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 long long uint64_t
Definition: stdint.h:13
struct sdi_header __attribute__((packed))
uint64_t boot_size
Boot code size.
Definition: sdi.h:23
uint32_t magic
Signature.
Definition: sdi.h:15
uint64_t boot_offset
Boot code offset.
Definition: sdi.h:21
unsigned char uint8_t
Definition: stdint.h:10
unsigned int uint32_t
Definition: stdint.h:12
uint8_t reserved[8]
Reserved.
Definition: sdi.h:19
SDI image header.
Definition: sdi.h:13
uint32_t version
Version (as an ASCII string)
Definition: sdi.h:17
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)