# /space/home/slher/rel/Beken/v6_4_5/macsw/ip/lmac/src/hal/hal_dma.c File Reference

Copyright (C) RivieraWaves 2011-2019. More...

`#include <string.h>`
`#include "dbg_assert.h"`
`#include "ke_event.h"`
`#include "hal_dma.h"`
`#include "dbg.h"`

Go to the source code of this file.

## Defines
#define | DMA_LLICTRL(index)
| Configure the bridge DMA control field.
## Functions
void | hal_dma_init (void)
| Initialize the general purpose DMA module.
void | hal_dma_push (struct hal_dma_desc_tag *desc, int type)
| Push a DMA request.
void | hal_dma_evt (int dma_queue)
| Handler for the general purpose DMA event.
void | hal_dma_dl_irq (void)
| Interrupt handler for the general purpose DMA download interrupt.
void | hal_dma_ul_irq (void)
| Interrupt handler for the general purpose DMA upload interrupt.
## Variables
const uint8_t | dma2chan [DMA_MAX]
| Array of conversion between the DMA transfer type and the DMA channel that is used.
const uint8_t | dma2lli [DMA_MAX]
| Array of conversion between the DMA transfer type and the DMA LLI that is used.
struct hal_dma_env_tag | hal_dma_env
| HAL DMA environment variable.

## Detailed Description

Copyright (C) RivieraWaves 2011-2019.

General purpose DMA functions

Definition in file hal_dma.c.