X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Finclude%2Fdma.h;fp=carlfw%2Finclude%2Fdma.h;h=ea905f5dca21df60d545b9ca0c168544300e81ad;hb=63ea5c984f577172a145950580c96b5135bf1629;hp=0f45e513bcf98d9b1db1d94f3a3cd0b76b65add7;hpb=b5039c0b4f65ed0cea08255c5a9e8b12f99d8366;p=carl9170fw.git diff --git a/carlfw/include/dma.h b/carlfw/include/dma.h index 0f45e51..ea905f5 100644 --- a/carlfw/include/dma.h +++ b/carlfw/include/dma.h @@ -44,7 +44,7 @@ struct dma_desc { void *dataAddr; } __packed; struct dma_desc *nextAddr; /* Next TD address */ -} __packed; +} __packed __aligned(4); /* (Up, Dn, 5x Tx, Rx), USB Int, (5x delayed Tx + retry), CAB, BA */ #define AR9170_TERMINATOR_NUMBER_B 8 @@ -169,8 +169,8 @@ struct ar9170_data_block { struct ar9170_dma_memory { struct dma_desc terminator[AR9170_TERMINATOR_NUMBER]; struct dma_desc block[AR9170_BLOCK_NUMBER]; - struct ar9170_data_block data[AR9170_BLOCK_NUMBER] __attribute__((aligned(BLOCK_ALIGNMENT))); - struct carl9170_sram_reserved reserved __attribute__((aligned(BLOCK_ALIGNMENT))); + struct ar9170_data_block data[AR9170_BLOCK_NUMBER] __aligned(BLOCK_ALIGNMENT); + struct carl9170_sram_reserved reserved __aligned(BLOCK_ALIGNMENT); }; extern struct ar9170_dma_memory dma_mem;