Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | pci_map |
struct | pci_reg |
struct | pci_msu |
Macros | |
#define | epld_mask ((volatile unsigned char *)0xB900000d) |
#define | PCI0_BASE_ADDR 0x18080000 |
#define | PCI_LBA_COUNT 4 |
#define | PCI_MSU_COUNT 2 |
#define | PCI_CTL_EN (1 << 0) |
#define | PCI_CTL_TNR (1 << 1) |
#define | PCI_CTL_SCE (1 << 2) |
#define | PCI_CTL_IEN (1 << 3) |
#define | PCI_CTL_AAA (1 << 4) |
#define | PCI_CTL_EAP (1 << 5) |
#define | PCI_CTL_PCIM_BIT 6 |
#define | PCI_CTL_PCIM 0x000001c0 |
#define | PCI_CTL_PCIM_DIS 0 |
#define | PCI_CTL_PCIM_TNR 1 /* Satellite - target not ready */ |
#define | PCI_CTL_PCIM_SUS 2 /* Satellite - suspended CPU. */ |
#define | PCI_CTL_PCIM_EXT 3 /* Host - external arbiter. */ |
#define | PCI_CTL PCIM_PRIO 4 /* Host - fixed priority arb. */ |
#define | PCI_CTL_PCIM_RR 5 /* Host - round robin priority. */ |
#define | PCI_CTL_PCIM_RSVD6 6 |
#define | PCI_CTL_PCIM_RSVD7 7 |
#define | PCI_CTL_IGM (1 << 9) |
#define | PCI_STAT_EED (1 << 0) |
#define | PCI_STAT_WR (1 << 1) |
#define | PCI_STAT_NMI (1 << 2) |
#define | PCI_STAT_II (1 << 3) |
#define | PCI_STAT_CWE (1 << 4) |
#define | PCI_STAT_CRE (1 << 5) |
#define | PCI_STAT_MDPE (1 << 6) |
#define | PCI_STAT_STA (1 << 7) |
#define | PCI_STAT_RTA (1 << 8) |
#define | PCI_STAT_RMA (1 << 9) |
#define | PCI_STAT_SSE (1 << 10) |
#define | PCI_STAT_OSE (1 << 11) |
#define | PCI_STAT_PE (1 << 12) |
#define | PCI_STAT_TAE (1 << 13) |
#define | PCI_STAT_RLE (1 << 14) |
#define | PCI_STAT_BME (1 << 15) |
#define | PCI_STAT_PRD (1 << 16) |
#define | PCI_STAT_RIP (1 << 17) |
#define | PCI_STATM_EED PCI_STAT_EED |
#define | PCI_STATM_WR PCI_STAT_WR |
#define | PCI_STATM_NMI PCI_STAT_NMI |
#define | PCI_STATM_II PCI_STAT_II |
#define | PCI_STATM_CWE PCI_STAT_CWE |
#define | PCI_STATM_CRE PCI_STAT_CRE |
#define | PCI_STATM_MDPE PCI_STAT_MDPE |
#define | PCI_STATM_STA PCI_STAT_STA |
#define | PCI_STATM_RTA PCI_STAT_RTA |
#define | PCI_STATM_RMA PCI_STAT_RMA |
#define | PCI_STATM_SSE PCI_STAT_SSE |
#define | PCI_STATM_OSE PCI_STAT_OSE |
#define | PCI_STATM_PE PCI_STAT_PE |
#define | PCI_STATM_TAE PCI_STAT_TAE |
#define | PCI_STATM_RLE PCI_STAT_RLE |
#define | PCI_STATM_BME PCI_STAT_BME |
#define | PCI_STATM_PRD PCI_STAT_PRD |
#define | PCI_STATM_RIP PCI_STAT_RIP |
#define | PCI_CFGA_REG_BIT 2 |
#define | PCI_CFGA_REG 0x000000fc |
#define | PCI_CFGA_REG_ID (0x00 >> 2) /* use PCFGID */ |
#define | PCI_CFGA_REG_04 (0x04 >> 2) /* use PCFG04_ */ |
#define | PCI_CFGA_REG_08 (0x08 >> 2) /* use PCFG08_ */ |
#define | PCI_CFGA_REG_0C (0x0C >> 2) /* use PCFG0C_ */ |
#define | PCI_CFGA_REG_PBA0 (0x10 >> 2) /* use PCIPBA_ */ |
#define | PCI_CFGA_REG_PBA1 (0x14 >> 2) /* use PCIPBA_ */ |
#define | PCI_CFGA_REG_PBA2 (0x18 >> 2) /* use PCIPBA_ */ |
#define | PCI_CFGA_REG_PBA3 (0x1c >> 2) /* use PCIPBA_ */ |
#define | PCI_CFGA_REG_SUBSYS (0x2c >> 2) /* use PCFGSS_ */ |
#define | PCI_CFGA_REG_3C (0x3C >> 2) /* use PCFG3C_ */ |
#define | PCI_CFGA_REG_PBBA0C (0x44 >> 2) /* use PCIPBAC_ */ |
#define | PCI_CFGA_REG_PBA0M (0x48 >> 2) |
#define | PCI_CFGA_REG_PBA1C (0x4c >> 2) /* use PCIPBAC_ */ |
#define | PCI_CFGA_REG_PBA1M (0x50 >> 2) |
#define | PCI_CFGA_REG_PBA2C (0x54 >> 2) /* use PCIPBAC_ */ |
#define | PCI_CFGA_REG_PBA2M (0x58 >> 2) |
#define | PCI_CFGA_REG_PBA3C (0x5c >> 2) /* use PCIPBAC_ */ |
#define | PCI_CFGA_REG_PBA3M (0x60 >> 2) |
#define | PCI_CFGA_REG_PMGT (0x64 >> 2) |
#define | PCI_CFGA_FUNC_BIT 8 |
#define | PCI_CFGA_FUNC 0x00000700 |
#define | PCI_CFGA_DEV_BIT 11 |
#define | PCI_CFGA_DEV 0x0000f800 |
#define | PCI_CFGA_DEV_INTERN 0 |
#define | PCI_CFGA_BUS_BIT 16 |
#define | PCI CFGA_BUS 0x00ff0000 |
#define | PCI_CFGA_BUS_TYPE0 0 |
#define | PCI_CFGA_EN (1 << 31) |
#define | PCI_CFG04_CMD_IO_ENA (1 << 0) |
#define | PCI_CFG04_CMD_MEM_ENA (1 << 1) |
#define | PCI_CFG04_CMD_BM_ENA (1 << 2) |
#define | PCI_CFG04_CMD_MW_INV (1 << 4) |
#define | PCI_CFG04_CMD_PAR_ENA (1 << 6) |
#define | PCI_CFG04_CMD_SER_ENA (1 << 8) |
#define | PCI_CFG04_CMD_FAST_ENA (1 << 9) |
#define | PCI_CFG04_STAT_BIT 16 |
#define | PCI_CFG04_STAT 0xffff0000 |
#define | PCI_CFG04_STAT_66_MHZ (1 << 21) |
#define | PCI_CFG04_STAT_FBB (1 << 23) |
#define | PCI_CFG04_STAT_MDPE (1 << 24) |
#define | PCI_CFG04_STAT_DST (1 << 25) |
#define | PCI_CFG04_STAT_STA (1 << 27) |
#define | PCI_CFG04_STAT_RTA (1 << 28) |
#define | PCI_CFG04_STAT_RMA (1 << 29) |
#define | PCI_CFG04_STAT_SSE (1 << 30) |
#define | PCI_CFG04_STAT_PE (1 << 31) |
#define | PCI_PBA_MSI (1 << 0) |
#define | PCI_PBA_P (1 << 2) |
#define | PCI_PBAC_MSI (1 << 0) |
#define | PCI_PBAC_P (1 << 1) |
#define | PCI_PBAC_SIZE_BIT 2 |
#define | PCI_PBAC_SIZE 0x0000007c |
#define | PCI_PBAC_SB (1 << 7) |
#define | PCI_PBAC_PP (1 << 8) |
#define | PCI_PBAC_MR_BIT 9 |
#define | PCI_PBAC_MR 0x00000600 |
#define | PCI_PBAC_MR_RD 0 |
#define | PCI_PBAC_MR_RD_LINE 1 |
#define | PCI_PBAC_MR_RD_MULT 2 |
#define | PCI_PBAC_MRL (1 << 11) |
#define | PCI_PBAC_MRM (1 << 12) |
#define | PCI_PBAC_TRP (1 << 13) |
#define | PCI_CFG40_TRDY_TIM 0x000000ff |
#define | PCI_CFG40_RET_LIM 0x0000ff00 |
#define | PCI_LBA_BADDR_BIT 0 |
#define | PCI_LBA_BADDR 0xffffff00 |
#define | PCI_LBAC_MSI (1 << 0) |
#define | PCI_LBAC_MSI_MEM 0 |
#define | PCI_LBAC_MSI_IO 1 |
#define | PCI_LBAC_SIZE_BIT 2 |
#define | PCI_LBAC_SIZE 0x0000007c |
#define | PCI_LBAC_SB (1 << 7) |
#define | PCI_LBAC_RT (1 << 8) |
#define | PCI_LBAC_RT_NO_PREF 0 |
#define | PCI_LBAC_RT_PREF 1 |
#define | PCI_LBAM_MADDR_BIT 8 |
#define | PCI_LBAM_MADDR 0xffffff00 |
#define | PCI_DAC_DEN (1 << 0) |
#define | PCI_DAS_D (1 << 0) |
#define | PCI_DAS_B (1 << 1) |
#define | PCI_DAS_E (1 << 2) |
#define | PCI_DAS_OFE (1 << 3) |
#define | PCI_DAS_OFF (1 << 4) |
#define | PCI_DAS_IFE (1 << 5) |
#define | PCI_DAS_IFF (1 << 6) |
#define | PCI_DMA8C_MBS_BIT 0 |
#define | PCI_DMA8C_MBS 0x00000fff /* Maximum Burst Size. */ |
#define | PCI_DMA8C_OUR (1 << 12) |
#define | PCI_DMA9C_MBS_BIT 0 /* Maximum Burst Size. */ |
#define | PCI_DMA9C_MBS 0x00000fff |
#define | PCI_DMAD_PT_BIT 22 /* in DEVCMD field (descriptor) */ |
#define | PCI_DMAD_PT 0x00c00000 /* preferred transaction field */ |
#define | PCI_DMAD_DEVCMD_MR 0 /* memory read */ |
#define | PCI_DMAD_DEVCMD_MRL 1 /* memory read line */ |
#define | PCI_DMAD_DEVCMD_MRM 2 /* memory read multiple */ |
#define | PCI_DMAD_DEVCMD_IOR 3 /* I/O read */ |
#define | PCI_DMAD_DEVCMD_MW 0 /* memory write */ |
#define | PCI_DMAD_DEVCMD_MWI 1 /* memory write invalidate */ |
#define | PCI_DMAD_DEVCMD_IOW 3 /* I/O write */ |
#define | PCI_DMAD_SB (1 << 24) /* swap byte field */ |
#define | PCI_TC_RTIMER_BIT 0 |
#define | PCI_TC_RTIMER 0x000000ff |
#define | PCI_TC_DTIMER_BIT 8 |
#define | PCI_TC_DTIMER 0x0000ff00 |
#define | PCI_TC_RDR (1 << 18) |
#define | PCI_TC_DDT (1 << 19) |
#define | PCI_MSU_M0 (1 << 0) |
#define | PCI_MSU_M1 (1 << 1) |
#define | PCI_MSU_DB (1 << 2) |
#define | PCI_MSG_ADDR 0xB8088010 |
#define | PCI0_ADDR 0xB8080000 |
#define | rc32434_pci ((struct pci_reg *) PCI0_ADDR) |
#define | rc32434_pci_msg ((struct pci_msu *) PCI_MSG_ADDR) |
#define | PCIM_SHFT 0x6 |
#define | PCIM_BIT_LEN 0x7 |
#define | PCIM_H_EA 0x3 |
#define | PCIM_H_IA_FIX 0x4 |
#define | PCIM_H_IA_RR 0x5 |
#define | PCI_ADDR_START 0x50000000 |
#define | CPUTOPCI_MEM_WIN 0x02000000 |
#define | CPUTOPCI_IO_WIN 0x00100000 |
#define | PCILBA_SIZE_SHFT 2 |
#define | PCILBA_SIZE_MASK 0x1F |
#define | SIZE_256MB 0x1C |
#define | SIZE_128MB 0x1B |
#define | SIZE_64MB 0x1A |
#define | SIZE_32MB 0x19 |
#define | SIZE_16MB 0x18 |
#define | SIZE_4MB 0x16 |
#define | SIZE_2MB 0x15 |
#define | SIZE_1MB 0x14 |
#define | KORINA_CONFIG0_ADDR 0x80000000 |
#define | KORINA_CONFIG1_ADDR 0x80000004 |
#define | KORINA_CONFIG2_ADDR 0x80000008 |
#define | KORINA_CONFIG3_ADDR 0x8000000C |
#define | KORINA_CONFIG4_ADDR 0x80000010 |
#define | KORINA_CONFIG5_ADDR 0x80000014 |
#define | KORINA_CONFIG6_ADDR 0x80000018 |
#define | KORINA_CONFIG7_ADDR 0x8000001C |
#define | KORINA_CONFIG8_ADDR 0x80000020 |
#define | KORINA_CONFIG9_ADDR 0x80000024 |
#define | KORINA_CONFIG10_ADDR 0x80000028 |
#define | KORINA_CONFIG11_ADDR 0x8000002C |
#define | KORINA_CONFIG12_ADDR 0x80000030 |
#define | KORINA_CONFIG13_ADDR 0x80000034 |
#define | KORINA_CONFIG14_ADDR 0x80000038 |
#define | KORINA_CONFIG15_ADDR 0x8000003C |
#define | KORINA_CONFIG16_ADDR 0x80000040 |
#define | KORINA_CONFIG17_ADDR 0x80000044 |
#define | KORINA_CONFIG18_ADDR 0x80000048 |
#define | KORINA_CONFIG19_ADDR 0x8000004C |
#define | KORINA_CONFIG20_ADDR 0x80000050 |
#define | KORINA_CONFIG21_ADDR 0x80000054 |
#define | KORINA_CONFIG22_ADDR 0x80000058 |
#define | KORINA_CONFIG23_ADDR 0x8000005C |
#define | KORINA_CONFIG24_ADDR 0x80000060 |
#define | KORINA_CONFIG25_ADDR 0x80000064 |
#define | KORINA_CMD |
#define | KORINA_STAT |
#define | KORINA_CNFG1 ((KORINA_STAT<<16)|KORINA_CMD) |
#define | KORINA_REVID 0 |
#define | KORINA_CLASS_CODE 0 |
#define | KORINA_CNFG2 |
#define | KORINA_CACHE_LINE_SIZE 4 |
#define | KORINA_MASTER_LAT 0x3c |
#define | KORINA_HEADER_TYPE 0 |
#define | KORINA_BIST 0 |
#define | KORINA_CNFG3 |
#define | KORINA_BAR0 0x00000008 /* 128 MB Memory */ |
#define | KORINA_BAR1 0x18800001 /* 1 MB IO */ |
#define | KORINA_BAR2 |
#define | KORINA_BAR3 0x48000008 /* Spare 128 MB Memory */ |
#define | KORINA_CNFG4 KORINA_BAR0 |
#define | KORINA_CNFG5 KORINA_BAR1 |
#define | KORINA_CNFG6 KORINA_BAR2 |
#define | KORINA_CNFG7 KORINA_BAR3 |
#define | KORINA_SUBSYS_VENDOR_ID 0x011d |
#define | KORINA_SUBSYSTEM_ID 0x0214 |
#define | KORINA_CNFG8 0 |
#define | KORINA_CNFG9 0 |
#define | KORINA_CNFG10 0 |
#define | KORINA_CNFG11 |
#define | KORINA_INT_LINE 1 |
#define | KORINA_INT_PIN 1 |
#define | KORINA_MIN_GNT 8 |
#define | KORINA_MAX_LAT 0x38 |
#define | KORINA_CNFG12 0 |
#define | KORINA_CNFG13 0 |
#define | KORINA_CNFG14 0 |
#define | KORINA_CNFG15 |
#define | KORINA_RETRY_LIMIT 0x80 |
#define | KORINA_TRDY_LIMIT 0x80 |
#define | KORINA_CNFG16 |
#define | PCI_PBAxC_R 0x0 |
#define | PCI_PBAxC_RL 0x1 |
#define | PCI_PBAxC_RM 0x2 |
#define | SIZE_SHFT 2 |
#define | KORINA_PBA0C |
#define | KORINA_CNFG17 KORINA_PBA0C |
#define | KORINA_PBA0M 0x0 |
#define | KORINA_CNFG18 KORINA_PBA0M |
#define | KORINA_PBA1C |
#define | KORINA_CNFG19 KORINA_PBA1C |
#define | KORINA_PBA1M 0x0 |
#define | KORINA_CNFG20 KORINA_PBA1M |
#define | KORINA_PBA2C |
#define | KORINA_CNFG21 KORINA_PBA2C |
#define | KORINA_PBA2M 0x18000000 |
#define | KORINA_CNFG22 KORINA_PBA2M |
#define | KORINA_PBA3C 0 |
#define | KORINA_CNFG23 KORINA_PBA3C |
#define | KORINA_PBA3M 0 |
#define | KORINA_CNFG24 KORINA_PBA3M |
#define | PCITC_DTIMER_VAL 8 |
#define | PCITC_RTIMER_VAL 0x10 |
#define KORINA_BAR2 |
#define KORINA_CMD |
#define KORINA_CNFG1 ((KORINA_STAT<<16)|KORINA_CMD) |
#define KORINA_CNFG11 |
#define KORINA_CNFG15 |
#define KORINA_CNFG16 |
#define KORINA_CNFG17 KORINA_PBA0C |
#define KORINA_CNFG18 KORINA_PBA0M |
#define KORINA_CNFG19 KORINA_PBA1C |
#define KORINA_CNFG2 |
#define KORINA_CNFG20 KORINA_PBA1M |
#define KORINA_CNFG21 KORINA_PBA2C |
#define KORINA_CNFG22 KORINA_PBA2M |
#define KORINA_CNFG23 KORINA_PBA3C |
#define KORINA_CNFG24 KORINA_PBA3M |
#define KORINA_CNFG3 |
#define KORINA_CNFG4 KORINA_BAR0 |
#define KORINA_CNFG5 KORINA_BAR1 |
#define KORINA_CNFG6 KORINA_BAR2 |
#define KORINA_CNFG7 KORINA_BAR3 |
#define KORINA_PBA0C |
#define KORINA_PBA1C |
#define KORINA_PBA2C |
#define KORINA_STAT |
#define PCI_DMAD_PT 0x00c00000 /* preferred transaction field */ |
#define PCI_DMAD_PT_BIT 22 /* in DEVCMD field (descriptor) */ |
#define PCI_STATM_BME PCI_STAT_BME |
#define PCI_STATM_CRE PCI_STAT_CRE |
#define PCI_STATM_CWE PCI_STAT_CWE |
#define PCI_STATM_EED PCI_STAT_EED |
#define PCI_STATM_II PCI_STAT_II |
#define PCI_STATM_MDPE PCI_STAT_MDPE |
#define PCI_STATM_NMI PCI_STAT_NMI |
#define PCI_STATM_OSE PCI_STAT_OSE |
#define PCI_STATM_PE PCI_STAT_PE |
#define PCI_STATM_PRD PCI_STAT_PRD |
#define PCI_STATM_RIP PCI_STAT_RIP |
#define PCI_STATM_RLE PCI_STAT_RLE |
#define PCI_STATM_RMA PCI_STAT_RMA |
#define PCI_STATM_RTA PCI_STAT_RTA |
#define PCI_STATM_SSE PCI_STAT_SSE |
#define PCI_STATM_STA PCI_STAT_STA |
#define PCI_STATM_TAE PCI_STAT_TAE |
#define PCI_STATM_WR PCI_STAT_WR |
#define rc32434_pci_msg ((struct pci_msu *) PCI_MSG_ADDR) |