RTEMS: bsps/arm/altera-cyclone-v/include/bsp/alt_dma_program.h File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Enumerations | Functions
alt_dma_program.h File Reference
Board Support Packages » ARM » Intel Cyclone V » Contributed Code
`#include "hwlib.h"`
`#include "alt_dma_common.h"`

Go to the source code of this file.

## Data Structures
struct | ALT_DMA_PROGRAM_s

## Macros
#define | ALT_DMA_PROGRAM_CACHE_LINE_SIZE (32)
#define | ALT_DMA_PROGRAM_CACHE_LINE_COUNT (16)
#define | ALT_DMA_PROGRAM_PROVISION_BUFFER_SIZE (ALT_DMA_PROGRAM_CACHE_LINE_SIZE * ALT_DMA_PROGRAM_CACHE_LINE_COUNT)
#define | ALT_DMA_CCR_OPT_SAF (0 << 0)
#define | ALT_DMA_CCR_OPT_SAI (1 << 0)
#define | ALT_DMA_CCR_OPT_SA_DEFAULT ALT_DMA_CCR_OPT_SAI
#define | ALT_DMA_CCR_OPT_SS8 (0 << 1)
#define | ALT_DMA_CCR_OPT_SS16 (1 << 1)
#define | ALT_DMA_CCR_OPT_SS32 (2 << 1)
#define | ALT_DMA_CCR_OPT_SS64 (3 << 1)
#define | ALT_DMA_CCR_OPT_SS128 (4 << 1)
#define | ALT_DMA_CCR_OPT_SS_DEFAULT ALT_DMA_CCR_OPT_SS8
#define | ALT_DMA_CCR_OPT_SB1 (0x0 << 4)
#define | ALT_DMA_CCR_OPT_SB2 (0x1 << 4)
#define | ALT_DMA_CCR_OPT_SB3 (0x2 << 4)
#define | ALT_DMA_CCR_OPT_SB4 (0x3 << 4)
#define | ALT_DMA_CCR_OPT_SB5 (0x4 << 4)
#define | ALT_DMA_CCR_OPT_SB6 (0x5 << 4)
#define | ALT_DMA_CCR_OPT_SB7 (0x6 << 4)
#define | ALT_DMA_CCR_OPT_SB8 (0x7 << 4)
#define | ALT_DMA_CCR_OPT_SB9 (0x8 << 4)
#define | ALT_DMA_CCR_OPT_SB10 (0x9 << 4)
#define | ALT_DMA_CCR_OPT_SB11 (0xa << 4)
#define | ALT_DMA_CCR_OPT_SB12 (0xb << 4)
#define | ALT_DMA_CCR_OPT_SB13 (0xc << 4)
#define | ALT_DMA_CCR_OPT_SB14 (0xd << 4)
#define | ALT_DMA_CCR_OPT_SB15 (0xe << 4)
#define | ALT_DMA_CCR_OPT_SB16 (0xf << 4)
#define | ALT_DMA_CCR_OPT_SB_DEFAULT ALT_DMA_CCR_OPT_SB1
#define | ALT_DMA_CCR_OPT_SP(imm3) ((imm3) << 8)
#define | ALT_DMA_CCR_OPT_SP_DEFAULT ALT_DMA_CCR_OPT_SP(0)
#define | ALT_DMA_CCR_OPT_SC(imm4) ((imm4) << 11)
#define | ALT_DMA_CCR_OPT_SC_DEFAULT ALT_DMA_CCR_OPT_SC(0)
#define | ALT_DMA_CCR_OPT_DAF (0 << 14)
#define | ALT_DMA_CCR_OPT_DAI (1 << 14)
#define | ALT_DMA_CCR_OPT_DA_DEFAULT ALT_DMA_CCR_OPT_DAI
#define | ALT_DMA_CCR_OPT_DS8 (0 << 15)
#define | ALT_DMA_CCR_OPT_DS16 (1 << 15)
#define | ALT_DMA_CCR_OPT_DS32 (2 << 15)
#define | ALT_DMA_CCR_OPT_DS64 (3 << 15)
#define | ALT_DMA_CCR_OPT_DS128 (4 << 15)
#define | ALT_DMA_CCR_OPT_DS_DEFAULT ALT_DMA_CCR_OPT_DS8
#define | ALT_DMA_CCR_OPT_DB1 (0x0 << 18)
#define | ALT_DMA_CCR_OPT_DB2 (0x1 << 18)
#define | ALT_DMA_CCR_OPT_DB3 (0x2 << 18)
#define | ALT_DMA_CCR_OPT_DB4 (0x3 << 18)
#define | ALT_DMA_CCR_OPT_DB5 (0x4 << 18)
#define | ALT_DMA_CCR_OPT_DB6 (0x5 << 18)
#define | ALT_DMA_CCR_OPT_DB7 (0x6 << 18)
#define | ALT_DMA_CCR_OPT_DB8 (0x7 << 18)
#define | ALT_DMA_CCR_OPT_DB9 (0x8 << 18)
#define | ALT_DMA_CCR_OPT_DB10 (0x9 << 18)
#define | ALT_DMA_CCR_OPT_DB11 (0xa << 18)
#define | ALT_DMA_CCR_OPT_DB12 (0xb << 18)
#define | ALT_DMA_CCR_OPT_DB13 (0xc << 18)
#define | ALT_DMA_CCR_OPT_DB14 (0xd << 18)
#define | ALT_DMA_CCR_OPT_DB15 (0xe << 18)
#define | ALT_DMA_CCR_OPT_DB16 (0xf << 18)
#define | ALT_DMA_CCR_OPT_DB_DEFAULT ALT_DMA_CCR_OPT_DB1
#define | ALT_DMA_CCR_OPT_DP(imm3) ((imm3) << 22)
#define | ALT_DMA_CCR_OPT_DP_DEFAULT ALT_DMA_CCR_OPT_DP(0)
#define | ALT_DMA_CCR_OPT_DC(imm4) ((imm4) << 25)
#define | ALT_DMA_CCR_OPT_DC_DEFAULT ALT_DMA_CCR_OPT_DC(0)
#define | ALT_DMA_CCR_OPT_ES8 (0 << 28)
#define | ALT_DMA_CCR_OPT_ES16 (1 << 28)
#define | ALT_DMA_CCR_OPT_ES32 (2 << 28)
#define | ALT_DMA_CCR_OPT_ES64 (3 << 28)
#define | ALT_DMA_CCR_OPT_ES128 (4 << 28)
#define | ALT_DMA_CCR_OPT_ES_DEFAULT ALT_DMA_CCR_OPT_ES8
#define | ALT_DMA_CCR_OPT_DEFAULT

