1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-04 04:32:00 +03:00

ramips: raeth: add '__packed __aligned(4)' annotation to dma descritor structures

This helps GCC to generare more efficient code.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30553 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-02-15 18:33:40 +00:00
parent eaae1ec1de
commit 0564ef75aa

View File

@ -195,7 +195,7 @@ struct ramips_rx_dma {
unsigned int rxd2;
unsigned int rxd3;
unsigned int rxd4;
};
} __packed __aligned(4);
#define TX_DMA_PLEN0_MASK ((0x3fff) << 16)
#define TX_DMA_PLEN0(_x) (((_x) & 0x3fff) << 16)
@ -211,7 +211,7 @@ struct ramips_tx_dma {
unsigned int txd2;
unsigned int txd3;
unsigned int txd4;
};
} __packed __aligned(4);
struct raeth_priv
{