pcie-octeon.c (a976c2951d8f376112361830aa7762beff83a205) pcie-octeon.c (19a8d6b7604df85402deecae01d7861cb1d40c89)
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 2007, 2008, 2009, 2010, 2011 Cavium Networks
7 */
8#include <linux/kernel.h>

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

1459 * @dev: The Linux PCI device structure for the device to map
1460 * @slot: The slot number for this device on __BUS 0__. Linux
1461 * enumerates through all the bridges and figures out the
1462 * slot on Bus 0 where this device eventually hooks to.
1463 * @pin: The PCI interrupt pin read from the device, then swizzled
1464 * as it goes through each bridge.
1465 * Returns Interrupt number for the device
1466 */
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 2007, 2008, 2009, 2010, 2011 Cavium Networks
7 */
8#include <linux/kernel.h>

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

1459 * @dev: The Linux PCI device structure for the device to map
1460 * @slot: The slot number for this device on __BUS 0__. Linux
1461 * enumerates through all the bridges and figures out the
1462 * slot on Bus 0 where this device eventually hooks to.
1463 * @pin: The PCI interrupt pin read from the device, then swizzled
1464 * as it goes through each bridge.
1465 * Returns Interrupt number for the device
1466 */
1467int __init octeon_pcie_pcibios_map_irq(const struct pci_dev *dev,
1468 u8 slot, u8 pin)
1467int octeon_pcie_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
1469{
1470 /*
1471 * The EBH5600 board with the PCI to PCIe bridge mistakenly
1472 * wires the first slot for both device id 2 and interrupt
1473 * A. According to the PCI spec, device id 2 should be C. The
1474 * following kludge attempts to fix this.
1475 */
1476 if (strstr(octeon_board_type_string(), "EBH5600") &&

--- 615 unchanged lines hidden ---
1468{
1469 /*
1470 * The EBH5600 board with the PCI to PCIe bridge mistakenly
1471 * wires the first slot for both device id 2 and interrupt
1472 * A. According to the PCI spec, device id 2 should be C. The
1473 * following kludge attempts to fix this.
1474 */
1475 if (strstr(octeon_board_type_string(), "EBH5600") &&

--- 615 unchanged lines hidden ---