Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
pci.h File Reference
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/init.h>

Go to the source code of this file.

Macros

#define PCI_ACCESS_READ   0
 
#define PCI_ACCESS_WRITE   1
 
#define PCI_CMD_IOR   0x20
 
#define PCI_CMD_IOW   0x30
 
#define PCI_CMD_CONFIG_READ   0xa0
 
#define PCI_CMD_CONFIG_WRITE   0xb0
 
#define PCI_IO_TIMEOUT   1000
 
#define PCI_IO_RETRY   5
 
#define PCI_IO_JIFFIES_TIMEOUT   40
 
#define PCI_IO_JIFFIES_SHIFT   10
 
#define PCI_BYTE_ENABLE_MASK   0x0000000f
 
#define PCI_CFG_BUS_SHIFT   16
 
#define PCI_CFG_FUNC_SHIFT   8
 
#define PCI_CFG_REG_SHIFT   2
 
#define PCI_BASE   0x1be00000
 
#define PCI_SETUP   0x00040010
 
#define PCI_DIS_REQGNT   (1<<30)
 
#define PCI_DIS_REQGNTA   (1<<29)
 
#define PCI_DIS_REQGNTB   (1<<28)
 
#define PCI_D2_SUPPORT   (1<<27)
 
#define PCI_D1_SUPPORT   (1<<26)
 
#define PCI_EN_TA   (1<<24)
 
#define PCI_EN_PCI2MMI   (1<<23)
 
#define PCI_EN_XIO   (1<<22)
 
#define PCI_BASE18_PREF   (1<<21)
 
#define SIZE_16M   0x3
 
#define SIZE_32M   0x4
 
#define SIZE_64M   0x5
 
#define SIZE_128M   0x6
 
#define PCI_SETUP_BASE18_SIZE(X)   (X<<18)
 
#define PCI_SETUP_BASE18_EN   (1<<17)
 
#define PCI_SETUP_BASE14_PREF   (1<<16)
 
#define PCI_SETUP_BASE14_SIZE(X)   (X<<12)
 
#define PCI_SETUP_BASE14_EN   (1<<11)
 
#define PCI_SETUP_BASE10_PREF   (1<<10)
 
#define PCI_SETUP_BASE10_SIZE(X)   (X<<7)
 
#define PCI_SETUP_CFGMANAGE_EN   (1<<1)
 
#define PCI_SETUP_PCIARB_EN   (1<<0)
 
#define PCI_CTRL   0x040014
 
#define PCI_SWPB_DCS_PCI   (1<<16)
 
#define PCI_SWPB_PCI_PCI   (1<<15)
 
#define PCI_SWPB_PCI_DCS   (1<<14)
 
#define PCI_REG_WR_POST   (1<<13)
 
#define PCI_XIO_WR_POST   (1<<12)
 
#define PCI_PCI2_WR_POST   (1<<13)
 
#define PCI_PCI1_WR_POST   (1<<12)
 
#define PCI_SERR_SEEN   (1<<11)
 
#define PCI_B10_SPEC_RD   (1<<6)
 
#define PCI_B14_SPEC_RD   (1<<5)
 
#define PCI_B18_SPEC_RD   (1<<4)
 
#define PCI_B10_NOSUBWORD   (1<<3)
 
#define PCI_B14_NOSUBWORD   (1<<2)
 
#define PCI_B18_NOSUBWORD   (1<<1)
 
#define PCI_RETRY_TMREN   (1<<0)
 
#define PCI_BASE1_LO   0x040018
 
#define PCI_BASE1_HI   0x04001C
 
#define PCI_BASE2_LO   0x040020
 
#define PCI_BASE2_HI   0x040024
 
#define PCI_RDLIFETIM   0x040028
 
#define PCI_GPPM_ADDR   0x04002C
 
#define PCI_GPPM_WDAT   0x040030
 
#define PCI_GPPM_RDAT   0x040034
 
#define PCI_GPPM_CTRL   0x040038
 
#define GPPM_DONE   (1<<10)
 
#define INIT_PCI_CYCLE   (1<<9)
 
#define GPPM_CMD(X)   (((X)&0xf)<<4)
 
#define GPPM_BYTEEN(X)   ((X)&0xf)
 
