void __iomem *port_mmio = mv_port_base(mmio, port); 
if (IS_60XX(hpriv)) { void __iomem *port_mmio = mv_port_base(mmio, port); 
static int mv_init_host(struct pci_dev *pdev, struct ata_probe_ent *probe_ent,			unsigned int board_idx){	int rc = 0, n_hc, port, hc;	void __iomem *mmio = probe_ent->mmio_base;	struct mv_host_priv *hpriv = probe_ent->private_data;	/* global interrupt mask */	writel(0, mmio + HC_MAIN_IRQ_MASK_OFS);	rc = mv_chip_id(pdev, hpriv, board_idx);	if (rc)		goto done;	n_hc = mv_get_hc_count(probe_ent->host_flags);	probe_ent->n_ports = MV_PORTS_PER_HC * n_hc;	for (port = 0; port < probe_ent->n_ports; port++)		hpriv->ops->read_preamp(hpriv, port, mmio);	rc = hpriv->ops->reset_hc(hpriv, mmio);	if (rc)		goto done;	hpriv->ops->reset_flash(hpriv, mmio);	hpriv->ops->reset_bus(pdev, mmio);	hpriv->ops->enable_leds(hpriv, mmio);	for (port = 0; port < probe_ent->n_ports; port++) {		void __iomem *port_mmio = mv_port_base(mmio, port);		if (IS_60XX(hpriv)) {			u32 ifctl = readl(port_mmio + SATA_INTERFACE_CTL);			ifctl |= (1 << 12);			writelfl(ifctl, port_mmio + SATA_INTERFACE_CTL);		}		hpriv->ops->phy_errata(hpriv, port_mmio, port);	}	for (port = 0; port < probe_ent->n_ports; port++) {		void __iomem *port_mmio = mv_port_base(mmio, port);		mv_port_init(&probe_ent->port[port], port_mmio);	}	for (hc = 0; hc < n_hc; hc++) {		void __iomem *hc_mmio = mv_hc_base(mmio, hc);		VPRINTK("HC%i: HC config=0x%08x HC IRQ cause "			"(before clear)=0x%08x\n", hc,			readl(hc_mmio + HC_CFG_OFS),			readl(hc_mmio + HC_IRQ_CAUSE_OFS));		/* Clear any currently outstanding hc interrupt conditions */		writelfl(0, hc_mmio + HC_IRQ_CAUSE_OFS);	}	/* Clear any currently outstanding host interrupt conditions */	writelfl(0, mmio + PCI_IRQ_CAUSE_OFS);	/* and unmask interrupt generation for host regs */	writelfl(PCI_UNMASK_ALL_IRQS, mmio + PCI_IRQ_MASK_OFS);	writelfl(~HC_MAIN_MASKED_IRQS, mmio + HC_MAIN_IRQ_MASK_OFS);	VPRINTK("HC MAIN IRQ cause/mask=0x%08x/0x%08x "		"PCI int cause/mask=0x%08x/0x%08x\n",		readl(mmio + HC_MAIN_IRQ_CAUSE_OFS),		readl(mmio + HC_MAIN_IRQ_MASK_OFS),		readl(mmio + PCI_IRQ_CAUSE_OFS),		readl(mmio + PCI_IRQ_MASK_OFS));done:	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c9d39130123238ac18478a42e25cb7996eacfcc0/sata_mv.c/buggy/drivers/scsi/sata_mv.c