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/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <asm/io.h>
#include "pci-asb2305.h"

Go to the source code of this file.

Macros

#define CONFIG_CMD(bus, devfn, where)   (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
 
#define MEM_PAGING_REG   (*(volatile __u32 *) 0xBFFFFFF4)
 
#define CONFIG_ADDRESS   (*(volatile __u32 *) 0xBFFFFFF8)
 
#define CONFIG_DATAL(X)   (*(volatile __u32 *) 0xBFFFFFFC)
 
#define CONFIG_DATAW(X)   (*(volatile __u16 *) (0xBFFFFFFC + ((X) & 2)))
 
#define CONFIG_DATAB(X)   (*(volatile __u8 *) (0xBFFFFFFC + ((X) & 3)))
 
#define BRIDGEREGB(X)   (*(volatile __u8 *) (0xBE040000 + (X)))
 
#define BRIDGEREGW(X)   (*(volatile __u16 *) (0xBE040000 + (X)))
 
#define BRIDGEREGL(X)   (*(volatile __u32 *) (0xBE040000 + (X)))
 
#define RDP   (*(volatile u32 *) 0xBE030010)
 
#define RAP   (*(volatile u32 *) 0xBE030014)
 
#define __set_RAP(X)   do { RAP = (X); x = RAP; } while (0)
 
#define __set_RDP(X)   do { RDP = (X); x = RDP; } while (0)
 
#define __get_RDP()   ({ RDP & 0xffff; })
 

Functions

void __devinit pcibios_fixup_bus (struct pci_bus *bus)
 
 arch_initcall (pcibios_init)
 
char *__init pcibios_setup (char *str)
 
int pcibios_enable_device (struct pci_dev *dev, int mask)
 
asmlinkage void __init unit_pci_init (void)
 

Variables

unsigned int pci_probe = 1
 
int pcibios_last_bus = -1
 
struct pci_buspci_root_bus
 
struct pci_opspci_root_ops
 

Macro Definition Documentation

#define __get_RDP ( )    ({ RDP & 0xffff; })
#define __set_RAP (   X)    do { RAP = (X); x = RAP; } while (0)
#define __set_RDP (   X)    do { RDP = (X); x = RDP; } while (0)
#define BRIDGEREGB (   X)    (*(volatile __u8 *) (0xBE040000 + (X)))

Definition at line 64 of file pci.c.

#define BRIDGEREGL (   X)    (*(volatile __u32 *) (0xBE040000 + (X)))

Definition at line 66 of file pci.c.

#define BRIDGEREGW (   X)    (*(volatile __u16 *) (0xBE040000 + (X)))

Definition at line 65 of file pci.c.

#define CONFIG_ADDRESS   (*(volatile __u32 *) 0xBFFFFFF8)

Definition at line 59 of file pci.c.

#define CONFIG_CMD (   bus,
  devfn,
  where 
)    (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))

Definition at line 55 of file pci.c.

#define CONFIG_DATAB (   X)    (*(volatile __u8 *) (0xBFFFFFFC + ((X) & 3)))

Definition at line 62 of file pci.c.

#define CONFIG_DATAL (   X)    (*(volatile __u32 *) 0xBFFFFFFC)

Definition at line 60 of file pci.c.

#define CONFIG_DATAW (   X)    (*(volatile __u16 *) (0xBFFFFFFC + ((X) & 2)))

Definition at line 61 of file pci.c.

#define MEM_PAGING_REG   (*(volatile __u32 *) 0xBFFFFFF4)

Definition at line 58 of file pci.c.

#define RAP   (*(volatile u32 *) 0xBE030014)
#define RDP   (*(volatile u32 *) 0xBE030010)

Function Documentation

arch_initcall ( pcibios_init  )
int pcibios_enable_device ( struct pci_dev dev,
int  mask 
)

Definition at line 406 of file pci.c.

void __devinit pcibios_fixup_bus ( struct pci_bus bus)

Definition at line 329 of file pci.c.

char* __init pcibios_setup ( char str)

Definition at line 392 of file pci.c.

asmlinkage void __init unit_pci_init ( void  )

Definition at line 456 of file pci.c.

Variable Documentation

unsigned int pci_probe = 1

Definition at line 23 of file pci.c.

struct pci_bus* pci_root_bus

Definition at line 26 of file pci.c.

struct pci_ops* pci_root_ops

Definition at line 27 of file pci.c.

int pcibios_last_bus = -1

Definition at line 25 of file pci.c.