#define PCI_UNLOCKREG   0x04003C
 
#define UNLOCK_SSID(X)   (((X)&0xff)<<8)
 
#define UNLOCK_SETUP(X)   (((X)&0xff)<<0)
 
#define UNLOCK_MAGIC   0xCA
 
#define PCI_DEV_VEND_ID   0x040040
 
#define DEVICE_ID(X)   (((X)>>16)&0xffff)
 
#define VENDOR_ID(X)   (((X)&0xffff))
 
#define PCI_CFG_CMDSTAT   0x040044
 
#define PCI_CFG_STATUS(X)   (((X)>>16)&0xffff)
 
#define PCI_CFG_COMMAND(X)   ((X)&0xffff)
 
#define PCI_CLASS_REV   0x040048
 
#define PCI_CLASSCODE(X)   (((X)>>8)&0xffffff)
 
#define PCI_REVID(X)   ((X)&0xff)
 
#define PCI_LAT_TMR   0x04004c
 
#define PCI_BASE10   0x040050
 
#define PCI_BASE14   0x040054
 
#define PCI_BASE18   0x040058
 
#define PCI_SUBSYS_ID   0x04006c
 
#define PCI_CAP_PTR   0x040074
 
#define PCI_CFG_MISC   0x04007c
 
#define PCI_PMC   0x040080
 
#define PCI_PWR_STATE   0x040084
 
#define PCI_IO   0x040088
 
#define PCI_SLVTUNING   0x04008C
 
#define PCI_DMATUNING   0x040090
 
#define PCI_DMAEADDR   0x040800
 
#define PCI_DMAIADDR   0x040804
 
#define PCI_DMALEN   0x040808
 
#define PCI_DMACTRL   0x04080C
 
#define PCI_XIOCTRL   0x040810
 
#define PCI_SEL0PROF   0x040814
 
#define PCI_SEL1PROF   0x040818
 
#define PCI_SEL2PROF   0x04081C
 
#define PCI_GPXIOADDR   0x040820
 
#define PCI_NANDCTRLS   0x400830
 
#define PCI_SEL3PROF   0x040834
 
#define PCI_SEL4PROF   0x040838
 
#define PCI_GPXIO_STAT   0x040FB0
 
#define PCI_GPXIO_IMASK   0x040FB4
 
#define PCI_GPXIO_ICLR   0x040FB8
 
#define PCI_GPXIO_ISET   0x040FBC
 
#define PCI_GPPM_STATUS   0x040FC0
 
#define GPPM_DONE   (1<<10)
 
#define GPPM_ERR   (1<<9)
 
#define GPPM_MPAR_ERR   (1<<8)
 
#define GPPM_PAR_ERR   (1<<7)
 
#define GPPM_R_MABORT   (1<<2)
 
#define GPPM_R_TABORT   (1<<1)
 
#define PCI_GPPM_IMASK   0x040FC4
 
#define PCI_GPPM_ICLR   0x040FC8
 
#define PCI_GPPM_ISET   0x040FCC
 
#define PCI_DMA_STATUS   0x040FD0
 
#define PCI_DMA_IMASK   0x040FD4
 
#define PCI_DMA_ICLR   0x040FD8
 
#define PCI_DMA_ISET   0x040FDC
 
#define PCI_ISTATUS   0x040FE0
 
#define PCI_IMASK   0x040FE4
 
#define PCI_ICLR   0x040FE8
 
#define PCI_ISET   0x040FEC
 
#define PCI_MOD_ID   0x040FFC
 
#define PCI_CFG_TYPE0_REG_SHF   0
 
#define PCI_CFG_TYPE0_FUNC_SHF   8
 
#define PCI_CFG_TYPE1_REG_SHF   0
 
#define PCI_CFG_TYPE1_FUNC_SHF   8
 
#define PCI_CFG_TYPE1_DEV_SHF   11
 
#define PCI_CFG_TYPE1_BUS_SHF   16
 
#define DP83816_IRQ_ETHER   66
 

Macro Definition Documentation

#define DEVICE_ID (   X)    (((X)>>16)&0xffff)

Definition at line 111 of file pci.h.

#define DP83816_IRQ_ETHER   66

Definition at line 183 of file pci.h.

