Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
msp_pci.h File Reference

Go to the source code of this file.

Data Structures

struct  pci_block_copy
 
struct  msp_pci_regs
 

Macros

#define MSP_HAS_PCI(ID)   (((u32)(ID) <= 0x4236) && ((u32)(ID) >= 0x4220))
 
#define MSP_PCI_OATRAN   0xB8000000UL
 
#define MSP_PCI_SPACE_BASE   (MSP_PCI_OATRAN + 0x1002000UL)
 
#define MSP_PCI_SPACE_SIZE   (0x3000000UL - 0x2000)
 
#define MSP_PCI_SPACE_END   (MSP_PCI_SPACE_BASE + MSP_PCI_SPACE_SIZE - 1)
 
#define MSP_PCI_IOSPACE_BASE   (MSP_PCI_OATRAN + 0x1001000UL)
 
#define MSP_PCI_IOSPACE_SIZE   0x1000
 
#define MSP_PCI_IOSPACE_END   (MSP_PCI_IOSPACE_BASE + MSP_PCI_IOSPACE_SIZE - 1)
 
#define PCI_STAT_IRQ   20
 
#define QFLUSH_REG_1   0xB7F40000
 
#define BPCI_CFGADDR_BUSNUM_SHF   16
 
#define BPCI_CFGADDR_FUNCTNUM_SHF   8
 
#define BPCI_CFGADDR_REGNUM_SHF   2
 
#define BPCI_CFGADDR_ENABLE   (1<<31)
 
#define BPCI_IFCONTROL_RTO   (1<<20) /* Retry timeout */
 
#define BPCI_IFCONTROL_HCE   (1<<16) /* Host configuration enable */
 
#define BPCI_IFCONTROL_CTO_SHF   12 /* Shift count for CTO bits */
 
#define BPCI_IFCONTROL_SE   (1<<5) /* Enable exceptions on errors */
 
#define BPCI_IFCONTROL_BIST   (1<<4) /* Use BIST in per. mode */
 
#define BPCI_IFCONTROL_CAP   (1<<3) /* Enable capabilities */
 
#define BPCI_IFCONTROL_MMC_SHF   0 /* Shift count for MMC bits */
 
#define BPCI_IFSTATUS_MGT   (1<<8) /* Master Grant timeout */
 
#define BPCI_IFSTATUS_MTT   (1<<9) /* Master TRDY timeout */
 
#define BPCI_IFSTATUS_MRT   (1<<10) /* Master retry timeout */
 
#define BPCI_IFSTATUS_BC0F   (1<<13) /* Block copy 0 fault */
 
#define BPCI_IFSTATUS_BC1F   (1<<14) /* Block copy 1 fault */
 
#define BPCI_IFSTATUS_PCIU   (1<<15) /* PCI unable to respond */
 
#define BPCI_IFSTATUS_BSIZ   (1<<16) /* PCI access with illegal size */
 
#define BPCI_IFSTATUS_BADD   (1<<17) /* PCI access with illegal addr */
 
#define BPCI_IFSTATUS_RTO   (1<<18) /* Retry time out */
 
#define BPCI_IFSTATUS_SER   (1<<19) /* System error */
 
#define BPCI_IFSTATUS_PER   (1<<20) /* Parity error */
 
#define BPCI_IFSTATUS_LCA   (1<<21) /* Local CPU abort */
 
#define BPCI_IFSTATUS_MEM   (1<<22) /* Memory prot. violation */
 
#define BPCI_IFSTATUS_ARB   (1<<23) /* Arbiter timed out */
 
#define BPCI_IFSTATUS_STA   (1<<27) /* Signaled target abort */
 
#define BPCI_IFSTATUS_TA   (1<<28) /* Target abort */
 
#define BPCI_IFSTATUS_MA   (1<<29) /* Master abort */
 
#define BPCI_IFSTATUS_PEI   (1<<30) /* Parity error as initiator */
 
#define BPCI_IFSTATUS_PET   (1<<31) /* Parity error as target */
 
#define BPCI_RESETCTL_PR   (1<<0) /* True if reset asserted */
 
