bnxt_nvm_defs.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* Broadcom NetXtreme-C/E network driver.
  2. *
  3. * Copyright (c) 2014-2016 Broadcom Corporation
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation.
  8. */
  9. #ifndef _BNXT_NVM_DEFS_H_
  10. #define _BNXT_NVM_DEFS_H_
  11. enum bnxt_nvm_directory_type {
  12. BNX_DIR_TYPE_UNUSED = 0,
  13. BNX_DIR_TYPE_PKG_LOG = 1,
  14. BNX_DIR_TYPE_UPDATE = 2,
  15. BNX_DIR_TYPE_CHIMP_PATCH = 3,
  16. BNX_DIR_TYPE_BOOTCODE = 4,
  17. BNX_DIR_TYPE_VPD = 5,
  18. BNX_DIR_TYPE_EXP_ROM_MBA = 6,
  19. BNX_DIR_TYPE_AVS = 7,
  20. BNX_DIR_TYPE_PCIE = 8,
  21. BNX_DIR_TYPE_PORT_MACRO = 9,
  22. BNX_DIR_TYPE_APE_FW = 10,
  23. BNX_DIR_TYPE_APE_PATCH = 11,
  24. BNX_DIR_TYPE_KONG_FW = 12,
  25. BNX_DIR_TYPE_KONG_PATCH = 13,
  26. BNX_DIR_TYPE_BONO_FW = 14,
  27. BNX_DIR_TYPE_BONO_PATCH = 15,
  28. BNX_DIR_TYPE_TANG_FW = 16,
  29. BNX_DIR_TYPE_TANG_PATCH = 17,
  30. BNX_DIR_TYPE_BOOTCODE_2 = 18,
  31. BNX_DIR_TYPE_CCM = 19,
  32. BNX_DIR_TYPE_PCI_CFG = 20,
  33. BNX_DIR_TYPE_TSCF_UCODE = 21,
  34. BNX_DIR_TYPE_ISCSI_BOOT = 22,
  35. BNX_DIR_TYPE_ISCSI_BOOT_IPV6 = 24,
  36. BNX_DIR_TYPE_ISCSI_BOOT_IPV4N6 = 25,
  37. BNX_DIR_TYPE_ISCSI_BOOT_CFG6 = 26,
  38. BNX_DIR_TYPE_EXT_PHY = 27,
  39. BNX_DIR_TYPE_SHARED_CFG = 40,
  40. BNX_DIR_TYPE_PORT_CFG = 41,
  41. BNX_DIR_TYPE_FUNC_CFG = 42,
  42. BNX_DIR_TYPE_MGMT_CFG = 48,
  43. BNX_DIR_TYPE_MGMT_DATA = 49,
  44. BNX_DIR_TYPE_MGMT_WEB_DATA = 50,
  45. BNX_DIR_TYPE_MGMT_WEB_META = 51,
  46. BNX_DIR_TYPE_MGMT_EVENT_LOG = 52,
  47. BNX_DIR_TYPE_MGMT_AUDIT_LOG = 53
  48. };
  49. #define BNX_DIR_ORDINAL_FIRST 0
  50. #define BNX_DIR_EXT_NONE 0
  51. #define BNX_DIR_EXT_INACTIVE (1 << 0)
  52. #define BNX_DIR_EXT_UPDATE (1 << 1)
  53. #define BNX_DIR_ATTR_NONE 0
  54. #define BNX_DIR_ATTR_NO_CHKSUM (1 << 0)
  55. #define BNX_DIR_ATTR_PROP_STREAM (1 << 1)
  56. enum bnxnvm_pkglog_field_index {
  57. BNX_PKG_LOG_FIELD_IDX_INSTALLED_TIMESTAMP = 0,
  58. BNX_PKG_LOG_FIELD_IDX_PKG_DESCRIPTION = 1,
  59. BNX_PKG_LOG_FIELD_IDX_PKG_VERSION = 2,
  60. BNX_PKG_LOG_FIELD_IDX_PKG_TIMESTAMP = 3,
  61. BNX_PKG_LOG_FIELD_IDX_PKG_CHECKSUM = 4,
  62. BNX_PKG_LOG_FIELD_IDX_INSTALLED_ITEMS = 5,
  63. BNX_PKG_LOG_FIELD_IDX_INSTALLED_MASK = 6
  64. };
  65. #endif /* Don't add anything after this line */