bnx2_fw.h 2.8 KB

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