| 1 | #ifndef __BDK_CSRS_LMT_H__ |
| 2 | #define __BDK_CSRS_LMT_H__ |
| 3 | /* This file is auto-generated. Do not edit */ |
| 4 | |
| 5 | /***********************license start*************** |
| 6 | * Copyright (c) 2003-2017 Cavium Inc. ([email protected]). All rights |
| 7 | * reserved. |
| 8 | * |
| 9 | * |
| 10 | * Redistribution and use in source and binary forms, with or without |
| 11 | * modification, are permitted provided that the following conditions are |
| 12 | * met: |
| 13 | * |
| 14 | * * Redistributions of source code must retain the above copyright |
| 15 | * notice, this list of conditions and the following disclaimer. |
| 16 | * |
| 17 | * * Redistributions in binary form must reproduce the above |
| 18 | * copyright notice, this list of conditions and the following |
| 19 | * disclaimer in the documentation and/or other materials provided |
| 20 | * with the distribution. |
| 21 | |
| 22 | * * Neither the name of Cavium Inc. nor the names of |
| 23 | * its contributors may be used to endorse or promote products |
| 24 | * derived from this software without specific prior written |
| 25 | * permission. |
| 26 | |
| 27 | * This Software, including technical data, may be subject to U.S. export control |
| 28 | * laws, including the U.S. Export Administration Act and its associated |
| 29 | * regulations, and may be subject to export or import regulations in other |
| 30 | * countries. |
| 31 | |
| 32 | * TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
| 33 | * AND WITH ALL FAULTS AND CAVIUM NETWORKS MAKES NO PROMISES, REPRESENTATIONS OR |
| 34 | * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO |
| 35 | * THE SOFTWARE, INCLUDING ITS CONDITION, ITS CONFORMITY TO ANY REPRESENTATION OR |
| 36 | * DESCRIPTION, OR THE EXISTENCE OF ANY LATENT OR PATENT DEFECTS, AND CAVIUM |
| 37 | * SPECIFICALLY DISCLAIMS ALL IMPLIED (IF ANY) WARRANTIES OF TITLE, |
| 38 | * MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF |
| 39 | * VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR |
| 40 | * CORRESPONDENCE TO DESCRIPTION. THE ENTIRE RISK ARISING OUT OF USE OR |
| 41 | * PERFORMANCE OF THE SOFTWARE LIES WITH YOU. |
| 42 | ***********************license end**************************************/ |
| 43 | |
| 44 | |
| 45 | /** |
| 46 | * @file |
| 47 | * |
| 48 | * Configuration and status register (CSR) address and type definitions for |
| 49 | * Cavium LMT. |
| 50 | * |
| 51 | * This file is auto generated. Do not edit. |
| 52 | * |
| 53 | */ |
| 54 | |
| 55 | /** |
| 56 | * Register (RVU_PFVF_BAR2) lmt_lf_lmtcancel |
| 57 | * |
| 58 | * RVU VF LMT Cancel Register |
| 59 | */ |
| 60 | union bdk_lmt_lf_lmtcancel |
| 61 | { |
| 62 | uint64_t u; |
| 63 | struct bdk_lmt_lf_lmtcancel_s |
| 64 | { |
| 65 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 66 | uint64_t data : 64; /**< [ 63: 0](WO) This register's address is used to perform an AP LMTCANCEL operation. This is |
| 67 | only used by code executing on AP cores and has no function when accessed by |
| 68 | other entities. |
| 69 | |
| 70 | Internal: |
| 71 | LMTLINE and LMTCANCEL addresses are consumed by APs and never received by |
| 72 | RVU. See also RVU_BLOCK_ADDR_E::LMT. */ |
| 73 | #else /* Word 0 - Little Endian */ |
| 74 | uint64_t data : 64; /**< [ 63: 0](WO) This register's address is used to perform an AP LMTCANCEL operation. This is |
| 75 | only used by code executing on AP cores and has no function when accessed by |
| 76 | other entities. |
| 77 | |
| 78 | Internal: |
| 79 | LMTLINE and LMTCANCEL addresses are consumed by APs and never received by |
| 80 | RVU. See also RVU_BLOCK_ADDR_E::LMT. */ |
| 81 | #endif /* Word 0 - End */ |
| 82 | } s; |
| 83 | /* struct bdk_lmt_lf_lmtcancel_s cn; */ |
| 84 | }; |
| 85 | typedef union bdk_lmt_lf_lmtcancel bdk_lmt_lf_lmtcancel_t; |
| 86 | |
| 87 | #define BDK_LMT_LF_LMTCANCEL BDK_LMT_LF_LMTCANCEL_FUNC() |
| 88 | static inline uint64_t BDK_LMT_LF_LMTCANCEL_FUNC(void) __attribute__ ((pure, always_inline)); |
| 89 | static inline uint64_t BDK_LMT_LF_LMTCANCEL_FUNC(void) |
| 90 | { |
| 91 | if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX)) |
| 92 | return 0x850200100400ll; |
| 93 | __bdk_csr_fatal("LMT_LF_LMTCANCEL", 0, 0, 0, 0, 0); |
| 94 | } |
| 95 | |
| 96 | #define typedef_BDK_LMT_LF_LMTCANCEL bdk_lmt_lf_lmtcancel_t |
| 97 | #define bustype_BDK_LMT_LF_LMTCANCEL BDK_CSR_TYPE_RVU_PFVF_BAR2 |
| 98 | #define basename_BDK_LMT_LF_LMTCANCEL "LMT_LF_LMTCANCEL" |
| 99 | #define device_bar_BDK_LMT_LF_LMTCANCEL 0x2 /* BAR2 */ |
| 100 | #define busnum_BDK_LMT_LF_LMTCANCEL 0 |
| 101 | #define arguments_BDK_LMT_LF_LMTCANCEL -1,-1,-1,-1 |
| 102 | |
| 103 | /** |
| 104 | * Register (RVU_PFVF_BAR2) lmt_lf_lmtline# |
| 105 | * |
| 106 | * RVU VF LMT Line Registers |
| 107 | */ |
| 108 | union bdk_lmt_lf_lmtlinex |
| 109 | { |
| 110 | uint64_t u; |
| 111 | struct bdk_lmt_lf_lmtlinex_s |
| 112 | { |
| 113 | #if __BYTE_ORDER == __BIG_ENDIAN /* Word 0 - Big Endian */ |
| 114 | uint64_t data : 64; /**< [ 63: 0](WO) This register's address is the 128-byte LMTLINE used to form LMTST |
| 115 | operations. This is only used by code executing on AP cores and has no function |
| 116 | when accessed by other entities. |
| 117 | |
| 118 | Internal: |
| 119 | LMTLINE and LMTCANCEL addresses are consumed by APs and never received by |
| 120 | RVU. See also RVU_BLOCK_ADDR_E::LMT. */ |
| 121 | #else /* Word 0 - Little Endian */ |
| 122 | uint64_t data : 64; /**< [ 63: 0](WO) This register's address is the 128-byte LMTLINE used to form LMTST |
| 123 | operations. This is only used by code executing on AP cores and has no function |
| 124 | when accessed by other entities. |
| 125 | |
| 126 | Internal: |
| 127 | LMTLINE and LMTCANCEL addresses are consumed by APs and never received by |
| 128 | RVU. See also RVU_BLOCK_ADDR_E::LMT. */ |
| 129 | #endif /* Word 0 - End */ |
| 130 | } s; |
| 131 | /* struct bdk_lmt_lf_lmtlinex_s cn; */ |
| 132 | }; |
| 133 | typedef union bdk_lmt_lf_lmtlinex bdk_lmt_lf_lmtlinex_t; |
| 134 | |
| 135 | static inline uint64_t BDK_LMT_LF_LMTLINEX(unsigned long a) __attribute__ ((pure, always_inline)); |
| 136 | static inline uint64_t BDK_LMT_LF_LMTLINEX(unsigned long a) |
| 137 | { |
| 138 | if (CAVIUM_IS_MODEL(CAVIUM_CN9XXX) && (a<=15)) |
| 139 | return 0x850200100000ll + 8ll * ((a) & 0xf); |
| 140 | __bdk_csr_fatal("LMT_LF_LMTLINEX", 1, a, 0, 0, 0); |
| 141 | } |
| 142 | |
| 143 | #define typedef_BDK_LMT_LF_LMTLINEX(a) bdk_lmt_lf_lmtlinex_t |
| 144 | #define bustype_BDK_LMT_LF_LMTLINEX(a) BDK_CSR_TYPE_RVU_PFVF_BAR2 |
| 145 | #define basename_BDK_LMT_LF_LMTLINEX(a) "LMT_LF_LMTLINEX" |
| 146 | #define device_bar_BDK_LMT_LF_LMTLINEX(a) 0x2 /* BAR2 */ |
| 147 | #define busnum_BDK_LMT_LF_LMTLINEX(a) (a) |
| 148 | #define arguments_BDK_LMT_LF_LMTLINEX(a) (a),-1,-1,-1 |
| 149 | |
| 150 | #endif /* __BDK_CSRS_LMT_H__ */ |