summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe
diff options
context:
space:
mode:
authorMichael Brown2007-07-31 15:05:03 +0200
committerMichael Brown2007-07-31 15:05:03 +0200
commit291d69d7fd618d11fdcae010af319094cdf4d973 (patch)
tree2dc014e682363b61f897cf7aba2246f2183d4a3b /src/include/gpxe
parentFix endianness of "shelf" field (diff)
downloadipxe-291d69d7fd618d11fdcae010af319094cdf4d973.tar.gz
ipxe-291d69d7fd618d11fdcae010af319094cdf4d973.tar.xz
ipxe-291d69d7fd618d11fdcae010af319094cdf4d973.zip
Added support for draft version of the AoE Boot Firmware Table.
Diffstat (limited to 'src/include/gpxe')
-rw-r--r--src/include/gpxe/abft.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/include/gpxe/abft.h b/src/include/gpxe/abft.h
new file mode 100644
index 000000000..1c651ef11
--- /dev/null
+++ b/src/include/gpxe/abft.h
@@ -0,0 +1,35 @@
+#ifndef _GPXE_ABFT_H
+#define _GPXE_ABFT_H
+
+/** @file
+ *
+ * AoE boot firmware table
+ *
+ */
+
+#include <stdint.h>
+#include <gpxe/acpi.h>
+#include <gpxe/if_ether.h>
+
+/** AoE boot firmware table signature */
+#define ABFT_SIG "aBFT"
+
+/**
+ * AoE Boot Firmware Table (aBFT)
+ */
+struct abft_table {
+ /** ACPI header */
+ struct acpi_description_header acpi;
+ /** AoE shelf */
+ uint16_t shelf;
+ /** AoE slot */
+ uint8_t slot;
+ /** Reserved */
+ uint8_t reserved_a;
+ /** MAC address */
+ uint8_t mac[ETH_ALEN];
+} __attribute__ (( packed ));
+
+extern void abft_fill_data ( struct aoe_session *aoe );
+
+#endif /* _GPXE_ABFT_H */