Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pci-sb1250.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 <linux/vt.h>
#include <asm/io.h>
#include <asm/sibyte/sb1250_defs.h>
#include <asm/sibyte/sb1250_regs.h>
#include <asm/sibyte/sb1250_scd.h>
#include <asm/sibyte/board.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 LDT_BUS_ENABLED   2
 
#define PCI_DEVICE_MODE   4
 
#define PCI_BRIDGE_DEVICE   0
 
#define LDT_BRIDGE_DEVICE   1
 

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 (sb1250_pcibios_init)
 

Variables

struct pci_ops sb1250_pci_ops
 
struct pci_controller sb1250_controller
 

Macro Definition Documentation

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

Definition at line 54 of file pci-sb1250.c.

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

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

#define LDT_BRIDGE_DEVICE   1

Definition at line 65 of file pci-sb1250.c.

#define LDT_BUS_ENABLED   2

Definition at line 59 of file pci-sb1250.c.

#define PCI_BRIDGE_DEVICE   0

Definition at line 64 of file pci-sb1250.c.

#define PCI_BUS_ENABLED   1

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

#define PCI_DEVICE_MODE   4

Definition at line 60 of file pci-sb1250.c.

Function Documentation

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

Definition at line 88 of file pci-sb1250.c.

int pcibios_plat_dev_init ( struct pci_dev dev)

Definition at line 94 of file pci-sb1250.c.

Variable Documentation

struct pci_controller sb1250_controller
Initial value:
= {
.pci_ops = &sb1250_pci_ops,
.mem_resource = &sb1250_mem_resource,
.io_resource = &sb1250_io_resource,
}

Definition at line 203 of file pci-sb1250.c.

struct pci_ops sb1250_pci_ops
Initial value:
= {
.read = sb1250_pcibios_read,
.write = sb1250_pcibios_write,
}

Definition at line 184 of file pci-sb1250.c.