[thunderx] Use ThunderxConfigProtocol to obtain board configuration
authorAdamczyk, Konrad <Konrad.Adamczyk@cavium.com>
Thu, 30 Mar 2017 13:54:59 +0000 (13:54 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 31 Mar 2017 06:08:13 +0000 (09:08 +0300)
commitfd6d1f4660a37d75acba1c64e2e5f137307bbc31
treee388a79ad9af808f3cb4c8482cb6121605ed9d6e
parenta66ac07165855d8144f69a68d5c0ab0eb36e97e2
[thunderx] Use ThunderxConfigProtocol to obtain board configuration

Following changes were introduced:
 - added GetBgxProp and GetLmacProp methods to ThunderxConfigProtocol
 - replaced direct BOARD_CFG access with usage of introduced methods
 - removed redundant BOARD_CFG
 - changed GUID of ThunderxConfigProtocol, as this is not compatible
   with previous version
 - changed UINTN* to UINT64* buffer type to fix issue on 32-bit
   platforms with MAC address

This change allows us to avoid alignment of BOARD_CFG definitions
every time it changes in UEFI.

Signed-off-by: Konrad Adamczyk <konrad.adamczyk@cavium.com>
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/thunderx.c
src/drivers/net/thunderxcfg.h