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

Go to the source code of this file.

Data Structures

struct  tx4927_pcic_reg
 

Macros

#define TX4927_PCIC_G2PSTATUS_ALL   0x00000003
 
#define TX4927_PCIC_G2PSTATUS_TTOE   0x00000002
 
#define TX4927_PCIC_G2PSTATUS_RTOE   0x00000001
 
#define TX4927_PCIC_PCISTATUS_ALL   0x0000f900
 
#define TX4927_PCIC_PBACFG_FIXPA   0x00000008
 
#define TX4927_PCIC_PBACFG_RPBA   0x00000004
 
#define TX4927_PCIC_PBACFG_PBAEN   0x00000002
 
#define TX4927_PCIC_PBACFG_BMCEN   0x00000001
 
#define TX4927_PCIC_PBASTATUS_ALL   0x00000001
 
#define TX4927_PCIC_PBASTATUS_BM   0x00000001
 
#define TX4927_PCIC_G2PMnGBASE_BSDIS   0x0000002000000000ULL
 
#define TX4927_PCIC_G2PMnGBASE_ECHG   0x0000001000000000ULL
 
#define TX4927_PCIC_G2PIOGBASE_BSDIS   0x0000002000000000ULL
 
#define TX4927_PCIC_G2PIOGBASE_ECHG   0x0000001000000000ULL
 
#define TX4927_PCIC_PCICSTATUS_ALL   0x000007b8
 
#define TX4927_PCIC_PCICSTATUS_PME   0x00000400
 
#define TX4927_PCIC_PCICSTATUS_TLB   0x00000200
 
#define TX4927_PCIC_PCICSTATUS_NIB   0x00000100
 
#define TX4927_PCIC_PCICSTATUS_ZIB   0x00000080
 
#define TX4927_PCIC_PCICSTATUS_PERR   0x00000020
 
#define TX4927_PCIC_PCICSTATUS_SERR   0x00000010
 
#define TX4927_PCIC_PCICSTATUS_GBE   0x00000008
 
#define TX4927_PCIC_PCICSTATUS_IWB   0x00000002
 
#define TX4927_PCIC_PCICSTATUS_E2PDONE   0x00000001
 
#define TX4927_PCIC_PCICCFG_GBWC_MASK   0x0fff0000
 
#define TX4927_PCIC_PCICCFG_HRST   0x00000800
 
#define TX4927_PCIC_PCICCFG_SRST   0x00000400
 
#define TX4927_PCIC_PCICCFG_IRBER   0x00000200
 
#define TX4927_PCIC_PCICCFG_G2PMEN(ch)   (0x00000100>>(ch))
 
#define TX4927_PCIC_PCICCFG_G2PM0EN   0x00000100
 
#define TX4927_PCIC_PCICCFG_G2PM1EN   0x00000080
 
#define TX4927_PCIC_PCICCFG_G2PM2EN   0x00000040
 
#define TX4927_PCIC_PCICCFG_G2PIOEN   0x00000020
 
#define TX4927_PCIC_PCICCFG_TCAR   0x00000010
 
#define TX4927_PCIC_PCICCFG_ICAEN   0x00000008
 
#define TX4927_PCIC_P2GMnGBASE_TMEMEN   0x0000004000000000ULL
 
#define TX4927_PCIC_P2GMnGBASE_TBSDIS   0x0000002000000000ULL
 
#define TX4927_PCIC_P2GMnGBASE_TECHG   0x0000001000000000ULL
 
#define TX4927_PCIC_P2GIOGBASE_TIOEN   0x0000004000000000ULL
 
#define TX4927_PCIC_P2GIOGBASE_TBSDIS   0x0000002000000000ULL
 
#define TX4927_PCIC_P2GIOGBASE_TECHG   0x0000001000000000ULL
 
#define TX4927_PCIC_IDSEL_AD_TO_SLOT(ad)   ((ad) - 11)
 
#define TX4927_PCIC_MAX_DEVNU   TX4927_PCIC_IDSEL_AD_TO_SLOT(32)
 
#define TX4927_PCIC_PDMCFG_RSTFIFO   0x00200000
 
#define TX4927_PCIC_PDMCFG_EXFER   0x00100000
 
#define TX4927_PCIC_PDMCFG_REQDLY_MASK   0x00003800
 
#define TX4927_PCIC_PDMCFG_REQDLY_NONE   (0 << 11)
 
