1 #ifndef _H_EFI_ADV_ 2 #define _H_EFI_ADV_ 3 4 #include "efi.h" 5 #include "fio.h" 6 #include <syslinux/firmware.h> 7 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" 12 13 #define ADV_MAGIC1 0x5a2d2fa5 /* Head signature */ 14 #define ADV_MAGIC2 0xa3041767 /* Total checksum */ 15 #define ADV_MAGIC3 0xdd28bf64 /* Tail signature */ 16 17 extern unsigned char syslinux_adv[2 * ADV_SIZE]; 18 extern void *__syslinux_adv_ptr; 19 extern ssize_t __syslinux_adv_size; 20 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); 26 27 #endif 28