Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pci_gx.c File Reference
#include <linux/kernel.h>
#include <linux/mmzone.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/capability.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/irq.h>
#include <linux/msi.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include <linux/ctype.h>
#include <asm/processor.h>
#include <asm/sections.h>
#include <asm/byteorder.h>
#include <gxio/iorpc_globals.h>
#include <gxio/kiorpc.h>
#include <gxio/trio.h>
#include <gxio/iorpc_trio.h>
#include <hv/drv_trio_intf.h>
#include <arch/sim.h>

Go to the source code of this file.

Macros

#define DEBUG_PCI_CFG   0
 
#define TRACE_CFG_WR(...)
 
#define TRACE_CFG_RD(...)
 
#define DEFAULT_RC_DELAY   10
 
#define MAX_RC_DELAY   20
 

Functions

resource_size_t pcibios_align_resource (void *data, const struct resource *res, resource_size_t size, resource_size_t align)
 
 EXPORT_SYMBOL (pcibios_align_resource)
 
int __init tile_pci_init (void)
 
 early_param ("pcie_rc_delay", setup_pcie_rc_delay)
 
int __init pcibios_init (void)
 
 subsys_initcall (pcibios_init)
 
void __devinit pcibios_fixup_bus (struct pci_bus *bus)
 
char __devinitpcibios_setup (char *str)
 
int pcibios_enable_device (struct pci_dev *dev, int mask)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_ANY_ID, PCI_ANY_ID, pcibios_fixup_final)
 
void __iomemioremap (resource_size_t phys_addr, unsigned long size)
 
 EXPORT_SYMBOL (ioremap)
 
void pci_iounmap (struct pci_dev *dev, void __iomem *addr)
 
 EXPORT_SYMBOL (pci_iounmap)
 
int arch_setup_msi_irq (struct pci_dev *pdev, struct msi_desc *desc)
 
void arch_teardown_msi_irq (unsigned int irq)
 

Variables

struct pcie_port_property pcie_ports [TILEGX_NUM_TRIO][TILEGX_TRIO_PCIES]
 
gxio_trio_context_t trio_contexts [TILEGX_NUM_TRIO]
 
struct pci_controller pci_controllers [TILEGX_NUM_TRIO *TILEGX_TRIO_PCIES]
 
int num_rc_controllers
 

Macro Definition Documentation

#define DEBUG_PCI_CFG   0

Definition at line 47 of file pci_gx.c.

#define DEFAULT_RC_DELAY   10

Definition at line 78 of file pci_gx.c.

#define MAX_RC_DELAY   20

Definition at line 81 of file pci_gx.c.

#define TRACE_CFG_RD (   ...)

Definition at line 58 of file pci_gx.c.

#define TRACE_CFG_WR (   ...)

Definition at line 57 of file pci_gx.c.

Function Documentation

int arch_setup_msi_irq ( struct pci_dev pdev,
struct msi_desc desc 
)

Called when a driver request MSI interrupts instead of the legacy INT A-D. This routine will allocate multiple interrupts for MSI devices that support them. A device can override this by programming the MSI control bits [6:4] before calling pci_enable_msi().

: Device requesting MSI interrupts : MSI descriptor

Returns 0 on success.

Definition at line 1432 of file pci_gx.c.

void arch_teardown_msi_irq ( unsigned int  irq)

Called when a device no longer needs its MSI interrupts. All MSI interrupts for the device are freed.

: The devices first irq number. There may be multple in sequence.

Definition at line 1532 of file pci_gx.c.

DECLARE_PCI_FIXUP_FINAL ( PCI_ANY_ID  ,
PCI_ANY_ID  ,
pcibios_fixup_final   
)
early_param ( "pcie_rc_delay"  ,
setup_pcie_rc_delay   
)
EXPORT_SYMBOL ( pcibios_align_resource  )
EXPORT_SYMBOL ( ioremap  )
EXPORT_SYMBOL ( pci_iounmap  )
void __iomem* ioremap ( resource_size_t  phys_addr,
unsigned long  size 
)

Definition at line 1061 of file pci_gx.c.

void pci_iounmap ( struct pci_dev dev,
void __iomem addr 
)

Definition at line 1125 of file pci_gx.c.

resource_size_t pcibios_align_resource ( void data,
const struct resource res,
resource_size_t  size,
resource_size_t  align 
)

Definition at line 102 of file pci_gx.c.

int pcibios_enable_device ( struct pci_dev dev,
int  mask 
)

Definition at line 1044 of file pci_gx.c.

void __devinit pcibios_fixup_bus ( struct pci_bus bus)

Definition at line 1019 of file pci_gx.c.

int __init pcibios_init ( void  )

Definition at line 589 of file pci_gx.c.

char __devinit* pcibios_setup ( char str)

Definition at line 1027 of file pci_gx.c.

subsys_initcall ( pcibios_init  )
int __init tile_pci_init ( void  )

Definition at line 328 of file pci_gx.c.

Variable Documentation

int num_rc_controllers

Definition at line 91 of file pci_gx.c.

Definition at line 90 of file pci_gx.c.

Definition at line 84 of file pci_gx.c.

Definition at line 87 of file pci_gx.c.