net: add rte prefix to ether structures
[dpdk.git] / drivers / net / bnxt / bnxt_nvm_defs.h
1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
2  * Copyright(c) 2014-2018 Broadcom
3  * All rights reserved.
4  */
5
6 #ifndef _BNXT_NVM_DEFS_H_
7 #define _BNXT_NVM_DEFS_H_
8
9 enum bnxt_nvm_directory_type {
10         BNX_DIR_TYPE_UNUSED = 0,
11         BNX_DIR_TYPE_PKG_LOG = 1,
12         BNX_DIR_TYPE_UPDATE = 2,
13         BNX_DIR_TYPE_CHIMP_PATCH = 3,
14         BNX_DIR_TYPE_BOOTCODE = 4,
15         BNX_DIR_TYPE_VPD = 5,
16         BNX_DIR_TYPE_EXP_ROM_MBA = 6,
17         BNX_DIR_TYPE_AVS = 7,
18         BNX_DIR_TYPE_PCIE = 8,
19         BNX_DIR_TYPE_PORT_MACRO = 9,
20         BNX_DIR_TYPE_APE_FW = 10,
21         BNX_DIR_TYPE_APE_PATCH = 11,
22         BNX_DIR_TYPE_KONG_FW = 12,
23         BNX_DIR_TYPE_KONG_PATCH = 13,
24         BNX_DIR_TYPE_BONO_FW = 14,
25         BNX_DIR_TYPE_BONO_PATCH = 15,
26         BNX_DIR_TYPE_TANG_FW = 16,
27         BNX_DIR_TYPE_TANG_PATCH = 17,
28         BNX_DIR_TYPE_BOOTCODE_2 = 18,
29         BNX_DIR_TYPE_CCM = 19,
30         BNX_DIR_TYPE_PCI_CFG = 20,
31         BNX_DIR_TYPE_TSCF_UCODE = 21,
32         BNX_DIR_TYPE_ISCSI_BOOT = 22,
33         BNX_DIR_TYPE_ISCSI_BOOT_IPV6 = 24,
34         BNX_DIR_TYPE_ISCSI_BOOT_IPV4N6 = 25,
35         BNX_DIR_TYPE_ISCSI_BOOT_CFG6 = 26,
36         BNX_DIR_TYPE_EXT_PHY = 27,
37         BNX_DIR_TYPE_SHARED_CFG = 40,
38         BNX_DIR_TYPE_PORT_CFG = 41,
39         BNX_DIR_TYPE_FUNC_CFG = 42,
40         BNX_DIR_TYPE_MGMT_CFG = 48,
41         BNX_DIR_TYPE_MGMT_DATA = 49,
42         BNX_DIR_TYPE_MGMT_WEB_DATA = 50,
43         BNX_DIR_TYPE_MGMT_WEB_META = 51,
44         BNX_DIR_TYPE_MGMT_EVENT_LOG = 52,
45         BNX_DIR_TYPE_MGMT_AUDIT_LOG = 53
46 };
47
48 #define BNX_DIR_ORDINAL_FIRST                   0
49
50 #define BNX_DIR_EXT_NONE                        0
51 #define BNX_DIR_EXT_INACTIVE                    (1 << 0)
52 #define BNX_DIR_EXT_UPDATE                      (1 << 1)
53
54 #define BNX_DIR_ATTR_NONE                       0
55 #define BNX_DIR_ATTR_NO_CHKSUM                  (1 << 0)
56 #define BNX_DIR_ATTR_PROP_STREAM                (1 << 1)
57
58 #define BNX_PKG_LOG_MAX_LENGTH                  4096
59
60 enum bnxnvm_pkglog_field_index {
61         BNX_PKG_LOG_FIELD_IDX_INSTALLED_TIMESTAMP       = 0,
62         BNX_PKG_LOG_FIELD_IDX_PKG_DESCRIPTION           = 1,
63         BNX_PKG_LOG_FIELD_IDX_PKG_VERSION               = 2,
64         BNX_PKG_LOG_FIELD_IDX_PKG_TIMESTAMP             = 3,
65         BNX_PKG_LOG_FIELD_IDX_PKG_CHECKSUM              = 4,
66         BNX_PKG_LOG_FIELD_IDX_INSTALLED_ITEMS           = 5,
67         BNX_PKG_LOG_FIELD_IDX_INSTALLED_MASK            = 6
68 };
69
70 #endif                          /* Don't add anything after this line */