Go to the documentation of this file.
12 #include <linux/types.h>
14 #include <linux/pci.h>
32 #ifdef CONFIG_PCIC_PCI
39 static inline int pcic_probe(
void) {
return 0; }
46 #define PCI_SPACE_SIZE 0x1000000
49 #define PCI_DIAGNOSTIC_0 0x40
50 #define PCI_SIZE_0 0x44
51 #define PCI_SIZE_1 0x48
52 #define PCI_SIZE_2 0x4c
53 #define PCI_SIZE_3 0x50
54 #define PCI_SIZE_4 0x54
55 #define PCI_SIZE_5 0x58
56 #define PCI_PIO_CONTROL 0x60
57 #define PCI_DVMA_CONTROL 0x62
58 #define PCI_DVMA_CONTROL_INACTIVITY_REQ (1<<0)
59 #define PCI_DVMA_CONTROL_IOTLB_ENABLE (1<<0)
60 #define PCI_DVMA_CONTROL_IOTLB_DISABLE 0
61 #define PCI_DVMA_CONTROL_INACTIVITY_ACK (1<<4)
62 #define PCI_INTERRUPT_CONTROL 0x63
63 #define PCI_CPU_INTERRUPT_PENDING 0x64
64 #define PCI_DIAGNOSTIC_1 0x68
65 #define PCI_SOFTWARE_INT_CLEAR 0x6a
66 #define PCI_SOFTWARE_INT_SET 0x6e
67 #define PCI_SYS_INT_PENDING 0x70
68 #define PCI_SYS_INT_PENDING_PIO 0x40000000
69 #define PCI_SYS_INT_PENDING_DMA 0x20000000
70 #define PCI_SYS_INT_PENDING_PCI 0x10000000
71 #define PCI_SYS_INT_PENDING_APSR 0x08000000
72 #define PCI_SYS_INT_TARGET_MASK 0x74
73 #define PCI_SYS_INT_TARGET_MASK_CLEAR 0x78
74 #define PCI_SYS_INT_TARGET_MASK_SET 0x7c
75 #define PCI_SYS_INT_PENDING_CLEAR 0x83
76 #define PCI_SYS_INT_PENDING_CLEAR_ALL 0x80
77 #define PCI_SYS_INT_PENDING_CLEAR_PIO 0x40
78 #define PCI_SYS_INT_PENDING_CLEAR_DMA 0x20
79 #define PCI_SYS_INT_PENDING_CLEAR_PCI 0x10
80 #define PCI_IOTLB_CONTROL 0x84
81 #define PCI_INT_SELECT_LO 0x88
82 #define PCI_ARBITRATION_SELECT 0x8a
83 #define PCI_INT_SELECT_HI 0x8c
84 #define PCI_HW_INT_OUTPUT 0x8e
85 #define PCI_IOTLB_RAM_INPUT 0x90
86 #define PCI_IOTLB_CAM_INPUT 0x94
87 #define PCI_IOTLB_RAM_OUTPUT 0x98
88 #define PCI_IOTLB_CAM_OUTPUT 0x9c
89 #define PCI_SMBAR0 0xa0
90 #define PCI_MSIZE0 0xa1
91 #define PCI_PMBAR0 0xa2
92 #define PCI_SMBAR1 0xa4
93 #define PCI_MSIZE1 0xa5
94 #define PCI_PMBAR1 0xa6
95 #define PCI_SIBAR 0xa8
96 #define PCI_SIBAR_ADDRESS_MASK 0xf
97 #define PCI_ISIZE 0xa9
98 #define PCI_ISIZE_16M 0xf
99 #define PCI_ISIZE_32M 0xe
100 #define PCI_ISIZE_64M 0xc
101 #define PCI_ISIZE_128M 0x8
102 #define PCI_ISIZE_256M 0x0
103 #define PCI_PIBAR 0xaa
104 #define PCI_CPU_COUNTER_LIMIT_HI 0xac
105 #define PCI_CPU_COUNTER_LIMIT_LO 0xb0
106 #define PCI_CPU_COUNTER_LIMIT 0xb4
107 #define PCI_SYS_LIMIT 0xb8
108 #define PCI_SYS_COUNTER 0xbc
109 #define PCI_SYS_COUNTER_OVERFLOW (1<<31)
110 #define PCI_SYS_LIMIT_PSEUDO 0xc0
111 #define PCI_USER_TIMER_CONTROL 0xc4
112 #define PCI_USER_TIMER_CONFIG 0xc5
113 #define PCI_COUNTER_IRQ 0xc6
114 #define PCI_COUNTER_IRQ_SET(sys_irq, cpu_irq) ((((sys_irq) & 0xf) << 4) | \
116 #define PCI_COUNTER_IRQ_SYS(v) (((v) >> 4) & 0xf)
117 #define PCI_COUNTER_IRQ_CPU(v) ((v) & 0xf)
118 #define PCI_PIO_ERROR_COMMAND 0xc7
119 #define PCI_PIO_ERROR_ADDRESS 0xc8
120 #define PCI_IOTLB_ERROR_ADDRESS 0xcc
121 #define PCI_SYS_STATUS 0xd0
122 #define PCI_SYS_STATUS_RESET_ENABLE (1<<0)
123 #define PCI_SYS_STATUS_RESET (1<<1)
124 #define PCI_SYS_STATUS_WATCHDOG_RESET (1<<4)
125 #define PCI_SYS_STATUS_PCI_RESET (1<<5)
126 #define PCI_SYS_STATUS_PCI_RESET_ENABLE (1<<6)
127 #define PCI_SYS_STATUS_PCI_SATTELITE_MODE (1<<7)