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/eisa.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/types.h>
#include <asm/io.h>
#include <asm/superio.h>

Go to the source code of this file.

Macros

#define DEBUG_RESOURCES   0
 
#define DEBUG_CONFIG   0
 
#define DBGC(x...)
 
#define DBG_RES(x...)
 
#define PCI_HBA_MAX   32
 
#define EISA_IN(size)
 
#define EISA_OUT(size)
 
#define PCI_PORT_IN(type, size)
 
#define PCI_PORT_OUT(type, size)
 

Functions

void pcibios_fixup_bus (struct pci_bus *bus)
 
void pcibios_set_master (struct pci_dev *dev)
 
void __init pcibios_init_bus (struct pci_bus *bus)
 
resource_size_t pcibios_align_resource (void *data, const struct resource *res, resource_size_t size, resource_size_t alignment)
 
int pcibios_enable_device (struct pci_dev *dev, int mask)
 
void pcibios_register_hba (struct pci_hba_data *hba)
 
 subsys_initcall (pcibios_init)
 

Variables

struct pci_port_ops *pci_port __read_mostly
 

Macro Definition Documentation

#define DBG_RES (   x...)

Definition at line 34 of file pci.c.

#define DBGC (   x...)

Definition at line 27 of file pci.c.

#define DEBUG_CONFIG   0

Definition at line 22 of file pci.c.

#define DEBUG_RESOURCES   0

Definition at line 21 of file pci.c.

#define EISA_IN (   size)

Definition at line 75 of file pci.c.

#define EISA_OUT (   size)

Definition at line 76 of file pci.c.

#define PCI_HBA_MAX   32

Definition at line 54 of file pci.c.

#define PCI_PORT_IN (   type,
  size 
)
Value:
u##size in##type (int addr) \
{ \
int b = PCI_PORT_HBA(addr); \
EISA_IN(size); \
if (!parisc_pci_hba[b]) return (u##size) -1; \
return pci_port->in##type(parisc_pci_hba[b], PCI_PORT_ADDR(addr)); \
} \
EXPORT_SYMBOL(in##type);

Definition at line 79 of file pci.c.

#define PCI_PORT_OUT (   type,
  size 
)
Value:
void out##type (u##size d, int addr) \
{ \
int b = PCI_PORT_HBA(addr); \
EISA_OUT(size); \
if (!parisc_pci_hba[b]) return; \
pci_port->out##type(parisc_pci_hba[b], PCI_PORT_ADDR(addr), d); \
} \
EXPORT_SYMBOL(out##type);

Definition at line 94 of file pci.c.

Function Documentation

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

Definition at line 201 of file pci.c.

int pcibios_enable_device ( struct pci_dev dev,
int  mask 
)

Definition at line 231 of file pci.c.

void pcibios_fixup_bus ( struct pci_bus bus)

Definition at line 132 of file pci.c.

void __init pcibios_init_bus ( struct pci_bus bus)

Definition at line 174 of file pci.c.

void pcibios_register_hba ( struct pci_hba_data hba)

Definition at line 261 of file pci.c.

void pcibios_set_master ( struct pci_dev dev)

Definition at line 157 of file pci.c.

subsys_initcall ( pcibios_init  )

Variable Documentation

struct pci_hba_data* parisc_pci_hba [PCI_HBA_MAX] __read_mostly

Definition at line 48 of file pci.c.