bnx2_fw.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* bnx2_fw.h: QLogic bnx2 network driver.
  2. *
  3. * Copyright (c) 2004, 2005, 2006, 2007 Broadcom Corporation
  4. * Copyright (c) 2014-2015 QLogic Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation.
  9. */
  10. /* Initialized Values for the Completion Processor. */
  11. static const struct cpu_reg cpu_reg_com = {
  12. .mode = BNX2_COM_CPU_MODE,
  13. .mode_value_halt = BNX2_COM_CPU_MODE_SOFT_HALT,
  14. .mode_value_sstep = BNX2_COM_CPU_MODE_STEP_ENA,
  15. .state = BNX2_COM_CPU_STATE,
  16. .state_value_clear = 0xffffff,
  17. .gpr0 = BNX2_COM_CPU_REG_FILE,
  18. .evmask = BNX2_COM_CPU_EVENT_MASK,
  19. .pc = BNX2_COM_CPU_PROGRAM_COUNTER,
  20. .inst = BNX2_COM_CPU_INSTRUCTION,
  21. .bp = BNX2_COM_CPU_HW_BREAKPOINT,
  22. .spad_base = BNX2_COM_SCRATCH,
  23. .mips_view_base = 0x8000000,
  24. };
  25. /* Initialized Values the Command Processor. */
  26. static const struct cpu_reg cpu_reg_cp = {
  27. .mode = BNX2_CP_CPU_MODE,
  28. .mode_value_halt = BNX2_CP_CPU_MODE_SOFT_HALT,
  29. .mode_value_sstep = BNX2_CP_CPU_MODE_STEP_ENA,
  30. .state = BNX2_CP_CPU_STATE,
  31. .state_value_clear = 0xffffff,
  32. .gpr0 = BNX2_CP_CPU_REG_FILE,
  33. .evmask = BNX2_CP_CPU_EVENT_MASK,
  34. .pc = BNX2_CP_CPU_PROGRAM_COUNTER,
  35. .inst = BNX2_CP_CPU_INSTRUCTION,
  36. .bp = BNX2_CP_CPU_HW_BREAKPOINT,
  37. .spad_base = BNX2_CP_SCRATCH,
  38. .mips_view_base = 0x8000000,
  39. };
  40. /* Initialized Values for the RX Processor. */
  41. static const struct cpu_reg cpu_reg_rxp = {
  42. .mode = BNX2_RXP_CPU_MODE,
  43. .mode_value_halt = BNX2_RXP_CPU_MODE_SOFT_HALT,
  44. .mode_value_sstep = BNX2_RXP_CPU_MODE_STEP_ENA,
  45. .state = BNX2_RXP_CPU_STATE,
  46. .state_value_clear = 0xffffff,
  47. .gpr0 = BNX2_RXP_CPU_REG_FILE,
  48. .evmask = BNX2_RXP_CPU_EVENT_MASK,
  49. .pc = BNX2_RXP_CPU_PROGRAM_COUNTER,
  50. .inst = BNX2_RXP_CPU_INSTRUCTION,
  51. .bp = BNX2_RXP_CPU_HW_BREAKPOINT,
  52. .spad_base = BNX2_RXP_SCRATCH,
  53. .mips_view_base = 0x8000000,
  54. };
  55. /* Initialized Values for the TX Patch-up Processor. */
  56. static const struct cpu_reg cpu_reg_tpat = {
  57. .mode = BNX2_TPAT_CPU_MODE,
  58. .mode_value_halt = BNX2_TPAT_CPU_MODE_SOFT_HALT,
  59. .mode_value_sstep = BNX2_TPAT_CPU_MODE_STEP_ENA,
  60. .state = BNX2_TPAT_CPU_STATE,
  61. .state_value_clear = 0xffffff,
  62. .gpr0 = BNX2_TPAT_CPU_REG_FILE,
  63. .evmask = BNX2_TPAT_CPU_EVENT_MASK,
  64. .pc = BNX2_TPAT_CPU_PROGRAM_COUNTER,
  65. .inst = BNX2_TPAT_CPU_INSTRUCTION,
  66. .bp = BNX2_TPAT_CPU_HW_BREAKPOINT,
  67. .spad_base = BNX2_TPAT_SCRATCH,
  68. .mips_view_base = 0x8000000,
  69. };
  70. /* Initialized Values for the TX Processor. */
  71. static const struct cpu_reg cpu_reg_txp = {
  72. .mode = BNX2_TXP_CPU_MODE,
  73. .mode_value_halt = BNX2_TXP_CPU_MODE_SOFT_HALT,
  74. .mode_value_sstep = BNX2_TXP_CPU_MODE_STEP_ENA,
  75. .state = BNX2_TXP_CPU_STATE,
  76. .state_value_clear = 0xffffff,
  77. .gpr0 = BNX2_TXP_CPU_REG_FILE,
  78. .evmask = BNX2_TXP_CPU_EVENT_MASK,
  79. .pc = BNX2_TXP_CPU_PROGRAM_COUNTER,
  80. .inst = BNX2_TXP_CPU_INSTRUCTION,
  81. .bp = BNX2_TXP_CPU_HW_BREAKPOINT,
  82. .spad_base = BNX2_TXP_SCRATCH,
  83. .mips_view_base = 0x8000000,
  84. };