abft.c File Reference

AoE Boot Firmware Table. More...

#include <realmode.h>
#include <gpxe/aoe.h>
#include <gpxe/netdevice.h>
#include <gpxe/abft.h>

Go to the source code of this file.

Defines

#define abftab   __use_data16 ( abftab )

Functions

 FILE_LICENCE (GPL2_OR_LATER)
struct abft_table __data16 (abftab)
 The aBFT used by gPXE.
void abft_fill_data (struct aoe_session *aoe)
 Fill in all variable portions of aBFT.


Detailed Description

AoE Boot Firmware Table.

Definition in file abft.c.


Define Documentation

#define abftab   __use_data16 ( abftab )

Definition at line 32 of file abft.c.

Referenced by abft_fill_data().


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

struct abft_table __data16 ( abftab   )  [read]

The aBFT used by gPXE.

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 }


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