"Fossies" - the Fresh Open Source Software Archive

Member "syslinux-6.03/efi/adv.h" (6 Oct 2014, 806 Bytes) of package /linux/misc/syslinux-6.03.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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