summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-octeontx2/csrs/csrs-lmt.h
blob: 625470b2de7042d1f53d4f09ae393b70c89f71d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* SPDX-License-Identifier:    GPL-2.0
 *
 * Copyright (C) 2020 Marvell International Ltd.
 *
 * https://spdx.org/licenses
 */
#ifndef __CSRS_LMT_H__
#define __CSRS_LMT_H__

/**
 * @file
 *
 * Configuration and status register (CSR) address and type definitions for
 * LMT.
 *
 * This file is auto generated.  Do not edit.
 *
 */

/**
 * Register (RVU_PFVF_BAR2) lmt_lf_lmtcancel
 *
 * RVU VF LMT Cancel Register
 */
union lmt_lf_lmtcancel {
	u64 u;
	struct lmt_lf_lmtcancel_s {
		u64 data                             : 64;
	} s;
	/* struct lmt_lf_lmtcancel_s cn; */
};

static inline u64 LMT_LF_LMTCANCEL(void)
	__attribute__ ((pure, always_inline));
static inline u64 LMT_LF_LMTCANCEL(void)
{
	return 0x400;
}

/**
 * Register (RVU_PFVF_BAR2) lmt_lf_lmtline#
 *
 * RVU VF LMT Line Registers
 */
union lmt_lf_lmtlinex {
	u64 u;
	struct lmt_lf_lmtlinex_s {
		u64 data                             : 64;
	} s;
	/* struct lmt_lf_lmtlinex_s cn; */
};

static inline u64 LMT_LF_LMTLINEX(u64 a)
	__attribute__ ((pure, always_inline));
static inline u64 LMT_LF_LMTLINEX(u64 a)
{
	return 0 + 8 * a;
}

#endif /* __CSRS_LMT_H__ */