/* One word (16 bit) configuration read on PSII. Currently fixes destination PCI bus to PCI2, onboard pci.  */
static int psII_read_config_word(struct pci_controller *hose, pci_dev_t dev, int reg, u16 *val)
/* One word (16 bit) configuration read on PSII. Currently fixes destination PCI bus to PCI2, onboard pci.  */
static int psII_read_config_word(struct pci_controller *hose, pci_dev_t dev, int reg, u16 *val)
{
	write4be (PSII_CONFIG_ADDR, PSII_CONFIG_DEST_PCI2 |
		  (PCI_BUS (dev) << 16) | (PCI_DEV (dev) << 11) | (PCI_FUNC (dev) << 8) | ((reg & 0xFF) & ~3));
	*val = read2 (PSII_CONFIG_DATA + (reg & 0x03));
	return (0);
}