Visible to Intel only — GUID: iga1446069945962
Ixiasoft
Visible to Intel only — GUID: iga1446069945962
Ixiasoft
31.8.10. alt_msgdma_construct_standard_descriptor
Prototype: | static int alt_msgdma_construct_standard_descriptor (alt_msgdma_dev *dev, alt_msgdma_standard_descriptor *descriptor, alt_u32 *read_address, alt_u32 *write_address, alt_u32 length, alt_u32 control) |
Include: | < modular_sgdma_dispatcher.h > |
Parameters: | *dev-a pointer to msgdma instance. *descriptor – a pointer to a standard descriptor structure. *read_address – a pointer to the base address of the source memory. *write_address – a pointer to the base address of the destination memory. length - is used to specify the number of bytes to transfer per descriptor. The largest possible value can be filled in is “0Xffffffff”. control – control field. |
Returns: | “0” for success, -EINVAL for invalid argument, could be due to argument which has larger value than hardware setting value. |
Description: | Helper functions for constructing mm_to_st, st_to_mm, mm_to_mm standard descriptors. Unnecessary elements are set to 0 for completeness and will be ignored by the hardware. |