Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pci-vdk.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/segment.h>
#include <asm/io.h>
#include <asm/mb-regs.h>
#include <asm/mb86943a.h>
#include "pci-frv.h"

Go to the source code of this file.

Macros

#define CONFIG_CMD(bus, dev, where)   (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3))
 
#define __set_PciCfgAddr(A)   writel((A), (volatile void __iomem *) __region_CS1 + 0x80)
 
#define __get_PciCfgDataB(A)   readb((volatile void __iomem *) __region_CS1 + 0x88 + ((A) & 3))
 
#define __get_PciCfgDataW(A)   readw((volatile void __iomem *) __region_CS1 + 0x88 + ((A) & 2))
 
#define __get_PciCfgDataL(A)   readl((volatile void __iomem *) __region_CS1 + 0x88)
 
#define __set_PciCfgDataB(A, V)   writeb((V), (volatile void __iomem *) __region_CS1 + 0x88 + (3 - ((A) & 3)))
 
#define __set_PciCfgDataW(A, V)   writew((V), (volatile void __iomem *) __region_CS1 + 0x88 + (2 - ((A) & 2)))
 
#define __set_PciCfgDataL(A, V)   writel((V), (volatile void __iomem *) __region_CS1 + 0x88)
 
#define __get_PciBridgeDataB(A)   readb((volatile void __iomem *) __region_CS1 + 0x800 + (A))
 
#define __get_PciBridgeDataW(A)   readw((volatile void __iomem *) __region_CS1 + 0x800 + (A))
 
#define __get_PciBridgeDataL(A)   readl((volatile void __iomem *) __region_CS1 + 0x800 + (A))
 
#define __set_PciBridgeDataB(A, V)   writeb((V), (volatile void __iomem *) __region_CS1 + 0x800 + (A))
 
#define __set_PciBridgeDataW(A, V)   writew((V), (volatile void __iomem *) __region_CS1 + 0x800 + (A))
 
#define __set_PciBridgeDataL(A, V)   writel((V), (volatile void __iomem *) __region_CS1 + 0x800 + (A))
 

Functions

 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_UMC, PCI_DEVICE_ID_UMC_UM8886BF, pci_fixup_umc_ide)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5513, pci_fixup_ide_trash)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5597, pci_fixup_latency)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5598, pci_fixup_latency)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases)
 
void __init pcibios_fixup_bus (struct pci_bus *bus)
 
int __init pcibios_init (void)
 
 arch_initcall (pcibios_init)
 
char *__init pcibios_setup (char *str)
 
int pcibios_enable_device (struct pci_dev *dev, int mask)
 

Variables

unsigned int __nongpreldata pci_probe = 1
 
int __nongpreldata pcibios_last_bus = -1
 
struct pci_bus *__nongpreldata pci_root_bus
 
struct pci_ops *__nongpreldata pci_root_ops
 

Macro Definition Documentation

#define __get_PciBridgeDataB (   A)    readb((volatile void __iomem *) __region_CS1 + 0x800 + (A))

Definition at line 77 of file pci-vdk.c.

#define __get_PciBridgeDataL (   A)    readl((volatile void __iomem *) __region_CS1 + 0x800 + (A))

Definition at line 79 of file pci-vdk.c.

#define __get_PciBridgeDataW (   A)    readw((volatile void __iomem *) __region_CS1 + 0x800 + (A))

Definition at line 78 of file pci-vdk.c.

#define __get_PciCfgDataB (   A)    readb((volatile void __iomem *) __region_CS1 + 0x88 + ((A) & 3))

Definition at line 64 of file pci-vdk.c.

#define __get_PciCfgDataL (   A)    readl((volatile void __iomem *) __region_CS1 + 0x88)

Definition at line 66 of file pci-vdk.c.

#define __get_PciCfgDataW (   A)    readw((volatile void __iomem *) __region_CS1 + 0x88 + ((A) & 2))

Definition at line 65 of file pci-vdk.c.

#define __set_PciBridgeDataB (   A,
  V 
)    writeb((V), (volatile void __iomem *) __region_CS1 + 0x800 + (A))

Definition at line 81 of file pci-vdk.c.

#define __set_PciBridgeDataL (   A,
  V 
)    writel((V), (volatile void __iomem *) __region_CS1 + 0x800 + (A))

Definition at line 83 of file pci-vdk.c.

#define __set_PciBridgeDataW (   A,
  V 
)    writew((V), (volatile void __iomem *) __region_CS1 + 0x800 + (A))

Definition at line 82 of file pci-vdk.c.

#define __set_PciCfgAddr (   A)    writel((A), (volatile void __iomem *) __region_CS1 + 0x80)

Definition at line 62 of file pci-vdk.c.

#define __set_PciCfgDataB (   A,
  V 
)    writeb((V), (volatile void __iomem *) __region_CS1 + 0x88 + (3 - ((A) & 3)))

Definition at line 68 of file pci-vdk.c.

#define __set_PciCfgDataL (   A,
  V 
)    writel((V), (volatile void __iomem *) __region_CS1 + 0x88)

Definition at line 74 of file pci-vdk.c.

#define __set_PciCfgDataW (   A,
  V 
)    writew((V), (volatile void __iomem *) __region_CS1 + 0x88 + (2 - ((A) & 2)))

Definition at line 71 of file pci-vdk.c.

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

Definition at line 59 of file pci-vdk.c.

Function Documentation

arch_initcall ( pcibios_init  )
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_UMC  ,
PCI_DEVICE_ID_UMC_UM8886BF  ,
pci_fixup_umc_ide   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_SI  ,
PCI_DEVICE_ID_SI_5513  ,
pci_fixup_ide_trash   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_SI  ,
PCI_DEVICE_ID_SI_5597  ,
pci_fixup_latency   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_SI  ,
PCI_DEVICE_ID_SI_5598  ,
pci_fixup_latency   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_ANY_ID  ,
PCI_ANY_ID  ,
pci_fixup_ide_bases   
)
int pcibios_enable_device ( struct pci_dev dev,
int  mask 
)

Definition at line 444 of file pci-vdk.c.

void __init pcibios_fixup_bus ( struct pci_bus bus)

Definition at line 324 of file pci-vdk.c.

int __init pcibios_init ( void  )

Definition at line 350 of file pci-vdk.c.

char* __init pcibios_setup ( char str)

Definition at line 432 of file pci-vdk.c.

Variable Documentation

unsigned int __nongpreldata pci_probe = 1

Definition at line 26 of file pci-vdk.c.

struct pci_bus* __nongpreldata pci_root_bus

Definition at line 29 of file pci-vdk.c.

struct pci_ops* __nongpreldata pci_root_ops

Definition at line 30 of file pci-vdk.c.

int __nongpreldata pcibios_last_bus = -1

Definition at line 28 of file pci-vdk.c.