Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pci-ar71xx.c File Reference
#include <linux/resource.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <linux/pci.h>
#include <linux/pci_regs.h>
#include <linux/interrupt.h>
#include <asm/mach-ath79/ar71xx_regs.h>
#include <asm/mach-ath79/ath79.h>
#include <asm/mach-ath79/pci.h>

Go to the source code of this file.

Macros

#define AR71XX_PCI_MEM_BASE   0x10000000
 
#define AR71XX_PCI_MEM_SIZE   0x08000000
 
#define AR71XX_PCI_WIN0_OFFS   0x10000000
 
#define AR71XX_PCI_WIN1_OFFS   0x11000000
 
#define AR71XX_PCI_WIN2_OFFS   0x12000000
 
#define AR71XX_PCI_WIN3_OFFS   0x13000000
 
#define AR71XX_PCI_WIN4_OFFS   0x14000000
 
#define AR71XX_PCI_WIN5_OFFS   0x15000000
 
#define AR71XX_PCI_WIN6_OFFS   0x16000000
 
#define AR71XX_PCI_WIN7_OFFS   0x07000000
 
#define AR71XX_PCI_CFG_BASE   (AR71XX_PCI_MEM_BASE + AR71XX_PCI_WIN7_OFFS + 0x10000)
 
#define AR71XX_PCI_CFG_SIZE   0x100
 
#define AR71XX_PCI_REG_CRP_AD_CBE   0x00
 
#define AR71XX_PCI_REG_CRP_WRDATA   0x04
 
#define AR71XX_PCI_REG_CRP_RDDATA   0x08
 
#define AR71XX_PCI_REG_CFG_AD   0x0c
 
#define AR71XX_PCI_REG_CFG_CBE   0x10
 
#define AR71XX_PCI_REG_CFG_WRDATA   0x14
 
#define AR71XX_PCI_REG_CFG_RDDATA   0x18
 
#define AR71XX_PCI_REG_PCI_ERR   0x1c
 
#define AR71XX_PCI_REG_PCI_ERR_ADDR   0x20
 
#define AR71XX_PCI_REG_AHB_ERR   0x24
 
#define AR71XX_PCI_REG_AHB_ERR_ADDR   0x28
 
#define AR71XX_PCI_CRP_CMD_WRITE   0x00010000
 
#define AR71XX_PCI_CRP_CMD_READ   0x00000000
 
#define AR71XX_PCI_CFG_CMD_READ   0x0000000a
 
#define AR71XX_PCI_CFG_CMD_WRITE   0x0000000b
 
#define AR71XX_PCI_INT_CORE   BIT(4)
 
#define AR71XX_PCI_INT_DEV2   BIT(2)
 
#define AR71XX_PCI_INT_DEV1   BIT(1)
 
#define AR71XX_PCI_INT_DEV0   BIT(0)
 
#define AR71XX_PCI_IRQ_COUNT   5
 

Functions

__init int ar71xx_pcibios_init (void)
 

Macro Definition Documentation

#define AR71XX_PCI_CFG_BASE   (AR71XX_PCI_MEM_BASE + AR71XX_PCI_WIN7_OFFS + 0x10000)

Definition at line 38 of file pci-ar71xx.c.

#define AR71XX_PCI_CFG_CMD_READ   0x0000000a

Definition at line 56 of file pci-ar71xx.c.

#define AR71XX_PCI_CFG_CMD_WRITE   0x0000000b

Definition at line 57 of file pci-ar71xx.c.

#define AR71XX_PCI_CFG_SIZE   0x100

Definition at line 40 of file pci-ar71xx.c.

#define AR71XX_PCI_CRP_CMD_READ   0x00000000

Definition at line 55 of file pci-ar71xx.c.

#define AR71XX_PCI_CRP_CMD_WRITE   0x00010000

Definition at line 54 of file pci-ar71xx.c.

#define AR71XX_PCI_INT_CORE   BIT(4)

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

#define AR71XX_PCI_INT_DEV0   BIT(0)

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

#define AR71XX_PCI_INT_DEV1   BIT(1)

Definition at line 61 of file pci-ar71xx.c.

#define AR71XX_PCI_INT_DEV2   BIT(2)

Definition at line 60 of file pci-ar71xx.c.

#define AR71XX_PCI_IRQ_COUNT   5

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

#define AR71XX_PCI_MEM_BASE   0x10000000

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

#define AR71XX_PCI_MEM_SIZE   0x08000000

Definition at line 27 of file pci-ar71xx.c.

#define AR71XX_PCI_REG_AHB_ERR   0x24

Definition at line 51 of file pci-ar71xx.c.

#define AR71XX_PCI_REG_AHB_ERR_ADDR   0x28

Definition at line 52 of file pci-ar71xx.c.

#define AR71XX_PCI_REG_CFG_AD   0x0c

Definition at line 45 of file pci-ar71xx.c.

#define AR71XX_PCI_REG_CFG_CBE   0x10

Definition at line 46 of file pci-ar71xx.c.

#define AR71XX_PCI_REG_CFG_RDDATA   0x18

Definition at line 48 of file pci-ar71xx.c.

#define AR71XX_PCI_REG_CFG_WRDATA   0x14

Definition at line 47 of file pci-ar71xx.c.

#define AR71XX_PCI_REG_CRP_AD_CBE   0x00

Definition at line 42 of file pci-ar71xx.c.

#define AR71XX_PCI_REG_CRP_RDDATA   0x08

Definition at line 44 of file pci-ar71xx.c.

#define AR71XX_PCI_REG_CRP_WRDATA   0x04

Definition at line 43 of file pci-ar71xx.c.

#define AR71XX_PCI_REG_PCI_ERR   0x1c

Definition at line 49 of file pci-ar71xx.c.

#define AR71XX_PCI_REG_PCI_ERR_ADDR   0x20

Definition at line 50 of file pci-ar71xx.c.

#define AR71XX_PCI_WIN0_OFFS   0x10000000

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

#define AR71XX_PCI_WIN1_OFFS   0x11000000

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

#define AR71XX_PCI_WIN2_OFFS   0x12000000

Definition at line 31 of file pci-ar71xx.c.

#define AR71XX_PCI_WIN3_OFFS   0x13000000

Definition at line 32 of file pci-ar71xx.c.

#define AR71XX_PCI_WIN4_OFFS   0x14000000

Definition at line 33 of file pci-ar71xx.c.

#define AR71XX_PCI_WIN5_OFFS   0x15000000

Definition at line 34 of file pci-ar71xx.c.

#define AR71XX_PCI_WIN6_OFFS   0x16000000

Definition at line 35 of file pci-ar71xx.c.

#define AR71XX_PCI_WIN7_OFFS   0x07000000

Definition at line 36 of file pci-ar71xx.c.

Function Documentation

__init int ar71xx_pcibios_init ( void  )

Definition at line 352 of file pci-ar71xx.c.