6 #include <syslinux/firmware.h>
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
);