/* We can't address 8 and 16 bit words directly. Instead we have to read/write a 32bit word and mask/modify the data we actually want.  */
static int read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 *val)
/* We can't address 8 and 16 bit words directly. Instead we have to read/write a 32bit word and mask/modify the data we actually want.  */
static int read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 *val)
{
	u32 data;
	int ret;
	ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data);
	*val = (data >> ((where & 3) << 3)) & 0xff;
	return ret;
}