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/kernel.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/init.h>
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/irq.h>
#include <asm/hydra.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/sections.h>
#include <asm/pci-bridge.h>
#include <asm/grackle.h>
#include <asm/rtas.h>
#include "chrp.h"
#include "gg2.h"

Go to the source code of this file.

Macros

#define PRG_CL_RESET_VALID   0x00010000
 
#define SL82C105_IDECSR   0x40
 

Functions

int gg2_read_config (struct pci_bus *bus, unsigned int devfn, int off, int len, u32 *val)
 
int gg2_write_config (struct pci_bus *bus, unsigned int devfn, int off, int len, u32 val)
 
int rtas_read_config (struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val)
 
int rtas_write_config (struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val)
 
int __init hydra_init (void)
 
void __init chrp_find_bridges (void)
 
 DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_WINBOND, PCI_DEVICE_ID_WINBOND_82C105, chrp_pci_fixup_winbond_ata)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_1, chrp_pci_fixup_vt8231_ata)
 

Variables

void __iomemgg2_pci_config_base
 
struct Hydra __iomemHydra = NULL
 

Macro Definition Documentation

#define PRG_CL_RESET_VALID   0x00010000

Definition at line 161 of file pci.c.

#define SL82C105_IDECSR   0x40

Definition at line 319 of file pci.c.

Function Documentation

void __init chrp_find_bridges ( void  )

Definition at line 207 of file pci.c.

DECLARE_PCI_FIXUP_EARLY ( PCI_VENDOR_ID_WINBOND  ,
PCI_DEVICE_ID_WINBOND_82C105  ,
chrp_pci_fixup_winbond_ata   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_VIA  ,
PCI_DEVICE_ID_VIA_82C586_1  ,
chrp_pci_fixup_vt8231_ata   
)
int gg2_read_config ( struct pci_bus bus,
unsigned int  devfn,
int  off,
int  len,
u32 val 
)

Definition at line 33 of file pci.c.

int gg2_write_config ( struct pci_bus bus,
unsigned int  devfn,
int  off,
int  len,
u32  val 
)

Definition at line 60 of file pci.c.

int __init hydra_init ( void  )

Definition at line 134 of file pci.c.

int rtas_read_config ( struct pci_bus bus,
unsigned int  devfn,
int  offset,
int  len,
u32 val 
)

Definition at line 96 of file pci.c.

int rtas_write_config ( struct pci_bus bus,
unsigned int  devfn,
int  offset,
int  len,
u32  val 
)

Definition at line 111 of file pci.c.

Variable Documentation

void __iomem* gg2_pci_config_base

Definition at line 26 of file pci.c.

struct Hydra __iomem* Hydra = NULL

Definition at line 131 of file pci.c.