#define GPPM_BYTEEN (   X)    ((X)&0xf)

Definition at line 105 of file pci.h.

#define GPPM_CMD (   X)    (((X)&0xf)<<4)

Definition at line 104 of file pci.h.

#define GPPM_DONE   (1<<10)

Definition at line 148 of file pci.h.

#define GPPM_DONE   (1<<10)

Definition at line 148 of file pci.h.

#define GPPM_ERR   (1<<9)

Definition at line 149 of file pci.h.

#define GPPM_MPAR_ERR   (1<<8)

Definition at line 150 of file pci.h.

#define GPPM_PAR_ERR   (1<<7)

Definition at line 151 of file pci.h.

#define GPPM_R_MABORT   (1<<2)

Definition at line 152 of file pci.h.

#define GPPM_R_TABORT   (1<<1)

Definition at line 153 of file pci.h.

#define INIT_PCI_CYCLE   (1<<9)

Definition at line 103 of file pci.h.

#define PCI_ACCESS_READ   0

Definition at line 30 of file pci.h.

#define PCI_ACCESS_WRITE   1

Definition at line 31 of file pci.h.

#define PCI_B10_NOSUBWORD   (1<<3)

Definition at line 88 of file pci.h.

#define PCI_B10_SPEC_RD   (1<<6)

Definition at line 85 of file pci.h.

#define PCI_B14_NOSUBWORD   (1<<2)

Definition at line 89 of file pci.h.

#define PCI_B14_SPEC_RD   (1<<5)

Definition at line 86 of file pci.h.

#define PCI_B18_NOSUBWORD   (1<<1)

Definition at line 90 of file pci.h.

#define PCI_B18_SPEC_RD   (1<<4)

Definition at line 87 of file pci.h.

#define PCI_BASE   0x1be00000

Definition at line 51 of file pci.h.

#define PCI_BASE10   0x040050

Definition at line 120 of file pci.h.

#define PCI_BASE14   0x040054

Definition at line 121 of file pci.h.

#define PCI_BASE18   0x040058

Definition at line 122 of file pci.h.

#define PCI_BASE18_PREF   (1<<21)

Definition at line 61 of file pci.h.

#define PCI_BASE1_HI   0x04001C

Definition at line 94 of file pci.h.

#define PCI_BASE1_LO   0x040018

Definition at line 93 of file pci.h.

#define PCI_BASE2_HI   0x040024

Definition at line 96 of file pci.h.

#define PCI_BASE2_LO   0x040020

Definition at line 95 of file pci.h.

#define PCI_BYTE_ENABLE_MASK   0x0000000f

Definition at line 46 of file pci.h.

#define PCI_CAP_PTR   0x040074

Definition at line 124 of file pci.h.

#define PCI_CFG_BUS_SHIFT   16

Definition at line 47 of file pci.h.

#define PCI_CFG_CMDSTAT   0x040044

Definition at line 113 of file pci.h.

#define PCI_CFG_COMMAND (   X)    ((X)&0xffff)

Definition at line 115 of file pci.h.

#define PCI_CFG_FUNC_SHIFT   8

Definition at line 48 of file pci.h.

#define PCI_CFG_MISC   0x04007c

Definition at line 125 of file pci.h.

#define PCI_CFG_REG_SHIFT   2

Definition at line 49 of file pci.h.

#define PCI_CFG_STATUS (   X)    (((X)>>16)&0xffff)

Definition at line 114 of file pci.h.

#define PCI_CFG_TYPE0_FUNC_SHF   8

Definition at line 172 of file pci.h.

#define PCI_CFG_TYPE0_REG_SHF   0

Definition at line 171 of file pci.h.

#define PCI_CFG_TYPE1_BUS_SHF   16

Definition at line 178 of file pci.h.

#define PCI_CFG_TYPE1_DEV_SHF   11

Definition at line 177 of file pci.h.

#define PCI_CFG_TYPE1_FUNC_SHF   8

Definition at line 176 of file pci.h.

#define PCI_CFG_TYPE1_REG_SHF   0

Definition at line 175 of file pci.h.

#define PCI_CLASS_REV   0x040048

Definition at line 116 of file pci.h.

#define PCI_CLASSCODE (   X)    (((X)>>8)&0xffffff)

