abft.h File Reference

AoE boot firmware table. More...

#include <stdint.h>
#include <gpxe/acpi.h>
#include <gpxe/if_ether.h>

Go to the source code of this file.

Data Structures

struct  abft_table
 AoE Boot Firmware Table (aBFT). More...

Defines

#define ABFT_SIG   "aBFT"
 AoE boot firmware table signature.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
void abft_fill_data (struct aoe_session *aoe)
 Fill in all variable portions of aBFT.

Variables

struct abft_table packed
 AoE Boot Firmware Table (aBFT).


Detailed Description

AoE boot firmware table.

Definition in file abft.h.


Define Documentation

#define ABFT_SIG   "aBFT"

AoE boot firmware table signature.

Definition at line 17 of file abft.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

void abft_fill_data ( struct aoe_session aoe  ) 

Fill in all variable portions of aBFT.

Parameters:
aoe AoE session

Definition at line 50 of file abft.c.

References abftab, acpi_fix_checksum(), DBG, DBG_HD, net_device::ll_addr, aoe_session::major, memcpy, aoe_session::minor, and aoe_session::netdev.

Referenced by aoeboot().

00050                                                 {
00051 
00052         /* Fill in boot parameters */
00053         abftab.shelf = aoe->major;
00054         abftab.slot = aoe->minor;
00055         memcpy ( abftab.mac, aoe->netdev->ll_addr, sizeof ( abftab.mac ) );
00056 
00057         /* Update checksum */
00058         acpi_fix_checksum ( &abftab.acpi );
00059 
00060         DBG ( "AoE boot firmware table:\n" );
00061         DBG_HD ( &abftab, sizeof ( abftab ) );
00062 }


Variable Documentation

AoE Boot Firmware Table (aBFT).


Generated on Tue Apr 6 20:01:12 2010 for gPXE by  doxygen 1.5.7.1