/* ppc440spe_desc_init_xor - initialize the descriptor for XOR operation  */
static void ppc440spe_desc_init_xor(struct ppc440spe_adma_desc_slot *desc, int src_cnt, unsigned long flags)
/* ppc440spe_desc_init_xor - initialize the descriptor for XOR operation  */
static void ppc440spe_desc_init_xor(struct ppc440spe_adma_desc_slot *desc, int src_cnt, unsigned long flags)
{
	struct xor_cb *hw_desc = desc->hw_desc;
	memset(desc->hw_desc, 0, sizeof(struct xor_cb));
	desc->hw_next = NULL;
	desc->src_cnt = src_cnt;
	desc->dst_cnt = 1;
	hw_desc->cbc = XOR_CBCR_TGT_BIT | src_cnt;
	if (flags & DMA_PREP_INTERRUPT)
		hw_desc->cbc |= XOR_CBCR_CBCE_BIT;
}