pci-octeon.c (0337966d121ebebf73a1c346123e8112796e684e) | pci-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) 2005-2009 Cavium Networks 7 */ 8#include <linux/kernel.h> --- 45 unchanged lines hidden (view full) --- 54 uint64_t reserved3:10; 55 uint64_t bus:8; 56 uint64_t dev:5; 57 uint64_t func:3; 58 uint64_t reg:8; 59 } s; 60}; 61 | 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) 2005-2009 Cavium Networks 7 */ 8#include <linux/kernel.h> --- 45 unchanged lines hidden (view full) --- 54 uint64_t reserved3:10; 55 uint64_t bus:8; 56 uint64_t dev:5; 57 uint64_t func:3; 58 uint64_t reg:8; 59 } s; 60}; 61 |
62int __initconst (*octeon_pcibios_map_irq)(const struct pci_dev *dev, 63 u8 slot, u8 pin); | 62int (*octeon_pcibios_map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); |
64enum octeon_dma_bar_type octeon_dma_bar_type = OCTEON_DMA_BAR_TYPE_INVALID; 65 66/** 67 * Map a PCI device to the appropriate interrupt line 68 * 69 * @dev: The Linux PCI device structure for the device to map 70 * @slot: The slot number for this device on __BUS 0__. Linux 71 * enumerates through all the bridges and figures out the 72 * slot on Bus 0 where this device eventually hooks to. 73 * @pin: The PCI interrupt pin read from the device, then swizzled 74 * as it goes through each bridge. 75 * Returns Interrupt number for the device 76 */ | 63enum octeon_dma_bar_type octeon_dma_bar_type = OCTEON_DMA_BAR_TYPE_INVALID; 64 65/** 66 * Map a PCI device to the appropriate interrupt line 67 * 68 * @dev: The Linux PCI device structure for the device to map 69 * @slot: The slot number for this device on __BUS 0__. Linux 70 * enumerates through all the bridges and figures out the 71 * slot on Bus 0 where this device eventually hooks to. 72 * @pin: The PCI interrupt pin read from the device, then swizzled 73 * as it goes through each bridge. 74 * Returns Interrupt number for the device 75 */ |
77int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | 76int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
78{ 79 if (octeon_pcibios_map_irq) 80 return octeon_pcibios_map_irq(dev, slot, pin); 81 else 82 panic("octeon_pcibios_map_irq not set."); 83} 84 85 --- 631 unchanged lines hidden --- | 77{ 78 if (octeon_pcibios_map_irq) 79 return octeon_pcibios_map_irq(dev, slot, pin); 80 else 81 panic("octeon_pcibios_map_irq not set."); 82} 83 84 --- 631 unchanged lines hidden --- |