static int polaris_read_config_byte(struct pci_dev *dev, int where, u8 *value) { unsigned long pci_addr; unsigned char type1; if (mk_conf_addr(dev, where, &pci_addr, &type1)) return PCIBIOS_DEVICE_NOT_FOUND; *value = __kernel_ldbu(*(vucp)pci_addr); return PCIBIOS_SUCCESSFUL; }
int polaris_hose_read_config_byte (u8 bus, u8 device_fn, u8 where, u8 *value, struct linux_hose_info *hose) { unsigned long pci_addr; unsigned char type1; if (mk_conf_addr(bus, device_fn, where, &pci_addr, &type1)) return PCIBIOS_DEVICE_NOT_FOUND; *value = __kernel_ldbu(*(vucp)pci_addr); return PCIBIOS_SUCCESSFUL; }
int polaris_hose_write_config_word (u8 bus, u8 device_fn, u8 where, u16 value, struct linux_hose_info *hose) { unsigned long pci_addr; unsigned char type1; if (mk_conf_addr(bus, device_fn, where, &pci_addr, &type1)) return PCIBIOS_DEVICE_NOT_FOUND; __kernel_stw(value, *(vusp)pci_addr); mb(); __kernel_ldbu(*(vusp)pci_addr); return PCIBIOS_SUCCESSFUL; }
int tsunami_hose_write_config_byte (u8 bus, u8 device_fn, u8 where, u8 value, struct linux_hose_info *hose) { unsigned long addr; unsigned char type1; if (mk_conf_addr(bus, device_fn, where, hose, &addr, &type1)) return PCIBIOS_DEVICE_NOT_FOUND; __kernel_stb(value, *(vucp)addr); mb(); __kernel_ldbu(*(vucp)addr); return PCIBIOS_SUCCESSFUL; }