On Mon, Mar 2, 2015 at 10:44 AM, Alexandru Ardelean
ardeleana...@gmail.com wrote:
So, on a powerpc system this works.
static inline u64 b53_mac_array_to_u64(const u8 *u8_arr) {
u64 mac = 0;
u8 *cmac = (u8 *)mac;
memcpy(cmac[2], u8_arr, 6);
return mac;
}
I've done this
So, on a powerpc system this works.
static inline u64 b53_mac_array_to_u64(const u8 *u8_arr) {
u64 mac = 0;
u8 *cmac = (u8 *)mac;
memcpy(cmac[2], u8_arr, 6);
return mac;
}
I've done this approach initially, but there were some concerns afterwards
regarding endianness.
On my
Hi,
On Mon, Feb 23, 2015 at 3:41 PM, Alexandru Ardelean
ardeleana...@gmail.com wrote:
From: Alexandru Ardelean ardeleana...@gmail.com
Converts an MAC array of u8 to a u64 value.
Signed-off-by: Alexandru Ardelean ardeleana...@gmail.com
---
From: Alexandru Ardelean ardeleana...@gmail.com
Converts an MAC array of u8 to a u64 value.
Signed-off-by: Alexandru Ardelean ardeleana...@gmail.com
---
target/linux/generic/files/drivers/net/phy/b53/b53_regs.h | 10 ++
1 file changed, 10 insertions(+)
diff --git