Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pci-bcm1480.c File Reference
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/console.h>
#include <linux/tty.h>
#include <asm/sibyte/bcm1480_regs.h>
#include <asm/sibyte/bcm1480_scd.h>
#include <asm/sibyte/board.h>
#include <asm/io.h>

Go to the source code of this file.

Macros

#define CFGOFFSET(bus, devfn, where)   (((bus)<<16)+((devfn)<<8)+(where))
 
#define CFGADDR(bus, devfn, where)   CFGOFFSET((bus)->number, (devfn), where)
 
#define PCI_BUS_ENABLED   1
 
#define PCI_DEVICE_MODE   2
 
#define PCI_BRIDGE_DEVICE   0
 

Functions

int pcibios_map_irq (const struct pci_dev *dev, u8 slot, u8 pin)
 
int pcibios_plat_dev_init (struct pci_dev *dev)
 
 arch_initcall (bcm1480_pcibios_init)
 

Variables

struct pci_ops bcm1480_pci_ops
 
struct pci_controller bcm1480_controller
 

Macro Definition Documentation

#define CFGADDR (   bus,
  devfn,
  where 
)    CFGOFFSET((bus)->number, (devfn), where)

Definition at line 53 of file pci-bcm1480.c.

#define CFGOFFSET (   bus,
  devfn,
  where 
)    (((bus)<<16)+((devfn)<<8)+(where))

Definition at line 52 of file pci-bcm1480.c.

#define PCI_BRIDGE_DEVICE   0

Definition at line 62 of file pci-bcm1480.c.

#define PCI_BUS_ENABLED   1

Definition at line 57 of file pci-bcm1480.c.

#define PCI_DEVICE_MODE   2

Definition at line 58 of file pci-bcm1480.c.

Function Documentation

arch_initcall ( bcm1480_pcibios_init  )
int pcibios_map_irq ( const struct pci_dev dev,
u8  slot,
u8  pin 
)

Definition at line 77 of file pci-bcm1480.c.

int pcibios_plat_dev_init ( struct pci_dev dev)

Definition at line 86 of file pci-bcm1480.c.

Variable Documentation

struct pci_controller bcm1480_controller
Initial value:
= {
.pci_ops = &bcm1480_pci_ops,
.mem_resource = &bcm1480_mem_resource,
.io_resource = &bcm1480_io_resource,
}

Definition at line 193 of file pci-bcm1480.c.

struct pci_ops bcm1480_pci_ops
Initial value:
= {
bcm1480_pcibios_read,
bcm1480_pcibios_write,
}

Definition at line 174 of file pci-bcm1480.c.