Definition at line 117 of file pci.h.

#define PCI_CMD_CONFIG_READ   0xa0

Definition at line 35 of file pci.h.

#define PCI_CMD_CONFIG_WRITE   0xb0

Definition at line 36 of file pci.h.

#define PCI_CMD_IOR   0x20

Definition at line 33 of file pci.h.

#define PCI_CMD_IOW   0x30

Definition at line 34 of file pci.h.

#define PCI_CTRL   0x040014

Definition at line 76 of file pci.h.

#define PCI_D1_SUPPORT   (1<<26)

Definition at line 57 of file pci.h.

#define PCI_D2_SUPPORT   (1<<27)

Definition at line 56 of file pci.h.

#define PCI_DEV_VEND_ID   0x040040

Definition at line 110 of file pci.h.

#define PCI_DIS_REQGNT   (1<<30)

Definition at line 53 of file pci.h.

#define PCI_DIS_REQGNTA   (1<<29)

Definition at line 54 of file pci.h.

#define PCI_DIS_REQGNTB   (1<<28)

Definition at line 55 of file pci.h.

#define PCI_DMA_ICLR   0x040FD8

Definition at line 159 of file pci.h.

#define PCI_DMA_IMASK   0x040FD4

Definition at line 158 of file pci.h.

#define PCI_DMA_ISET   0x040FDC

Definition at line 160 of file pci.h.

#define PCI_DMA_STATUS   0x040FD0

Definition at line 157 of file pci.h.

#define PCI_DMACTRL   0x04080C

Definition at line 134 of file pci.h.

#define PCI_DMAEADDR   0x040800

Definition at line 131 of file pci.h.

#define PCI_DMAIADDR   0x040804

Definition at line 132 of file pci.h.

#define PCI_DMALEN   0x040808

Definition at line 133 of file pci.h.

#define PCI_DMATUNING   0x040090

Definition at line 130 of file pci.h.

#define PCI_EN_PCI2MMI   (1<<23)

Definition at line 59 of file pci.h.

#define PCI_EN_TA   (1<<24)

Definition at line 58 of file pci.h.

#define PCI_EN_XIO   (1<<22)

Definition at line 60 of file pci.h.

#define PCI_GPPM_ADDR   0x04002C

Definition at line 98 of file pci.h.

#define PCI_GPPM_CTRL   0x040038

Definition at line 101 of file pci.h.

#define PCI_GPPM_ICLR   0x040FC8

Definition at line 155 of file pci.h.

#define PCI_GPPM_IMASK   0x040FC4

Definition at line 154 of file pci.h.

#define PCI_GPPM_ISET   0x040FCC

Definition at line 156 of file pci.h.

#define PCI_GPPM_RDAT   0x040034

Definition at line 100 of file pci.h.

#define PCI_GPPM_STATUS   0x040FC0

Definition at line 147 of file pci.h.

#define PCI_GPPM_WDAT   0x040030

Definition at line 99 of file pci.h.

#define PCI_GPXIO_ICLR   0x040FB8

Definition at line 145 of file pci.h.

#define PCI_GPXIO_IMASK   0x040FB4

Definition at line 144 of file pci.h.

#define PCI_GPXIO_ISET   0x040FBC

Definition at line 146 of file pci.h.

#define PCI_GPXIO_STAT   0x040FB0

Definition at line 143 of file pci.h.

#define PCI_GPXIOADDR   0x040820

Definition at line 139 of file pci.h.

#define PCI_ICLR   0x040FE8

Definition at line 163 of file pci.h.

#define PCI_IMASK   0x040FE4

Definition at line 162 of file pci.h.

#define PCI_IO   0x040088

Definition at line 128 of file pci.h.

#define PCI_IO_JIFFIES_SHIFT   10

Definition at line 44 of file pci.h.

#define PCI_IO_JIFFIES_TIMEOUT   40

Definition at line 43 of file pci.h.

#define PCI_IO_RETRY   5

Definition at line 39 of file pci.h.

#define PCI_IO_TIMEOUT   1000

Definition at line 38 of file pci.h.

#define PCI_ISET   0x040FEC

Definition at line 164 of file pci.h.

#define PCI_ISTATUS   0x040FE0