#define TX4927_PCIC_PDMCFG_REQDLY_16   (1 << 11)
 
#define TX4927_PCIC_PDMCFG_REQDLY_32   (2 << 11)
 
#define TX4927_PCIC_PDMCFG_REQDLY_64   (3 << 11)
 
#define TX4927_PCIC_PDMCFG_REQDLY_128   (4 << 11)
 
#define TX4927_PCIC_PDMCFG_REQDLY_256   (5 << 11)
 
#define TX4927_PCIC_PDMCFG_REQDLY_512   (6 << 11)
 
#define TX4927_PCIC_PDMCFG_REQDLY_1024   (7 << 11)
 
#define TX4927_PCIC_PDMCFG_ERRIE   0x00000400
 
#define TX4927_PCIC_PDMCFG_NCCMPIE   0x00000200
 
#define TX4927_PCIC_PDMCFG_NTCMPIE   0x00000100
 
#define TX4927_PCIC_PDMCFG_CHNEN   0x00000080
 
#define TX4927_PCIC_PDMCFG_XFRACT   0x00000040
 
#define TX4927_PCIC_PDMCFG_BSWAP   0x00000020
 
#define TX4927_PCIC_PDMCFG_XFRSIZE_MASK   0x0000000c
 
#define TX4927_PCIC_PDMCFG_XFRSIZE_1DW   0x00000000
 
#define TX4927_PCIC_PDMCFG_XFRSIZE_1QW   0x00000004
 
#define TX4927_PCIC_PDMCFG_XFRSIZE_4QW   0x00000008
 
#define TX4927_PCIC_PDMCFG_XFRDIRC   0x00000002
 
#define TX4927_PCIC_PDMCFG_CHRST   0x00000001
 
#define TX4927_PCIC_PDMSTS_REQCNT_MASK   0x3f000000
 
#define TX4927_PCIC_PDMSTS_FIFOCNT_MASK   0x00f00000
 
#define TX4927_PCIC_PDMSTS_FIFOWP_MASK   0x000c0000
 
#define TX4927_PCIC_PDMSTS_FIFORP_MASK   0x00030000
 
#define TX4927_PCIC_PDMSTS_ERRINT   0x00000800
 
#define TX4927_PCIC_PDMSTS_DONEINT   0x00000400
 
#define TX4927_PCIC_PDMSTS_CHNEN   0x00000200
 
#define TX4927_PCIC_PDMSTS_XFRACT   0x00000100
 
#define TX4927_PCIC_PDMSTS_ACCMP   0x00000080
 
#define TX4927_PCIC_PDMSTS_NCCMP   0x00000040
 
#define TX4927_PCIC_PDMSTS_NTCMP   0x00000020
 
#define TX4927_PCIC_PDMSTS_CFGERR   0x00000008
 
#define TX4927_PCIC_PDMSTS_PCIERR   0x00000004
 
#define TX4927_PCIC_PDMSTS_CHNERR   0x00000002
 
#define TX4927_PCIC_PDMSTS_DATAERR   0x00000001
 
#define TX4927_PCIC_PDMSTS_ALL_CMP   0x000000e0
 
#define TX4927_PCIC_PDMSTS_ALL_ERR   0x0000000f
 

Functions

struct tx4927_pcic_reg __iomemget_tx4927_pcicptr (struct pci_controller *channel)
 
void tx4927_pcic_setup (struct tx4927_pcic_reg __iomem *pcicptr, struct pci_controller *channel, int extarb)
 
void tx4927_report_pcic_status (void)
 
chartx4927_pcibios_setup (char *str)
 
void tx4927_dump_pcic_settings (void)
 
irqreturn_t tx4927_pcierr_interrupt (int irq, void *dev_id)
 

Macro Definition Documentation

#define TX4927_PCIC_G2PIOGBASE_BSDIS   0x0000002000000000ULL

Definition at line 109 of file tx4927pcic.h.

#define TX4927_PCIC_G2PIOGBASE_ECHG   0x0000001000000000ULL

Definition at line 110 of file tx4927pcic.h.

#define TX4927_PCIC_G2PMnGBASE_BSDIS   0x0000002000000000ULL

Definition at line 105 of file tx4927pcic.h.

#define TX4927_PCIC_G2PMnGBASE_ECHG   0x0000001000000000ULL

Definition at line 106 of file tx4927pcic.h.

#define TX4927_PCIC_G2PSTATUS_ALL   0x00000003

