1 #include <syslinux/config.h>
4 extern far_ptr_t InitStack
, StrucPtr
;
7 * IP information. Note that the field are in the same order as the
8 * Linux kernel expects in the ip= option.
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
;