summaryrefslogtreecommitdiff
path: root/gpxe/src/arch/i386/include/gpxe/abft.h
blob: 9065e61ace31f68668105f744089f8d4f6a6288a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _GPXE_ABFT_H
#define _GPXE_ABFT_H

/** @file
 *
 * AoE boot firmware table
 *
 */

FILE_LICENCE ( GPL2_OR_LATER );

#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 */