/* We can also actually read and write in b/w/l sizes! Thankfully this part was at least done right, and we don't have to do the stupid masking and shifting that we do on the 7751! Small wonders never cease to amaze.  */
static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
/* We can also actually read and write in b/w/l sizes! Thankfully this part was at least done right, and we don't have to do the stupid masking and shifting that we do on the 7751! Small wonders never cease to amaze.  */
static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)
{
	*val = 0xffffffff;
	if (!gapspci_config_access(bus->number, devfn))
		return PCIBIOS_DEVICE_NOT_FOUND;
	switch (size) {
	case 1: *val = inb(GAPSPCI_BBA_CONFIG+where); break;
	case 2: *val = inw(GAPSPCI_BBA_CONFIG+where); break;
	case 4: *val = inl(GAPSPCI_BBA_CONFIG+where); break;
	}
        return PCIBIOS_SUCCESSFUL;
}