提交 2c4b3c19 编写于 作者: E Eric Nelson 提交者: Albert ARIBAUD

net: force PKTALIGN to ARCH_DMA_MINALIGN

This will prevent the need for architectures whose DMA alignment
is greater than 32 to have bounce buffers.
Signed-off-by: NEric Nelson <eric.nelson@boundarydevices.com>
上级 345cd358
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <commproc.h> #include <commproc.h>
#endif /* CONFIG_8xx */ #endif /* CONFIG_8xx */
#include <asm/cache.h>
#include <asm/byteorder.h> /* for nton* / ntoh* stuff */ #include <asm/byteorder.h> /* for nton* / ntoh* stuff */
...@@ -31,7 +32,7 @@ ...@@ -31,7 +32,7 @@
# define PKTBUFSRX 4 # define PKTBUFSRX 4
#endif #endif
#define PKTALIGN 32 #define PKTALIGN ARCH_DMA_MINALIGN
/* IPv4 addresses are always 32 bits in size */ /* IPv4 addresses are always 32 bits in size */
typedef u32 IPaddr_t; typedef u32 IPaddr_t;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册