utils/isohybrid.c: Encode GPT partition names as UTF-16LE
[syslinux.git] / core / pxelinux-c.c
blobac23d82268bc99d6c7175fc5ca6e5dda6b2f057a
1 #include <syslinux/config.h>
2 #include <com32.h>
4 extern far_ptr_t InitStack, StrucPtr;
6 /*
7 * IP information. Note that the field are in the same order as the
8 * Linux kernel expects in the ip= option.
9 */
10 struct syslinux_ipinfo IPInfo;
11 uint16_t APIVer; /* PXE API version found */
13 __export void get_derivative_info(union syslinux_derivative_info *di)
15 di->pxe.filesystem = SYSLINUX_FS_PXELINUX;
16 di->pxe.apiver = APIVer;
17 di->pxe.pxenvptr = GET_PTR(StrucPtr);
18 di->pxe.pxenv_offs = StrucPtr.offs;
19 di->pxe.pxenv_seg = StrucPtr.seg;
20 di->pxe.stack = GET_PTR(InitStack);
21 di->pxe.stack_offs = InitStack.offs;
22 di->pxe.stack_seg = InitStack.seg;
23 di->pxe.ipinfo = &IPInfo;
24 di->pxe.myip = IPInfo.myip;