projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kconfig: refactor end token rules
[carl9170fw.git]
/
carlfw
/
src
/
dma.c
diff --git
a/carlfw/src/dma.c
b/carlfw/src/dma.c
index d79552272381d6ba7f6e1f9fcd52fa1f1be3e6cc..9a6cc0caa22e2280ec86af7d408a48943f2d0235 100644
(file)
--- 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
* 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 <http://www.gnu.org/licenses/>.
*/
#include "carl9170.h"
#include "wl.h"
#include "printf.h"
*/
#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)
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++];
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++]);
for (j = 0; j < CARL9170_INTF_NUM; j++)
init_queue(&fw.wlan.cab_queue[j], &dma_mem.terminator[i++]);
-#endif /* CONFIG_CARL9170FW_CAB_QUEUE */
- BU
ILD_BUG_ON(AR9170_TERMINATOR_NUMBER != j
);
+ BU
G_ON(AR9170_TERMINATOR_NUMBER != i
);
DBG("Blocks:%d [tx:%d, rx:%d] Terminators:%d/%d\n",
AR9170_BLOCK_NUMBER, AR9170_TX_BLOCK_NUMBER,
DBG("Blocks:%d [tx:%d, rx:%d] Terminators:%d/%d\n",
AR9170_BLOCK_NUMBER, AR9170_TX_BLOCK_NUMBER,