swrm_port_config.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2018 The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _SWRM_PORT_CONFIG
  6. #define _SWRM_PORT_CONFIG
  7. #define WSA_MSTR_PORT_MASK 0xFF
  8. /*
  9. * Add port configuration in the format
  10. *{ si, off1, off2, hstart, hstop, wd_len, bp_mode, bgp_ctrl, lane_ctrl}
  11. */
  12. struct port_params wsa_frame_superset[SWR_MSTR_PORT_LEN] = {
  13. {7, 1, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
  14. {31, 2, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
  15. {63, 12, 31, 0xFF, 0xFF, 0xFF, 0x1, 0xFF, 0xFF},
  16. {7, 6, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
  17. {31, 18, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
  18. {63, 13, 31, 0xFF, 0xFF, 0xFF, 0x1, 0xFF, 0xFF},
  19. {15, 7, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
  20. {15, 10, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
  21. };
  22. struct port_params rx_frame_params[SWR_MSTR_PORT_LEN] = {
  23. {3, 0, 0, 0xFF, 0xFF, 1, 0xFF, 0xFF, 1},
  24. {63, 0, 0, 3, 6, 7, 0, 0xFF, 0},
  25. {31, 11, 11, 0xFF, 0xFF, 4, 1, 0xFF, 0},
  26. {3, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF, 1, 0},
  27. {0, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0, 0},
  28. };
  29. struct port_params rx_frame_params_dsd[SWR_MSTR_PORT_LEN] = {
  30. {3, 0, 0, 0xFF, 0xFF, 1, 0xFF, 0xFF, 1},
  31. {63, 0, 0, 3, 6, 7, 0, 0xFF, 0},
  32. {31, 11, 11, 0xFF, 0xFF, 4, 1, 0xFF, 0},
  33. {7, 9, 0, 0xFF, 0xFF, 0xFF, 0xFF, 1, 0},
  34. {3, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF, 3, 0},
  35. };
  36. struct port_params tx_frame_params_superset[SWR_MSTR_PORT_LEN] = {
  37. {1, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0},
  38. {1, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 1},
  39. {3, 1, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0},
  40. {3, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 1},
  41. };
  42. #endif /* _SWRM_REGISTERS_H */