/* Conversion function from the burst size to the bit encoding of the CCR */
static INLINE unsigned XDmaPs_ToBurstSizeBits(unsigned BurstSize)
/* Conversion function from the burst size to the bit encoding of the CCR */
static INLINE unsigned XDmaPs_ToBurstSizeBits(unsigned BurstSize)
{
	switch (BurstSize) {
	case 1:
		return 0;
	case 2:
		return 1;
	case 4:
		return 2;
	case 8:
		return 3;
	case 16:
		return 4;
	case 32:
		return 5;
	case 64:
		return 6;
	case 128:
		return 7;
	default:
		return 0;
	}
}