Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
direct.c File Reference
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/dmi.h>
#include <asm/pci_x86.h>

Go to the source code of this file.

Macros

#define PCI_CONF1_ADDRESS(bus, devfn, reg)
 
#define PCI_CONF2_ADDRESS(dev, reg)   (u16)(0xC000 | (dev << 8) | reg)
 

Functions

void __init pci_direct_init (int type)
 
int __init pci_direct_probe (void)
 

Variables

struct pci_raw_ops pci_direct_conf1
 

Macro Definition Documentation

#define PCI_CONF1_ADDRESS (   bus,
  devfn,
  reg 
)
Value:
(0x80000000 | ((reg & 0xF00) << 16) | (bus << 16) \
| (devfn << 8) | (reg & 0xFC))

Definition at line 16 of file direct.c.

#define PCI_CONF2_ADDRESS (   dev,
  reg 
)    (u16)(0xC000 | (dev << 8) | reg)

Definition at line 92 of file direct.c.

Function Documentation

void __init pci_direct_init ( int  type)

Definition at line 263 of file direct.c.

int __init pci_direct_probe ( void  )

Definition at line 283 of file direct.c.

Variable Documentation

struct pci_raw_ops pci_direct_conf1
Initial value:
= {
.read = pci_conf1_read,
.write = pci_conf1_write,
}

Definition at line 82 of file direct.c.