/* ppc440spe_desc_init_memset - initialize the descriptor for MEMSET operation  */
static void ppc440spe_desc_init_memset(struct ppc440spe_adma_desc_slot *desc, int value, unsigned long flags)
/* ppc440spe_desc_init_memset - initialize the descriptor for MEMSET operation  */
static void ppc440spe_desc_init_memset(struct ppc440spe_adma_desc_slot *desc, int value, unsigned long flags)
{
	struct dma_cdb *hw_desc = desc->hw_desc;
	memset(desc->hw_desc, 0, sizeof(struct dma_cdb));
	desc->hw_next = NULL;
	desc->src_cnt = 1;
	desc->dst_cnt = 1;
	if (flags & DMA_PREP_INTERRUPT)
		set_bit(PPC440SPE_DESC_INT, &desc->flags);
	else
		clear_bit(PPC440SPE_DESC_INT, &desc->flags);
	hw_desc->sg1u = hw_desc->sg1l = cpu_to_le32((u32)value);
	hw_desc->sg3u = hw_desc->sg3l = cpu_to_le32((u32)value);
	hw_desc->opc = DMA_CDB_OPC_DFILL128;
}