[U-Boot] [PATCH v2 1/2] TI: netdev: add driver for cpsw ethernet device

Mike Frysinger vapier at gentoo.org
Thu Nov 10 17:26:17 CET 2011


On Thursday 10 November 2011 07:40:28 Chandan Nath wrote:
> +#define mac_hi(mac)    (((mac)[0] << 0) | ((mac)[1] << 8) |    \
> +                        ((mac)[2] << 16) | ((mac)[3] << 24))

looks like __get_unaligned_u32()

> +#define mac_lo(mac)    (((mac)[4] << 0) | ((mac)[5] << 8))

looks like __get_unaligned_u16()
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111110/e76893bf/attachment.pgp 


More information about the U-Boot mailing list