X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fsrc%2Fdma.c;h=9a6cc0caa22e2280ec86af7d408a48943f2d0235;hb=HEAD;hp=d79552272381d6ba7f6e1f9fcd52fa1f1be3e6cc;hpb=79b25b09dd984ab06f89ce288e4c48672ab31178;p=carl9170fw.git diff --git a/carlfw/src/dma.c b/carlfw/src/dma.c index d795522..9a6cc0c 100644 --- a/carlfw/src/dma.c +++ b/carlfw/src/dma.c @@ -19,15 +19,14 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * with this program; If not, see . */ #include "carl9170.h" #include "wl.h" #include "printf.h" -struct ar9170_dma_memory dma_mem __section(sram); +struct ar9170_dma_memory dma_mem __in_section(sram); static void copy_dma_desc(struct dma_desc *dst, struct dma_desc *src) @@ -88,12 +87,10 @@ void dma_init_descriptors(void) fw.usb.int_desc = &dma_mem.terminator[i++]; fw.wlan.fw_desc = &dma_mem.terminator[i++]; -#ifdef CONFIG_CARL9170FW_CAB_QUEUE for (j = 0; j < CARL9170_INTF_NUM; j++) init_queue(&fw.wlan.cab_queue[j], &dma_mem.terminator[i++]); -#endif /* CONFIG_CARL9170FW_CAB_QUEUE */ - BUILD_BUG_ON(AR9170_TERMINATOR_NUMBER != j); + BUG_ON(AR9170_TERMINATOR_NUMBER != i); DBG("Blocks:%d [tx:%d, rx:%d] Terminators:%d/%d\n", AR9170_BLOCK_NUMBER, AR9170_TX_BLOCK_NUMBER,