Definition at line 87 of file tx4927pcic.h.

#define TX4927_PCIC_G2PSTATUS_RTOE   0x00000001

Definition at line 89 of file tx4927pcic.h.

#define TX4927_PCIC_G2PSTATUS_TTOE   0x00000002

Definition at line 88 of file tx4927pcic.h.

#define TX4927_PCIC_IDSEL_AD_TO_SLOT (   ad)    ((ad) - 11)

Definition at line 147 of file tx4927pcic.h.

#define TX4927_PCIC_MAX_DEVNU   TX4927_PCIC_IDSEL_AD_TO_SLOT(32)

Definition at line 148 of file tx4927pcic.h.

#define TX4927_PCIC_P2GIOGBASE_TBSDIS   0x0000002000000000ULL

Definition at line 144 of file tx4927pcic.h.

#define TX4927_PCIC_P2GIOGBASE_TECHG   0x0000001000000000ULL

Definition at line 145 of file tx4927pcic.h.

#define TX4927_PCIC_P2GIOGBASE_TIOEN   0x0000004000000000ULL

Definition at line 143 of file tx4927pcic.h.

#define TX4927_PCIC_P2GMnGBASE_TBSDIS   0x0000002000000000ULL

Definition at line 139 of file tx4927pcic.h.

#define TX4927_PCIC_P2GMnGBASE_TECHG   0x0000001000000000ULL

Definition at line 140 of file tx4927pcic.h.

#define TX4927_PCIC_P2GMnGBASE_TMEMEN   0x0000004000000000ULL

Definition at line 138 of file tx4927pcic.h.

#define TX4927_PCIC_PBACFG_BMCEN   0x00000001

Definition at line 98 of file tx4927pcic.h.

#define TX4927_PCIC_PBACFG_FIXPA   0x00000008

Definition at line 95 of file tx4927pcic.h.

#define TX4927_PCIC_PBACFG_PBAEN   0x00000002

Definition at line 97 of file tx4927pcic.h.

#define TX4927_PCIC_PBACFG_RPBA   0x00000004

Definition at line 96 of file tx4927pcic.h.

#define TX4927_PCIC_PBASTATUS_ALL   0x00000001

Definition at line 101 of file tx4927pcic.h.

#define TX4927_PCIC_PBASTATUS_BM   0x00000001

Definition at line 102 of file tx4927pcic.h.

#define TX4927_PCIC_PCICCFG_G2PIOEN   0x00000020

Definition at line 133 of file tx4927pcic.h.

#define TX4927_PCIC_PCICCFG_G2PM0EN   0x00000100

Definition at line 130 of file tx4927pcic.h.

#define TX4927_PCIC_PCICCFG_G2PM1EN   0x00000080

Definition at line 131 of file tx4927pcic.h.

#define TX4927_PCIC_PCICCFG_G2PM2EN   0x00000040

Definition at line 132 of file tx4927pcic.h.

#define TX4927_PCIC_PCICCFG_G2PMEN (   ch)    (0x00000100>>(ch))

Definition at line 129 of file tx4927pcic.h.

#define TX4927_PCIC_PCICCFG_GBWC_MASK   0x0fff0000

Definition at line 125 of file tx4927pcic.h.

#define TX4927_PCIC_PCICCFG_HRST   0x00000800

Definition at line 126 of file tx4927pcic.h.

#define TX4927_PCIC_PCICCFG_ICAEN   0x00000008

Definition at line 135 of file tx4927pcic.h.

#define TX4927_PCIC_PCICCFG_IRBER   0x00000200

Definition at line 128 of file tx4927pcic.h.

#define TX4927_PCIC_PCICCFG_SRST   0x00000400

Definition at line 127 of file tx4927pcic.h.

#define TX4927_PCIC_PCICCFG_TCAR   0x00000010

Definition at line 134 of file tx4927pcic.h.

#define TX4927_PCIC_PCICSTATUS_ALL   0x000007b8

Definition at line 113 of file tx4927pcic.h.

#define TX4927_PCIC_PCICSTATUS_E2PDONE   0x00000001

Definition at line 122 of file tx4927pcic.h.

#define TX4927_PCIC_PCICSTATUS_GBE   0x00000008

Definition at line 120 of file tx4927pcic.h.

#define TX4927_PCIC_PCICSTATUS_IWB   0x00000002

Definition at line 121 of file tx4927pcic.h.

