Lines Matching refs:hba
145 struct pci_hba_data hba; /* 'C' inheritance - must be first */ member
182 void __iomem *base_addr = d->hba.base_addr; in dino_cfg_read()
217 void __iomem *base_addr = d->hba.base_addr; in dino_cfg_write()
310 __raw_writel(dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_mask_irq()
327 __raw_readl(dino_dev->hba.base_addr+DINO_IPR); in dino_unmask_irq()
331 __raw_writel( dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_unmask_irq()
342 tmp = __raw_readl(dino_dev->hba.base_addr+DINO_ILR); in dino_unmask_irq()
373 mask = __raw_readl(dino_dev->hba.base_addr+DINO_IRR0) & DINO_IRR_MASK; in dino_isr()
395 mask = __raw_readl(dino_dev->hba.base_addr+DINO_ILR) & dino_dev->imr; in dino_isr()
400 dino_dev->hba.base_addr, mask); in dino_isr()
469 res = &dino_dev->hba.lmmio_space; in dino_card_setup()
477 res->name = dino_dev->hba.lmmio_space.name; in dino_card_setup()
480 if (ccio_allocate_resource(dino_dev->hba.dev, res, _8MB, in dino_card_setup()
495 bus->resource[0] = &(dino_dev->hba.io_space); in dino_card_setup()
561 if (is_card_dino(&dino_dev->hba.dev->id)) { in dino_fixup_bus()
562 dino_card_setup(bus, dino_dev->hba.base_addr); in dino_fixup_bus()
598 if (is_card_dino(&dino_dev->hba.dev->id)) in dino_fixup_bus()
663 status = __raw_readl(dino_dev->hba.base_addr+DINO_IO_STATUS); in dino_card_init()
666 dino_dev->hba.base_addr+DINO_IO_COMMAND); in dino_card_init()
670 __raw_writel(0x00000000, dino_dev->hba.base_addr+DINO_GMASK); in dino_card_init()
671 __raw_writel(0x00000001, dino_dev->hba.base_addr+DINO_IO_FBB_EN); in dino_card_init()
672 __raw_writel(0x00000000, dino_dev->hba.base_addr+DINO_ICR); in dino_card_init()
682 __raw_writel( brdg_feat, dino_dev->hba.base_addr+DINO_BRDG_FEAT); in dino_card_init()
689 __raw_writel(0x00000000, dino_dev->hba.base_addr+DINO_IO_ADDR_EN); in dino_card_init()
691 __raw_writel(0x00000000, dino_dev->hba.base_addr+DINO_DAMODE); in dino_card_init()
692 __raw_writel(0x00222222, dino_dev->hba.base_addr+DINO_PCIROR); in dino_card_init()
693 __raw_writel(0x00222222, dino_dev->hba.base_addr+DINO_PCIWOR); in dino_card_init()
695 __raw_writel(0x00000040, dino_dev->hba.base_addr+DINO_MLTIM); in dino_card_init()
696 __raw_writel(0x00000080, dino_dev->hba.base_addr+DINO_IO_CONTROL); in dino_card_init()
697 __raw_writel(0x0000008c, dino_dev->hba.base_addr+DINO_TLTIM); in dino_card_init()
700 __raw_writel(0x0000007e, dino_dev->hba.base_addr+DINO_PAMR); in dino_card_init()
701 __raw_writel(0x0000007f, dino_dev->hba.base_addr+DINO_PAPR); in dino_card_init()
702 __raw_writel(0x00000000, dino_dev->hba.base_addr+DINO_PAMR); in dino_card_init()
709 __raw_writel(0x0000004f, dino_dev->hba.base_addr+DINO_PCICMD); in dino_card_init()
730 io_addr = __raw_readl(dino_dev->hba.base_addr + DINO_IO_ADDR_EN); in dino_bridge_init()
736 res = &dino_dev->hba.lmmio_space; in dino_bridge_init()
769 res = &dino_dev->hba.lmmio_space; in dino_bridge_init()
775 result = ccio_request_resource(dino_dev->hba.dev, &res[i]); in dino_bridge_init()
793 pcibios_register_hba(&dino_dev->hba); in dino_common_init()
837 __raw_writel(eim, dino_dev->hba.base_addr+DINO_IAR0); in dino_common_init()
843 __raw_readl(dino_dev->hba.base_addr+DINO_IRR0); in dino_common_init()
846 res = &dino_dev->hba.io_space; in dino_common_init()
852 res->start = HBA_PORT_BASE(dino_dev->hba.hba_num); in dino_common_init()
859 dino_dev->hba.base_addr); in dino_common_init()
957 dino_dev->hba.dev = dev; in dino_probe()
958 dino_dev->hba.base_addr = ioremap_nocache(hpa, 4096); in dino_probe()
959 dino_dev->hba.lmmio_space_offset = PCI_F_EXTEND; in dino_probe()
961 dino_dev->hba.iommu = ccio_get_iommu(dev); in dino_probe()
974 pci_add_resource_offset(&resources, &dino_dev->hba.io_space, in dino_probe()
975 HBA_PORT_BASE(dino_dev->hba.hba_num)); in dino_probe()
976 if (dino_dev->hba.lmmio_space.flags) in dino_probe()
977 pci_add_resource_offset(&resources, &dino_dev->hba.lmmio_space, in dino_probe()
978 dino_dev->hba.lmmio_space_offset); in dino_probe()
979 if (dino_dev->hba.elmmio_space.flags) in dino_probe()
980 pci_add_resource_offset(&resources, &dino_dev->hba.elmmio_space, in dino_probe()
981 dino_dev->hba.lmmio_space_offset); in dino_probe()
982 if (dino_dev->hba.gmmio_space.flags) in dino_probe()
983 pci_add_resource(&resources, &dino_dev->hba.gmmio_space); in dino_probe()
985 dino_dev->hba.bus_num.start = dino_current_bus; in dino_probe()
986 dino_dev->hba.bus_num.end = 255; in dino_probe()
987 dino_dev->hba.bus_num.flags = IORESOURCE_BUS; in dino_probe()
988 pci_add_resource(&resources, &dino_dev->hba.bus_num); in dino_probe()
993 dino_dev->hba.hba_bus = bus = pci_create_root_bus(&dev->dev, in dino_probe()