cvmx-l2d-defs.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /***********************license start***************
  2. * Author: Cavium Networks
  3. *
  4. * Contact: [email protected]
  5. * This file is part of the OCTEON SDK
  6. *
  7. * Copyright (c) 2003-2017 Cavium, Inc.
  8. *
  9. * This file is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License, Version 2, as
  11. * published by the Free Software Foundation.
  12. *
  13. * This file is distributed in the hope that it will be useful, but
  14. * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
  15. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
  16. * NONINFRINGEMENT. See the GNU General Public License for more
  17. * details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this file; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  22. * or visit http://www.gnu.org/licenses/.
  23. *
  24. * This file may also be available under a different license from Cavium.
  25. * Contact Cavium Networks for more information
  26. ***********************license end**************************************/
  27. #ifndef __CVMX_L2D_DEFS_H__
  28. #define __CVMX_L2D_DEFS_H__
  29. #define CVMX_L2D_ERR (CVMX_ADD_IO_SEG(0x0001180080000010ull))
  30. #define CVMX_L2D_FUS3 (CVMX_ADD_IO_SEG(0x00011800800007B8ull))
  31. union cvmx_l2d_err {
  32. uint64_t u64;
  33. struct cvmx_l2d_err_s {
  34. __BITFIELD_FIELD(uint64_t reserved_6_63:58,
  35. __BITFIELD_FIELD(uint64_t bmhclsel:1,
  36. __BITFIELD_FIELD(uint64_t ded_err:1,
  37. __BITFIELD_FIELD(uint64_t sec_err:1,
  38. __BITFIELD_FIELD(uint64_t ded_intena:1,
  39. __BITFIELD_FIELD(uint64_t sec_intena:1,
  40. __BITFIELD_FIELD(uint64_t ecc_ena:1,
  41. ;)))))))
  42. } s;
  43. };
  44. union cvmx_l2d_fus3 {
  45. uint64_t u64;
  46. struct cvmx_l2d_fus3_s {
  47. __BITFIELD_FIELD(uint64_t reserved_40_63:24,
  48. __BITFIELD_FIELD(uint64_t ema_ctl:3,
  49. __BITFIELD_FIELD(uint64_t reserved_34_36:3,
  50. __BITFIELD_FIELD(uint64_t q3fus:34,
  51. ;))))
  52. } s;
  53. };
  54. #endif