Go to the documentation of this file.
32 #ifndef __CVMX_ADDRESS_H__
33 #define __CVMX_ADDRESS_H__
210 #define CVMX_MIPS32_SPACE_KSEG0 1l
211 #define CVMX_ADD_SEG32(segment, add) \
212 (((int32_t)segment << 31) | (int32_t)(add))
221 #define CVMX_IO_SEG CVMX_MIPS_SPACE_XKPHYS
224 #define CVMX_ADD_SEG(segment, add) ((((uint64_t)segment) << 62) | (add))
225 #ifndef CVMX_ADD_IO_SEG
226 #define CVMX_ADD_IO_SEG(add) CVMX_ADD_SEG(CVMX_IO_SEG, (add))
228 #define CVMX_ADDR_DIDSPACE(did) (((CVMX_IO_SEG) << 22) | ((1ULL) << 8) | (did))
229 #define CVMX_ADDR_DID(did) (CVMX_ADDR_DIDSPACE(did) << 40)
230 #define CVMX_FULL_DID(did, subdid) (((did) << 3) | (subdid))
233 #define CVMX_OCT_DID_MIS 0ULL
234 #define CVMX_OCT_DID_GMX0 1ULL
235 #define CVMX_OCT_DID_GMX1 2ULL
236 #define CVMX_OCT_DID_PCI 3ULL
237 #define CVMX_OCT_DID_KEY 4ULL
238 #define CVMX_OCT_DID_FPA 5ULL
239 #define CVMX_OCT_DID_DFA 6ULL
240 #define CVMX_OCT_DID_ZIP 7ULL
241 #define CVMX_OCT_DID_RNG 8ULL
242 #define CVMX_OCT_DID_IPD 9ULL
243 #define CVMX_OCT_DID_PKT 10ULL
244 #define CVMX_OCT_DID_TIM 11ULL
245 #define CVMX_OCT_DID_TAG 12ULL
247 #define CVMX_OCT_DID_L2C 16ULL
248 #define CVMX_OCT_DID_LMC 17ULL
249 #define CVMX_OCT_DID_SPX0 18ULL
250 #define CVMX_OCT_DID_SPX1 19ULL
251 #define CVMX_OCT_DID_PIP 20ULL
252 #define CVMX_OCT_DID_ASX0 22ULL
253 #define CVMX_OCT_DID_ASX1 23ULL
254 #define CVMX_OCT_DID_IOB 30ULL
256 #define CVMX_OCT_DID_PKT_SEND CVMX_FULL_DID(CVMX_OCT_DID_PKT, 2ULL)
257 #define CVMX_OCT_DID_TAG_SWTAG CVMX_FULL_DID(CVMX_OCT_DID_TAG, 0ULL)
258 #define CVMX_OCT_DID_TAG_TAG1 CVMX_FULL_DID(CVMX_OCT_DID_TAG, 1ULL)
259 #define CVMX_OCT_DID_TAG_TAG2 CVMX_FULL_DID(CVMX_OCT_DID_TAG, 2ULL)
260 #define CVMX_OCT_DID_TAG_TAG3 CVMX_FULL_DID(CVMX_OCT_DID_TAG, 3ULL)
261 #define CVMX_OCT_DID_TAG_NULL_RD CVMX_FULL_DID(CVMX_OCT_DID_TAG, 4ULL)
262 #define CVMX_OCT_DID_TAG_CSR CVMX_FULL_DID(CVMX_OCT_DID_TAG, 7ULL)
263 #define CVMX_OCT_DID_FAU_FAI CVMX_FULL_DID(CVMX_OCT_DID_IOB, 0ULL)
264 #define CVMX_OCT_DID_TIM_CSR CVMX_FULL_DID(CVMX_OCT_DID_TIM, 0ULL)
265 #define CVMX_OCT_DID_KEY_RW CVMX_FULL_DID(CVMX_OCT_DID_KEY, 0ULL)
266 #define CVMX_OCT_DID_PCI_6 CVMX_FULL_DID(CVMX_OCT_DID_PCI, 6ULL)
267 #define CVMX_OCT_DID_MIS_BOO CVMX_FULL_DID(CVMX_OCT_DID_MIS, 0ULL)
268 #define CVMX_OCT_DID_PCI_RML CVMX_FULL_DID(CVMX_OCT_DID_PCI, 0ULL)
269 #define CVMX_OCT_DID_IPD_CSR CVMX_FULL_DID(CVMX_OCT_DID_IPD, 7ULL)
270 #define CVMX_OCT_DID_DFA_CSR CVMX_FULL_DID(CVMX_OCT_DID_DFA, 7ULL)
271 #define CVMX_OCT_DID_MIS_CSR CVMX_FULL_DID(CVMX_OCT_DID_MIS, 7ULL)
272 #define CVMX_OCT_DID_ZIP_CSR CVMX_FULL_DID(CVMX_OCT_DID_ZIP, 0ULL)