X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/1d034f0a24ed466d5942689540fcbdc7ec262d05..HEAD:/IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ventoy.h diff --git a/IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ventoy.h b/IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ventoy.h index 286bb33..b759e9f 100644 --- a/IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ventoy.h +++ b/IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ventoy.h @@ -4,6 +4,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); +//#define VTOY_DEBUG 1 + #define grub_uint64_t uint64_t #define grub_uint32_t uint32_t #define grub_uint16_t uint16_t @@ -43,7 +45,7 @@ typedef struct ventoy_image_location { ventoy_guid guid; - /* image sector size, currently this value is always 2048 */ + /* image sector size, 2048/512 */ grub_uint32_t image_sector_size; /* disk sector size, normally the value is 512 */ @@ -84,9 +86,11 @@ typedef struct ventoy_os_param grub_uint64_t vtoy_img_location_addr; grub_uint32_t vtoy_img_location_len; - grub_uint64_t vtoy_reserved[4]; // Internal use by ventoy + grub_uint8_t vtoy_reserved[32]; // Internal use by ventoy - grub_uint8_t reserved[31]; + grub_uint8_t vtoy_disk_signature[4]; + + grub_uint8_t reserved[27]; }ventoy_os_param; typedef struct ventoy_iso9660_override @@ -182,6 +186,8 @@ typedef struct ventoy_sector_flag #define VENTOY_BOOT_FIXBIN_DRIVE 0xFD extern int g_debug; +extern int g_hddmode; +extern int g_bios_disk80; extern char *g_cmdline_copy; extern void *g_initrd_addr; extern size_t g_initrd_len;