[U-Boot] [PATCH v3 13/14] drivers: net: Add ethernet driver for Microchip PIC32.

Tom Rini trini at konsulko.com
Wed Jan 13 15:56:32 CET 2016


On Tue, Jan 12, 2016 at 03:48:28PM +0530, Purna Chandra Mandal wrote:

> This driver implements MAC and MII layer of the ethernet controller.
> Network data transfer is handled by controller internal DMA engine.
> Ethernet controller is configurable through device-tree file.
> 
> Signed-off-by: Purna Chandra Mandal <purna.mandal at microchip.com>
[snip]
> +/* cache operation helper */
> +#define __dcache_flush(__a, __l) \
> +	flush_dcache_range((ulong)(__a),  ((__l) + (ulong)(__a)))
> +
> +#define __dcache_invalidate(__a, __l) \
> +	invalidate_dcache_range((ulong)(__a),  ((__l) + (ulong)(__a)))

Why using these helper functions instead of directly?  Yes, we may be
casting in some cases and if that's how it must be, so be it (it's how
we're doing it in other drivers).  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160113/34495cac/attachment.sig>


More information about the U-Boot mailing list