diff options
author | Simon Kagstrom <simon.kagstrom@netinsight.net> | 2009-08-20 10:14:11 +0200 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2009-08-21 09:57:33 -0700 |
commit | 477fa6378fbd3e47a5e2e83d0dd3970d5b1c8371 (patch) | |
tree | 58306a182f52aaa0de5a7990c283378d555e443d /drivers/net/kirkwood_egiga.h | |
parent | cad713bf7548b9e90433dac8270165402a6c9cc3 (diff) | |
download | u-boot-imx-477fa6378fbd3e47a5e2e83d0dd3970d5b1c8371.zip u-boot-imx-477fa6378fbd3e47a5e2e83d0dd3970d5b1c8371.tar.gz u-boot-imx-477fa6378fbd3e47a5e2e83d0dd3970d5b1c8371.tar.bz2 |
arm: kirkwood: See to it that sent data is 8-byte aligned
U-boot might use non-8-byte-aligned addresses for sending data, which
the kwgbe_send doesn't accept (bootp does this for me). This patch
copies the data to be sent to a malloced temporary buffer if it is
non-aligned.
Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net/kirkwood_egiga.h')
-rw-r--r-- | drivers/net/kirkwood_egiga.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/kirkwood_egiga.h b/drivers/net/kirkwood_egiga.h index 9c893d1..16d5214 100644 --- a/drivers/net/kirkwood_egiga.h +++ b/drivers/net/kirkwood_egiga.h @@ -499,6 +499,7 @@ struct kwgbe_device { struct kwgbe_rxdesc *p_rxdesc; struct kwgbe_rxdesc *p_rxdesc_curr; u8 *p_rxbuf; + u8 *p_aligned_txbuf; }; #endif /* __EGIGA_H__ */ |