/* Some checks before doing config cycles: In PCI Device Mode, hide everything on bus 0 except the LDT host bridge. Otherwise, access is controlled by bridge MasterEn bits.  */
static int bcm1480_pci_can_access(struct pci_bus *bus, int devfn)
/* Some checks before doing config cycles: In PCI Device Mode, hide everything on bus 0 except the LDT host bridge. Otherwise, access is controlled by bridge MasterEn bits.  */
static int bcm1480_pci_can_access(struct pci_bus *bus, int devfn)
{
	u32 devno;
	if (!(bcm1480_bus_status & (PCI_BUS_ENABLED | PCI_DEVICE_MODE)))
		return 0;
	if (bus->number == 0) {
		devno = PCI_SLOT(devfn);
		if (bcm1480_bus_status & PCI_DEVICE_MODE)
			return 0;
		else
			return 1;
	} else
		return 1;
}