10 #include <gpxe/device.h>
11 #include <pxe_types.h>
15 * This structure is used by assembly code as well as C; do not alter
16 * this structure without editing pxeprefix.S to match.
19 /** PXENV+ structure address */
21 /** !PXE structure address */
25 /** Free base memory after load */
27 /** Free base memory prior to load */
28 UINT16_t restore_fbms;
29 /** PCI bus:dev.fn, or 0xffff */
30 UINT16_t pci_busdevfn;
31 /** ISAPnP card select number, or 0xffff */
33 /** ISAPnP read port, or 0xffff */
34 UINT16_t isapnp_read_port;
40 /** Driver-private data
42 * Use undi_set_drvdata() and undi_get_drvdata() to access this
46 } __attribute__ (( packed ));
49 * Set UNDI driver-private data
52 * @v priv Private data
54 static inline void undi_set_drvdata ( struct undi_device *undi, void *priv ) {
59 * Get UNDI driver-private data
62 * @ret priv Private data
64 static inline void * undi_get_drvdata ( struct undi_device *undi ) {