#define BPCI_RESETCTL_RT   (1<<4) /* Release time */
 
#define BPCI_RESETCTL_CT   (1<<8) /* Config time */
 
#define BPCI_RESETCTL_PE   (1<<12) /* PCI enabled */
 
#define BPCI_RESETCTL_HM   (1<<13) /* PCI host mode */
 
#define BPCI_RESETCTL_RI   (1<<14) /* PCI reset in */
 

Typedefs

typedef volatile unsigned int pcireg
 
typedef void *volatile ppcireg
 

Enumerations

enum  {
  config_device_vendor, config_status_command, config_class_revision, config_BIST_header_latency_cache,
  config_BAR0, config_BAR1, config_BAR2, config_not_used7,
  config_not_used8, config_not_used9, config_CIS, config_subsystem,
  config_not_used12, config_capabilities, config_not_used14, config_lat_grant_irq,
  config_message_control, config_message_addr, config_message_data, config_VPD_addr,
  config_VPD_data, config_maxregs
}
 

Functions

struct msp_pci_regs msp_pci_regs __attribute__ ((section(".register")))
 

Macro Definition Documentation

#define BPCI_CFGADDR_BUSNUM_SHF   16

Definition at line 160 of file msp_pci.h.

#define BPCI_CFGADDR_ENABLE   (1<<31)

Definition at line 163 of file msp_pci.h.

#define BPCI_CFGADDR_FUNCTNUM_SHF   8

Definition at line 161 of file msp_pci.h.

#define BPCI_CFGADDR_REGNUM_SHF   2

Definition at line 162 of file msp_pci.h.

#define BPCI_IFCONTROL_BIST   (1<<4) /* Use BIST in per. mode */

Definition at line 169 of file msp_pci.h.

#define BPCI_IFCONTROL_CAP   (1<<3) /* Enable capabilities */

Definition at line 170 of file msp_pci.h.

#define BPCI_IFCONTROL_CTO_SHF   12 /* Shift count for CTO bits */

Definition at line 167 of file msp_pci.h.

#define BPCI_IFCONTROL_HCE   (1<<16) /* Host configuration enable */

Definition at line 166 of file msp_pci.h.

#define BPCI_IFCONTROL_MMC_SHF   0 /* Shift count for MMC bits */

Definition at line 171 of file msp_pci.h.

#define BPCI_IFCONTROL_RTO   (1<<20) /* Retry timeout */

Definition at line 165 of file msp_pci.h.

#define BPCI_IFCONTROL_SE   (1<<5) /* Enable exceptions on errors */

Definition at line 168 of file msp_pci.h.

#define BPCI_IFSTATUS_ARB   (1<<23) /* Arbiter timed out */

Definition at line 186 of file msp_pci.h.

#define BPCI_IFSTATUS_BADD   (1<<17) /* PCI access with illegal addr */

Definition at line 180 of file msp_pci.h.

#define BPCI_IFSTATUS_BC0F   (1<<13) /* Block copy 0 fault */

Definition at line 176 of file msp_pci.h.

#define BPCI_IFSTATUS_BC1F   (1<<14) /* Block copy 1 fault */

Definition at line 177 of file msp_pci.h.

#define BPCI_IFSTATUS_BSIZ   (1<<16) /* PCI access with illegal size */

Definition at line 179 of file msp_pci.h.

#define BPCI_IFSTATUS_LCA   (1<<21) /* Local CPU abort */

Definition at line 184 of file msp_pci.h.

#define BPCI_IFSTATUS_MA   (1<<29) /* Master abort */

Definition at line 189 of file msp_pci.h.

#define BPCI_IFSTATUS_MEM   (1<<22) /* Memory prot. violation */

Definition at line 185 of file msp_pci.h.

#define BPCI_IFSTATUS_MGT   (1<<8) /* Master Grant timeout */

Definition at line 173 of file msp_pci.h.

#define BPCI_IFSTATUS_MRT   (1<<10) /* Master retry timeout */

Definition at line 175 of file msp_pci.h.

#define BPCI_IFSTATUS_MTT   (1<<9) /* Master TRDY timeout */