## Typedefs
typedef struct ALT_DMA_PROGRAM_s | ALT_DMA_PROGRAM_t
typedef enum ALT_DMA_PROGRAM_REG_e | ALT_DMA_PROGRAM_REG_t
typedef enum ALT_DMA_PROGRAM_INST_MOD_e | ALT_DMA_PROGRAM_INST_MOD_t

## Enumerations
enum | ALT_DMA_PROGRAM_REG_e { ALT_DMA_PROGRAM_REG_SAR = 0x0 , ALT_DMA_PROGRAM_REG_DAR = 0x2 , ALT_DMA_PROGRAM_REG_CCR = 0x1 }
enum | ALT_DMA_PROGRAM_INST_MOD_e { ALT_DMA_PROGRAM_INST_MOD_NONE , ALT_DMA_PROGRAM_INST_MOD_SINGLE , ALT_DMA_PROGRAM_INST_MOD_BURST , ALT_DMA_PROGRAM_INST_MOD_PERIPH }

## Functions
ALT_STATUS_CODE | alt_dma_program_init (ALT_DMA_PROGRAM_t *pgm)
ALT_STATUS_CODE | alt_dma_program_uninit (ALT_DMA_PROGRAM_t *pgm)
ALT_STATUS_CODE | alt_dma_program_clear (ALT_DMA_PROGRAM_t *pgm)
ALT_STATUS_CODE | alt_dma_program_validate (const ALT_DMA_PROGRAM_t *pgm)
ALT_STATUS_CODE | alt_dma_program_progress_reg (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PROGRAM_REG_t reg, uint32_t current, uint32_t *progress)
ALT_STATUS_CODE | alt_dma_program_update_reg (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PROGRAM_REG_t reg, uint32_t val)
ALT_STATUS_CODE | alt_dma_program_DMAADDH (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PROGRAM_REG_t addr_reg, uint16_t val)
ALT_STATUS_CODE | alt_dma_program_DMAADNH (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PROGRAM_REG_t addr_reg, uint16_t val)
ALT_STATUS_CODE | alt_dma_program_DMAEND (ALT_DMA_PROGRAM_t *pgm)
ALT_STATUS_CODE | alt_dma_program_DMAFLUSHP (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PERIPH_t periph)
ALT_STATUS_CODE | alt_dma_program_DMAGO (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_CHANNEL_t channel, uint32_t val, ALT_DMA_SECURITY_t sec)
ALT_STATUS_CODE | alt_dma_program_DMAKILL (ALT_DMA_PROGRAM_t *pgm)
ALT_STATUS_CODE | alt_dma_program_DMALD (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PROGRAM_INST_MOD_t mod)
ALT_STATUS_CODE | alt_dma_program_DMALDP (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PROGRAM_INST_MOD_t mod, ALT_DMA_PERIPH_t periph)
ALT_STATUS_CODE | alt_dma_program_DMALP (ALT_DMA_PROGRAM_t *pgm, uint32_t iterations)
ALT_STATUS_CODE | alt_dma_program_DMALPEND (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PROGRAM_INST_MOD_t mod)
ALT_STATUS_CODE | alt_dma_program_DMALPFE (ALT_DMA_PROGRAM_t *pgm)
ALT_STATUS_CODE | alt_dma_program_DMAMOV (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PROGRAM_REG_t chan_reg, uint32_t val)
ALT_STATUS_CODE | alt_dma_program_DMANOP (ALT_DMA_PROGRAM_t *pgm)
ALT_STATUS_CODE | alt_dma_program_DMARMB (ALT_DMA_PROGRAM_t *pgm)
ALT_STATUS_CODE | alt_dma_program_DMASEV (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_EVENT_t evt)
ALT_STATUS_CODE | alt_dma_program_DMAST (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PROGRAM_INST_MOD_t mod)
ALT_STATUS_CODE | alt_dma_program_DMASTP (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PROGRAM_INST_MOD_t mod, ALT_DMA_PERIPH_t periph)
ALT_STATUS_CODE | alt_dma_program_DMASTZ (ALT_DMA_PROGRAM_t *pgm)
ALT_STATUS_CODE | alt_dma_program_DMAWFE (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_EVENT_t evt, bool invalid)
ALT_STATUS_CODE | alt_dma_program_DMAWFP (ALT_DMA_PROGRAM_t *pgm, ALT_DMA_PERIPH_t periph, ALT_DMA_PROGRAM_INST_MOD_t mod)
ALT_STATUS_CODE | alt_dma_program_DMAWMB (ALT_DMA_PROGRAM_t *pgm)