/* edma_write_slot - write parameter RAM data for slot @slot: number of parameter RAM slot being modified  */
void edma_write_slot(unsigned slot, const struct edmacc_param *param)
/* edma_write_slot - write parameter RAM data for slot @slot: number of parameter RAM slot being modified  */
void edma_write_slot(unsigned slot, const struct edmacc_param *param)
{
    unsigned ctlr;
    ctlr = EDMA_CTLR(slot);
    slot = EDMA_CHAN_SLOT(slot);
    if (slot >= edma_cc[ctlr]->num_slots)
        return;
    rt_memcpy((void *)(edmacc_regs_base[ctlr] + PARM_OFFSET(slot)), param,
            PARM_SIZE);
}