Definition at line 174 of file msp_pci.h.

#define BPCI_IFSTATUS_PCIU   (1<<15) /* PCI unable to respond */

Definition at line 178 of file msp_pci.h.

#define BPCI_IFSTATUS_PEI   (1<<30) /* Parity error as initiator */

Definition at line 190 of file msp_pci.h.

#define BPCI_IFSTATUS_PER   (1<<20) /* Parity error */

Definition at line 183 of file msp_pci.h.

#define BPCI_IFSTATUS_PET   (1<<31) /* Parity error as target */

Definition at line 191 of file msp_pci.h.

#define BPCI_IFSTATUS_RTO   (1<<18) /* Retry time out */

Definition at line 181 of file msp_pci.h.

#define BPCI_IFSTATUS_SER   (1<<19) /* System error */

Definition at line 182 of file msp_pci.h.

#define BPCI_IFSTATUS_STA   (1<<27) /* Signaled target abort */

Definition at line 187 of file msp_pci.h.

#define BPCI_IFSTATUS_TA   (1<<28) /* Target abort */

Definition at line 188 of file msp_pci.h.

#define BPCI_RESETCTL_CT   (1<<8) /* Config time */

Definition at line 195 of file msp_pci.h.

#define BPCI_RESETCTL_HM   (1<<13) /* PCI host mode */

Definition at line 197 of file msp_pci.h.

#define BPCI_RESETCTL_PE   (1<<12) /* PCI enabled */

Definition at line 196 of file msp_pci.h.

#define BPCI_RESETCTL_PR   (1<<0) /* True if reset asserted */

Definition at line 193 of file msp_pci.h.

#define BPCI_RESETCTL_RI   (1<<14) /* PCI reset in */

Definition at line 198 of file msp_pci.h.

#define BPCI_RESETCTL_RT   (1<<4) /* Release time */

Definition at line 194 of file msp_pci.h.

#define MSP_HAS_PCI (   ID)    (((u32)(ID) <= 0x4236) && ((u32)(ID) >= 0x4220))

Definition at line 29 of file msp_pci.h.

#define MSP_PCI_IOSPACE_BASE   (MSP_PCI_OATRAN + 0x1001000UL)

Definition at line 64 of file msp_pci.h.

#define MSP_PCI_IOSPACE_END   (MSP_PCI_IOSPACE_BASE + MSP_PCI_IOSPACE_SIZE - 1)

Definition at line 66 of file msp_pci.h.

#define MSP_PCI_IOSPACE_SIZE   0x1000

Definition at line 65 of file msp_pci.h.

#define MSP_PCI_OATRAN   0xB8000000UL

Definition at line 58 of file msp_pci.h.

#define MSP_PCI_SPACE_BASE   (MSP_PCI_OATRAN + 0x1002000UL)

Definition at line 60 of file msp_pci.h.

#define MSP_PCI_SPACE_END   (MSP_PCI_SPACE_BASE + MSP_PCI_SPACE_SIZE - 1)

Definition at line 62 of file msp_pci.h.

#define MSP_PCI_SPACE_SIZE   (0x3000000UL - 0x2000)

Definition at line 61 of file msp_pci.h.

#define PCI_STAT_IRQ   20

Definition at line 70 of file msp_pci.h.

#define QFLUSH_REG_1   0xB7F40000

Definition at line 72 of file msp_pci.h.

Typedef Documentation

typedef volatile unsigned int pcireg

Definition at line 74 of file msp_pci.h.

typedef void* volatile ppcireg

Definition at line 75 of file msp_pci.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
config_device_vendor 
config_status_command 
config_class_revision 
config_BIST_header_latency_cache 
config_BAR0 
config_BAR1 
config_BAR2 
config_not_used7 
config_not_used8 
config_not_used9 
config_CIS 
config_subsystem 
config_not_used12 
config_capabilities 
config_not_used14 
config_lat_grant_irq 
config_message_control 
config_message_addr 
config_message_data 
config_VPD_addr 
config_VPD_data 
config_maxregs 

Definition at line 93 of file msp_pci.h.

Function Documentation