projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
345cd35
)
net: force PKTALIGN to ARCH_DMA_MINALIGN
author
Eric Nelson
<eric.nelson@boundarydevices.com>
Thu, 15 Mar 2012 18:33:24 +0000
(18:33 +0000)
committer
Albert ARIBAUD
<albert.u.boot@aribaud.net>
Thu, 29 Mar 2012 05:57:10 +0000
(07:57 +0200)
This will prevent the need for architectures whose DMA alignment
is greater than 32 to have bounce buffers.
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
include/net.h
patch
|
blob
|
history
diff --git
a/include/net.h
b/include/net.h
index 556078518b584dfe14fcba5298accd1466a100bf..ee11f82ccc87acf426b95f78337bb2de52d77abd 100644
(file)
--- a/
include/net.h
+++ b/
include/net.h
@@
-16,6
+16,7
@@
#include <commproc.h>
#endif /* CONFIG_8xx */
+#include <asm/cache.h>
#include <asm/byteorder.h> /* for nton* / ntoh* stuff */
@@
-31,7
+32,7
@@
# define PKTBUFSRX 4
#endif
-#define PKTALIGN
32
+#define PKTALIGN
ARCH_DMA_MINALIGN
/* IPv4 addresses are always 32 bits in size */
typedef u32 IPaddr_t;