Visible to Intel only — GUID: iga1446069934869
Ixiasoft
Visible to Intel only — GUID: iga1446069934869
Ixiasoft
31.8.9. alt_msgdma_construct_standard_mm_to_mm_descriptor
Prototype: | int alt_msgdma_construct_standard_mm_to_mm_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: | Function will call helper function “alt_msgdma_construct_standard_descriptor” for constructing mm_to_mm standard descriptors. Unnecessary elements are set to 0 for completeness and will be ignored by the hardware. |