Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pci.c File Reference
#include <linux/string.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/bootmem.h>
#include <linux/module.h>
#include <linux/cache.h>
#include <linux/slab.h>
#include <asm/machvec.h>
#include "proto.h"
#include "pci_impl.h"

Go to the source code of this file.

Macros

#define KB   1024
 
#define MB   (1024*KB)
 
#define GB   (1024*MB)
 

Functions

 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82378, quirk_isa_bridge)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_CONTAQ, PCI_DEVICE_ID_CONTAQ_82C693, quirk_cypress)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_ANY_ID, PCI_ANY_ID, pcibios_fixup_final)
 
resource_size_t pcibios_align_resource (void *data, const struct resource *res, resource_size_t size, resource_size_t align)
 
 subsys_initcall (pcibios_init)
 
void __devinit pcibios_fixup_bus (struct pci_bus *bus)
 
int pcibios_enable_device (struct pci_dev *dev, int mask)
 
void pcibios_set_master (struct pci_dev *dev)
 
void __init pcibios_claim_one_bus (struct pci_bus *b)
 
void __init common_init_pci (void)
 
struct pci_controller *__init alloc_pci_controller (void)
 
struct resource *__init alloc_resource (void)
 
asmlinkage long sys_pciconfig_iobase (long which, unsigned long bus, unsigned long dfn)
 
void pci_iounmap (struct pci_dev *dev, void __iomem *addr)
 
 EXPORT_SYMBOL (pci_iounmap)
 
 EXPORT_SYMBOL (isa_bridge)
 

Variables

const char *const pci_io_names []
 
const char *const pci_mem_names []
 
const char pci_hae0_name [] = "HAE0"
 
struct pci_controllerhose_head
 
struct pci_controller ** hose_tail = &hose_head
 
struct pci_controllerpci_isa_hose
 
struct pci_devisa_bridge
 

Macro Definition Documentation

#define GB   (1024*MB)

Definition at line 122 of file pci.c.

#define KB   1024

Definition at line 120 of file pci.c.

#define MB   (1024*KB)

Definition at line 121 of file pci.c.

Function Documentation

struct pci_controller* __init alloc_pci_controller ( void  )
read

Definition at line 364 of file pci.c.

struct resource* __init alloc_resource ( void  )
read

Definition at line 377 of file pci.c.

void __init common_init_pci ( void  )

Definition at line 315 of file pci.c.

DECLARE_PCI_FIXUP_FINAL ( PCI_ANY_ID  ,
PCI_ANY_ID  ,
pcibios_fixup_final   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_INTEL  ,
PCI_DEVICE_ID_INTEL_82378  ,
quirk_isa_bridge   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_CONTAQ  ,
PCI_DEVICE_ID_CONTAQ_82C693  ,
quirk_cypress   
)
EXPORT_SYMBOL ( pci_iounmap  )
EXPORT_SYMBOL ( isa_bridge  )
void pci_iounmap ( struct pci_dev dev,
void __iomem addr 
)

Definition at line 434 of file pci.c.

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

Definition at line 125 of file pci.c.

void __init pcibios_claim_one_bus ( struct pci_bus b)

Definition at line 282 of file pci.c.

int pcibios_enable_device ( struct pci_dev dev,
int  mask 
)

Definition at line 260 of file pci.c.

void __devinit pcibios_fixup_bus ( struct pci_bus bus)

Definition at line 245 of file pci.c.

void pcibios_set_master ( struct pci_dev dev)

Definition at line 271 of file pci.c.

subsys_initcall ( pcibios_init  )
asmlinkage long sys_pciconfig_iobase ( long  which,
unsigned long  bus,
unsigned long  dfn 
)

Definition at line 391 of file pci.c.

Variable Documentation

struct pci_controller* hose_head

Definition at line 55 of file pci.c.

struct pci_controller ** hose_tail = &hose_head

Definition at line 55 of file pci.c.

struct pci_dev* isa_bridge

Definition at line 443 of file pci.c.

const char pci_hae0_name[] = "HAE0"

Definition at line 44 of file pci.c.

const char* const pci_io_names[]
Initial value:
= {
"PCI IO bus 0", "PCI IO bus 1", "PCI IO bus 2", "PCI IO bus 3",
"PCI IO bus 4", "PCI IO bus 5", "PCI IO bus 6", "PCI IO bus 7"
}

Definition at line 34 of file pci.c.

struct pci_controller* pci_isa_hose

Definition at line 56 of file pci.c.

const char* const pci_mem_names[]
Initial value:
= {
"PCI mem bus 0", "PCI mem bus 1", "PCI mem bus 2", "PCI mem bus 3",
"PCI mem bus 4", "PCI mem bus 5", "PCI mem bus 6", "PCI mem bus 7"
}

Definition at line 39 of file pci.c.