release/src/linux/linux/arch/mips/sni/pci.c
/*
 * 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.
 */
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.
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 pcimt_read_config_byte (struct pci_dev *dev,
                                   int where, unsigned char *val)
{
	u32 res;
	mkaddr(dev, where);
	res = *(volatile u32 *)PCIMT_CONFIG_DATA;
	res = (le32_to_cpu(res) >> ((where & 3) << 3)) & 0xff;
	*val = res;
	return PCIBIOS_SUCCESSFUL;
}
static int pcimt_read_config_byte ( struct pci_dev * dev , int where , unsigned char * val ) { u32 res ; mkaddr ( dev , where ) ; res = * ( volatile u32 * ) PCIMT_CONFIG_DATA ; res = ( le32_to_cpu ( res ) >> ( ( where & 3 ) << 3 ) ) & 0xff ; * val = res ; return PCIBIOS_SUCCESSFUL ; }
We can't address 8 and 16 bit words directly.
We can ' t address 8 and 16 bit words directly .