Programming with sg-dma controller, Data structure, Programming with sg-dma controller -16 – Altera Embedded Peripherals IP User Manual

Page 207: Data structure -16

Advertising
background image

Programming with SG-DMA Controller

This section describes the device and descriptor data structures, and the application programming

interface (API) for the SG-DMA controller core.

Data Structure

Table 21-13: Device Data Structure

typedef struct alt_sgdma_dev
{
alt_llist llist; // Device linked-list entry
const char *name; // Name of SGDMA in SOPC System
void *base; // Base address of SGDMA
alt_u32 *descriptor_base; // reserved
alt_u32 next_index; // reserved
alt_u32 num_descriptors; // reserved
alt_sgdma_descriptor *current_descriptor; // reserved
alt_sgdma_descriptor *next_descriptor; // reserved
alt_avalon_sgdma_callback callback; // Callback routine pointer
void *callback_context; // Callback context pointer
alt_u32 chain_control; // Value OR'd into control reg
} alt_sgdma_dev;

21-16

Programming with SG-DMA Controller

UG-01085

2014.24.07

Altera Corporation

Scatter-Gather DMA Controller Core

Send Feedback

Advertising