memdisk: Force ld output format to 32-bits
[syslinux.git] / efi / adv.h
blob419ad3ba61455cf9990b4dd5b209ea0094090fe2
1 #ifndef _H_EFI_ADV_
2 #define _H_EFI_ADV_
4 #include "efi.h"
5 #include "fio.h"
6 #include <syslinux/firmware.h>
8 /* ADV information */
9 #define ADV_SIZE 512 /* Total size */
10 #define ADV_LEN (ADV_SIZE-3*4) /* Usable data size */
11 #define SYSLINUX_FILE "ldlinux.sys"
13 #define ADV_MAGIC1 0x5a2d2fa5 /* Head signature */
14 #define ADV_MAGIC2 0xa3041767 /* Total checksum */
15 #define ADV_MAGIC3 0xdd28bf64 /* Tail signature */
17 extern unsigned char syslinux_adv[2 * ADV_SIZE];
18 extern void *__syslinux_adv_ptr;
19 extern ssize_t __syslinux_adv_size;
21 /* TODO: Revisit to ensure if these functions need to be exported */
22 void syslinux_reset_adv(unsigned char *advbuf);
23 int syslinux_validate_adv(unsigned char *advbuf);
24 int read_adv(const char *path, const char *cfg);
25 int write_adv(const char *path, const char *cfg);
27 #endif