#define TX4927_PCIC_PCICSTATUS_NIB   0x00000100

Definition at line 116 of file tx4927pcic.h.

#define TX4927_PCIC_PCICSTATUS_PERR   0x00000020

Definition at line 118 of file tx4927pcic.h.

#define TX4927_PCIC_PCICSTATUS_PME   0x00000400

Definition at line 114 of file tx4927pcic.h.

#define TX4927_PCIC_PCICSTATUS_SERR   0x00000010

Definition at line 119 of file tx4927pcic.h.

#define TX4927_PCIC_PCICSTATUS_TLB   0x00000200

Definition at line 115 of file tx4927pcic.h.

#define TX4927_PCIC_PCICSTATUS_ZIB   0x00000080

Definition at line 117 of file tx4927pcic.h.

#define TX4927_PCIC_PCISTATUS_ALL   0x0000f900

Definition at line 92 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_BSWAP   0x00000020

Definition at line 167 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_CHNEN   0x00000080

Definition at line 165 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_CHRST   0x00000001

Definition at line 173 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_ERRIE   0x00000400

Definition at line 162 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_EXFER   0x00100000

Definition at line 152 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_NCCMPIE   0x00000200

Definition at line 163 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_NTCMPIE   0x00000100

Definition at line 164 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_REQDLY_1024   (7 << 11)

Definition at line 161 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_REQDLY_128   (4 << 11)

Definition at line 158 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_REQDLY_16   (1 << 11)

Definition at line 155 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_REQDLY_256   (5 << 11)

Definition at line 159 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_REQDLY_32   (2 << 11)

Definition at line 156 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_REQDLY_512   (6 << 11)

Definition at line 160 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_REQDLY_64   (3 << 11)

Definition at line 157 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_REQDLY_MASK   0x00003800

Definition at line 153 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_REQDLY_NONE   (0 << 11)

Definition at line 154 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_RSTFIFO   0x00200000

Definition at line 151 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_XFRACT   0x00000040

Definition at line 166 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_XFRDIRC   0x00000002

Definition at line 172 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_XFRSIZE_1DW   0x00000000

Definition at line 169 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_XFRSIZE_1QW   0x00000004

Definition at line 170 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_XFRSIZE_4QW   0x00000008

Definition at line 171 of file tx4927pcic.h.

#define TX4927_PCIC_PDMCFG_XFRSIZE_MASK   0x0000000c

Definition at line 168 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_ACCMP   0x00000080

Definition at line 184 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_ALL_CMP   0x000000e0

Definition at line 191 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_ALL_ERR   0x0000000f

Definition at line 192 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_CFGERR   0x00000008

Definition at line 187 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_CHNEN   0x00000200

Definition at line 182 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_CHNERR   0x00000002

Definition at line 189 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_DATAERR   0x00000001

Definition at line 190 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_DONEINT   0x00000400

Definition at line 181 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_ERRINT   0x00000800

Definition at line 180 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_FIFOCNT_MASK   0x00f00000

Definition at line 177 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_FIFORP_MASK   0x00030000

Definition at line 179 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_FIFOWP_MASK   0x000c0000

Definition at line 178 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_NCCMP   0x00000040

Definition at line 185 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_NTCMP   0x00000020

Definition at line 186 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_PCIERR   0x00000004

Definition at line 188 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_REQCNT_MASK   0x3f000000

Definition at line 176 of file tx4927pcic.h.

#define TX4927_PCIC_PDMSTS_XFRACT   0x00000100

Definition at line 183 of file tx4927pcic.h.

Function Documentation

struct tx4927_pcic_reg __iomem* get_tx4927_pcicptr ( struct pci_controller channel)
read

Definition at line 50 of file ops-tx4927.c.

void tx4927_dump_pcic_settings ( void  )

Definition at line 461 of file ops-tx4927.c.

char* tx4927_pcibios_setup ( char str)

Definition at line 200 of file ops-tx4927.c.

void tx4927_pcic_setup ( struct tx4927_pcic_reg __iomem pcicptr,
struct pci_controller channel,
int  extarb 
)

Definition at line 222 of file ops-tx4927.c.

irqreturn_t tx4927_pcierr_interrupt ( int  irq,
void dev_id 
)

Definition at line 471 of file ops-tx4927.c.

void tx4927_report_pcic_status ( void  )

Definition at line 427 of file ops-tx4927.c.