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 /** 11 * @file 12 * 13 * Configuration and status register (CSR) address and type definitions for 14 * LMT. 15 * 16 * This file is auto generated. Do not edit. 17 * 18 */ 19 20 /** 21 * Register (RVU_PFVF_BAR2) lmt_lf_lmtcancel 22 * 23 * RVU VF LMT Cancel Register 24 */ 25 union lmt_lf_lmtcancel { 26 u64 u; 27 struct lmt_lf_lmtcancel_s { 28 u64 data : 64; 29 } s; 30 /* struct lmt_lf_lmtcancel_s cn; */ 31 }; 32 33 static inline u64 LMT_LF_LMTCANCEL(void) 34 __attribute__ ((pure, always_inline)); LMT_LF_LMTCANCEL(void)35static inline u64 LMT_LF_LMTCANCEL(void) 36 { 37 return 0x400; 38 } 39 40 /** 41 * Register (RVU_PFVF_BAR2) lmt_lf_lmtline# 42 * 43 * RVU VF LMT Line Registers 44 */ 45 union lmt_lf_lmtlinex { 46 u64 u; 47 struct lmt_lf_lmtlinex_s { 48 u64 data : 64; 49 } s; 50 /* struct lmt_lf_lmtlinex_s cn; */ 51 }; 52 53 static inline u64 LMT_LF_LMTLINEX(u64 a) 54 __attribute__ ((pure, always_inline)); LMT_LF_LMTLINEX(u64 a)55static inline u64 LMT_LF_LMTLINEX(u64 a) 56 { 57 return 0 + 8 * a; 58 } 59 60 #endif /* __CSRS_LMT_H__ */ 61