mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-22 15:33:14 +00:00
36 lines
611 B
C
36 lines
611 B
C
|
#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 */
|