csrs-lmt.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * Copyright (C) 2020 Marvell International Ltd.
  4. *
  5. * https://spdx.org/licenses
  6. */
  7. #ifndef __CSRS_LMT_H__
  8. #define __CSRS_LMT_H__
  9. /**
  10. * @file
  11. *
  12. * Configuration and status register (CSR) address and type definitions for
  13. * LMT.
  14. *
  15. * This file is auto generated. Do not edit.
  16. *
  17. */
  18. /**
  19. * Register (RVU_PFVF_BAR2) lmt_lf_lmtcancel
  20. *
  21. * RVU VF LMT Cancel Register
  22. */
  23. union lmt_lf_lmtcancel {
  24. u64 u;
  25. struct lmt_lf_lmtcancel_s {
  26. u64 data : 64;
  27. } s;
  28. /* struct lmt_lf_lmtcancel_s cn; */
  29. };
  30. static inline u64 LMT_LF_LMTCANCEL(void)
  31. __attribute__ ((pure, always_inline));
  32. static inline u64 LMT_LF_LMTCANCEL(void)
  33. {
  34. return 0x400;
  35. }
  36. /**
  37. * Register (RVU_PFVF_BAR2) lmt_lf_lmtline#
  38. *
  39. * RVU VF LMT Line Registers
  40. */
  41. union lmt_lf_lmtlinex {
  42. u64 u;
  43. struct lmt_lf_lmtlinex_s {
  44. u64 data : 64;
  45. } s;
  46. /* struct lmt_lf_lmtlinex_s cn; */
  47. };
  48. static inline u64 LMT_LF_LMTLINEX(u64 a)
  49. __attribute__ ((pure, always_inline));
  50. static inline u64 LMT_LF_LMTLINEX(u64 a)
  51. {
  52. return 0 + 8 * a;
  53. }
  54. #endif /* __CSRS_LMT_H__ */