UPSTREAM: intel/i210: Change API for function mainboard_get_mac_address()
The function mainboard_get_mac_address() is used to get a MAC address for a given i210 PCI device. Instead of passing pure numbers for PCI bus, device and function pass the device pointer to this function. In this way the function can retrieve the needed values itself as well as have the pointer to the device tree so that PCI path can be evaluated there. BUG=None BRANCH=None TEST=None Change-Id: I2335d995651baa5e23a0448f5f32310dcd394f9b Original-Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Original-Reviewed-on: https://review.coreboot.org/15516 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Kysti Mlkki <kyosti.malkki@gmail.com> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/358599 Reviewed-by: Martin Roth <martinroth@chromium.org>
This commit is contained in:
parent
2bf61cc5a8
commit
bd86d74e37
5 changed files with 29 additions and 16 deletions
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
#include <types.h>
|
||||
|
||||
|
||||
/* Declare all supported fields which can be get with hwilib. */
|
||||
typedef enum {
|
||||
HIB_VerID = 0,
|
||||
|
|
@ -135,7 +134,4 @@ enum cb_err hwilib_find_blocks (const char *hwi_filename);
|
|||
*/
|
||||
uint32_t hwilib_get_field (hwinfo_field_t field, uint8_t *data, uint32_t maxlen);
|
||||
|
||||
/* This functions needs to be implemented for every mainboard that uses i210. */
|
||||
enum cb_err mainboard_get_mac_address(uint16_t bus, uint8_t devfn,
|
||||
uint8_t mac[6]);
|
||||
#endif /* SIEMENS_HWI_LIB_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue