/* Calculate data strobe according to offset and size  */
static uint pcie_calc_datastrobe(uint offset, enum pci_size_t size)
/* Calculate data strobe according to offset and size  */
static uint pcie_calc_datastrobe(uint offset, enum pci_size_t size)
{
	uint bytes, data_strobe;
	switch (size) {
	case PCI_SIZE_8:
		bytes = 1;
		break;
	case PCI_SIZE_16:
		bytes = 2;
		break;
	default:
		bytes = 4;
	}
	data_strobe = GENMASK(bytes - 1, 0) << (offset & 0x3);
	return data_strobe;
}