pci-tx4938.c (0337966d121ebebf73a1c346123e8112796e684e) pci-tx4938.c (19a8d6b7604df85402deecae01d7861cb1d40c89)
1/*
2 * Based on linux/arch/mips/txx9/rbtx4938/setup.c,
3 * and RBTX49xx patch from CELF patch archive.
4 *
5 * Copyright 2001, 2003-2005 MontaVista Software Inc.
6 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org)
7 * (C) Copyright TOSHIBA CORPORATION 2000-2001, 2004-2007
8 *

--- 98 unchanged lines hidden (view full) ---

107 pcidivmode);
108 pr_debug("PCICLK: ccfg:%08lx\n",
109 (unsigned long)__raw_readq(&tx4938_ccfgptr->ccfg));
110 } else
111 pciclk = -1;
112 return pciclk;
113}
114
1/*
2 * Based on linux/arch/mips/txx9/rbtx4938/setup.c,
3 * and RBTX49xx patch from CELF patch archive.
4 *
5 * Copyright 2001, 2003-2005 MontaVista Software Inc.
6 * Copyright (C) 2004 by Ralf Baechle (ralf@linux-mips.org)
7 * (C) Copyright TOSHIBA CORPORATION 2000-2001, 2004-2007
8 *

--- 98 unchanged lines hidden (view full) ---

107 pcidivmode);
108 pr_debug("PCICLK: ccfg:%08lx\n",
109 (unsigned long)__raw_readq(&tx4938_ccfgptr->ccfg));
110 } else
111 pciclk = -1;
112 return pciclk;
113}
114
115int __init tx4938_pcic1_map_irq(const struct pci_dev *dev, u8 slot)
115int tx4938_pcic1_map_irq(const struct pci_dev *dev, u8 slot)
116{
117 if (get_tx4927_pcicptr(dev->bus->sysdata) == tx4938_pcic1ptr) {
118 switch (slot) {
119 case TX4927_PCIC_IDSEL_AD_TO_SLOT(31):
120 if (__raw_readq(&tx4938_ccfgptr->pcfg) &
121 TX4938_PCFG_ETH0_SEL)
122 return TXX9_IRQ_BASE + TX4938_IR_ETH0;
123 break;

--- 19 unchanged lines hidden ---
116{
117 if (get_tx4927_pcicptr(dev->bus->sysdata) == tx4938_pcic1ptr) {
118 switch (slot) {
119 case TX4927_PCIC_IDSEL_AD_TO_SLOT(31):
120 if (__raw_readq(&tx4938_ccfgptr->pcfg) &
121 TX4938_PCFG_ETH0_SEL)
122 return TXX9_IRQ_BASE + TX4938_IR_ETH0;
123 break;

--- 19 unchanged lines hidden ---