mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[POWERPC] bootwrapper: Factor out dt_set_mac_address()
This allows callers to set addresses one at a time when that would be more convenient. Signed-off-by: Scott Wood <scottwood@freescale.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
51a505d73b
commit
27ff35d902
2 changed files with 18 additions and 14 deletions
|
@ -161,6 +161,7 @@ static inline void *find_node_by_devtype(const void *prev,
|
|||
void dt_fixup_memory(u64 start, u64 size);
|
||||
void dt_fixup_cpu_clocks(u32 cpufreq, u32 tbfreq, u32 busfreq);
|
||||
void dt_fixup_clock(const char *path, u32 freq);
|
||||
void dt_fixup_mac_address(u32 index, const u8 *addr);
|
||||
void __dt_fixup_mac_addresses(u32 startindex, ...);
|
||||
#define dt_fixup_mac_addresses(...) \
|
||||
__dt_fixup_mac_addresses(0, __VA_ARGS__, NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue