scan.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef BCMA_SCAN_H_
  3. #define BCMA_SCAN_H_
  4. #define BCMA_ADDR_BASE 0x18000000
  5. #define BCMA_WRAP_BASE 0x18100000
  6. #define SCAN_ER_VALID 0x00000001
  7. #define SCAN_ER_TAGX 0x00000006 /* we have to ignore 0x8 bit when checking tag for SCAN_ER_TAG_ADDR */
  8. #define SCAN_ER_TAG 0x0000000E
  9. #define SCAN_ER_TAG_CI 0x00000000
  10. #define SCAN_ER_TAG_MP 0x00000002
  11. #define SCAN_ER_TAG_ADDR 0x00000004
  12. #define SCAN_ER_TAG_END 0x0000000E
  13. #define SCAN_ER_BAD 0xFFFFFFFF
  14. #define SCAN_CIA_CLASS 0x000000F0
  15. #define SCAN_CIA_CLASS_SHIFT 4
  16. #define SCAN_CIA_ID 0x000FFF00
  17. #define SCAN_CIA_ID_SHIFT 8
  18. #define SCAN_CIA_MANUF 0xFFF00000
  19. #define SCAN_CIA_MANUF_SHIFT 20
  20. #define SCAN_CIB_NMP 0x000001F0
  21. #define SCAN_CIB_NMP_SHIFT 4
  22. #define SCAN_CIB_NSP 0x00003E00
  23. #define SCAN_CIB_NSP_SHIFT 9
  24. #define SCAN_CIB_NMW 0x0007C000
  25. #define SCAN_CIB_NMW_SHIFT 14
  26. #define SCAN_CIB_NSW 0x00F80000
  27. #define SCAN_CIB_NSW_SHIFT 19
  28. #define SCAN_CIB_REV 0xFF000000
  29. #define SCAN_CIB_REV_SHIFT 24
  30. #define SCAN_ADDR_AG32 0x00000008
  31. #define SCAN_ADDR_SZ 0x00000030
  32. #define SCAN_ADDR_SZ_SHIFT 4
  33. #define SCAN_ADDR_SZ_4K 0x00000000
  34. #define SCAN_ADDR_SZ_8K 0x00000010
  35. #define SCAN_ADDR_SZ_16K 0x00000020
  36. #define SCAN_ADDR_SZ_SZD 0x00000030
  37. #define SCAN_ADDR_TYPE 0x000000C0
  38. #define SCAN_ADDR_TYPE_SLAVE 0x00000000
  39. #define SCAN_ADDR_TYPE_BRIDGE 0x00000040
  40. #define SCAN_ADDR_TYPE_SWRAP 0x00000080
  41. #define SCAN_ADDR_TYPE_MWRAP 0x000000C0
  42. #define SCAN_ADDR_PORT 0x00000F00
  43. #define SCAN_ADDR_PORT_SHIFT 8
  44. #define SCAN_ADDR_ADDR 0xFFFFF000
  45. #define SCAN_ADDR_SZ_BASE 0x00001000 /* 4KB */
  46. #define SCAN_SIZE_SZ_ALIGN 0x00000FFF
  47. #define SCAN_SIZE_SZ 0xFFFFF000
  48. #define SCAN_SIZE_SG32 0x00000008
  49. #endif /* BCMA_SCAN_H_ */