Definition at line 161 of file pci.h.

#define PCI_LAT_TMR   0x04004c

Definition at line 119 of file pci.h.

#define PCI_MOD_ID   0x040FFC

Definition at line 165 of file pci.h.

#define PCI_NANDCTRLS   0x400830

Definition at line 140 of file pci.h.

#define PCI_PCI1_WR_POST   (1<<12)

Definition at line 83 of file pci.h.

#define PCI_PCI2_WR_POST   (1<<13)

Definition at line 82 of file pci.h.

#define PCI_PMC   0x040080

Definition at line 126 of file pci.h.

#define PCI_PWR_STATE   0x040084

Definition at line 127 of file pci.h.

#define PCI_RDLIFETIM   0x040028

Definition at line 97 of file pci.h.

#define PCI_REG_WR_POST   (1<<13)

Definition at line 80 of file pci.h.

#define PCI_RETRY_TMREN   (1<<0)

Definition at line 91 of file pci.h.

#define PCI_REVID (   X)    ((X)&0xff)

Definition at line 118 of file pci.h.

#define PCI_SEL0PROF   0x040814

Definition at line 136 of file pci.h.

#define PCI_SEL1PROF   0x040818

Definition at line 137 of file pci.h.

#define PCI_SEL2PROF   0x04081C

Definition at line 138 of file pci.h.

#define PCI_SEL3PROF   0x040834

Definition at line 141 of file pci.h.

#define PCI_SEL4PROF   0x040838

Definition at line 142 of file pci.h.

#define PCI_SERR_SEEN   (1<<11)

Definition at line 84 of file pci.h.

#define PCI_SETUP   0x00040010

Definition at line 52 of file pci.h.

#define PCI_SETUP_BASE10_PREF   (1<<10)

Definition at line 71 of file pci.h.

#define PCI_SETUP_BASE10_SIZE (   X)    (X<<7)

Definition at line 72 of file pci.h.

#define PCI_SETUP_BASE14_EN   (1<<11)

Definition at line 70 of file pci.h.

#define PCI_SETUP_BASE14_PREF   (1<<16)

Definition at line 68 of file pci.h.

#define PCI_SETUP_BASE14_SIZE (   X)    (X<<12)

Definition at line 69 of file pci.h.

#define PCI_SETUP_BASE18_EN   (1<<17)

Definition at line 67 of file pci.h.

#define PCI_SETUP_BASE18_SIZE (   X)    (X<<18)

Definition at line 66 of file pci.h.

#define PCI_SETUP_CFGMANAGE_EN   (1<<1)

Definition at line 73 of file pci.h.

#define PCI_SETUP_PCIARB_EN   (1<<0)

Definition at line 74 of file pci.h.

#define PCI_SLVTUNING   0x04008C

Definition at line 129 of file pci.h.

#define PCI_SUBSYS_ID   0x04006c

Definition at line 123 of file pci.h.

#define PCI_SWPB_DCS_PCI   (1<<16)

Definition at line 77 of file pci.h.

#define PCI_SWPB_PCI_DCS   (1<<14)

Definition at line 79 of file pci.h.

#define PCI_SWPB_PCI_PCI   (1<<15)

Definition at line 78 of file pci.h.

#define PCI_UNLOCKREG   0x04003C

Definition at line 106 of file pci.h.

#define PCI_XIO_WR_POST   (1<<12)

Definition at line 81 of file pci.h.

#define PCI_XIOCTRL   0x040810

Definition at line 135 of file pci.h.

#define SIZE_128M   0x6

Definition at line 65 of file pci.h.

#define SIZE_16M   0x3

Definition at line 62 of file pci.h.

#define SIZE_32M   0x4

Definition at line 63 of file pci.h.

#define SIZE_64M   0x5

Definition at line 64 of file pci.h.

#define UNLOCK_MAGIC   0xCA

Definition at line 109 of file pci.h.

#define UNLOCK_SETUP (   X)    (((X)&0xff)<<0)

Definition at line 108 of file pci.h.

#define UNLOCK_SSID (   X)    (((X)&0xff)<<8)

Definition at line 107 of file pci.h.

#define VENDOR_ID (   X)    (((X)&0xffff))

Definition at line 112 of file pci.h.