Michael Chan | b6016b7 | 2005-05-26 13:03:09 -0700 | [diff] [blame] | 1 | /* bnx2_fw.h: Broadcom NX2 network driver. |
| 2 | * |
Michael Chan | 110d0ef | 2007-12-12 11:18:34 -0800 | [diff] [blame] | 3 | * Copyright (c) 2004, 2005, 2006, 2007 Broadcom Corporation |
Michael Chan | b6016b7 | 2005-05-26 13:03:09 -0700 | [diff] [blame] | 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 |
Michael Chan | 57579f7 | 2009-04-04 16:51:14 -0700 | [diff] [blame] | 7 | * the Free Software Foundation. |
Michael Chan | b6016b7 | 2005-05-26 13:03:09 -0700 | [diff] [blame] | 8 | */ |
| 9 | |
Benjamin Li | 10343cc | 2008-05-16 22:20:27 -0700 | [diff] [blame] | 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 | |
Benjamin Li | 10343cc | 2008-05-16 22:20:27 -0700 | [diff] [blame] | 26 | /* Initialized Values the Command Processor. */ |
| 27 | static const struct cpu_reg cpu_reg_cp = { |
| 28 | .mode = BNX2_CP_CPU_MODE, |
| 29 | .mode_value_halt = BNX2_CP_CPU_MODE_SOFT_HALT, |
| 30 | .mode_value_sstep = BNX2_CP_CPU_MODE_STEP_ENA, |
| 31 | .state = BNX2_CP_CPU_STATE, |
| 32 | .state_value_clear = 0xffffff, |
| 33 | .gpr0 = BNX2_CP_CPU_REG_FILE, |
| 34 | .evmask = BNX2_CP_CPU_EVENT_MASK, |
| 35 | .pc = BNX2_CP_CPU_PROGRAM_COUNTER, |
| 36 | .inst = BNX2_CP_CPU_INSTRUCTION, |
| 37 | .bp = BNX2_CP_CPU_HW_BREAKPOINT, |
| 38 | .spad_base = BNX2_CP_SCRATCH, |
| 39 | .mips_view_base = 0x8000000, |
| 40 | }; |
| 41 | |
Benjamin Li | 10343cc | 2008-05-16 22:20:27 -0700 | [diff] [blame] | 42 | /* Initialized Values for the RX Processor. */ |
| 43 | static const struct cpu_reg cpu_reg_rxp = { |
| 44 | .mode = BNX2_RXP_CPU_MODE, |
| 45 | .mode_value_halt = BNX2_RXP_CPU_MODE_SOFT_HALT, |
| 46 | .mode_value_sstep = BNX2_RXP_CPU_MODE_STEP_ENA, |
| 47 | .state = BNX2_RXP_CPU_STATE, |
| 48 | .state_value_clear = 0xffffff, |
| 49 | .gpr0 = BNX2_RXP_CPU_REG_FILE, |
| 50 | .evmask = BNX2_RXP_CPU_EVENT_MASK, |
| 51 | .pc = BNX2_RXP_CPU_PROGRAM_COUNTER, |
| 52 | .inst = BNX2_RXP_CPU_INSTRUCTION, |
| 53 | .bp = BNX2_RXP_CPU_HW_BREAKPOINT, |
| 54 | .spad_base = BNX2_RXP_SCRATCH, |
| 55 | .mips_view_base = 0x8000000, |
| 56 | }; |
| 57 | |
Benjamin Li | 10343cc | 2008-05-16 22:20:27 -0700 | [diff] [blame] | 58 | /* Initialized Values for the TX Patch-up Processor. */ |
| 59 | static const struct cpu_reg cpu_reg_tpat = { |
| 60 | .mode = BNX2_TPAT_CPU_MODE, |
| 61 | .mode_value_halt = BNX2_TPAT_CPU_MODE_SOFT_HALT, |
| 62 | .mode_value_sstep = BNX2_TPAT_CPU_MODE_STEP_ENA, |
| 63 | .state = BNX2_TPAT_CPU_STATE, |
| 64 | .state_value_clear = 0xffffff, |
| 65 | .gpr0 = BNX2_TPAT_CPU_REG_FILE, |
| 66 | .evmask = BNX2_TPAT_CPU_EVENT_MASK, |
| 67 | .pc = BNX2_TPAT_CPU_PROGRAM_COUNTER, |
| 68 | .inst = BNX2_TPAT_CPU_INSTRUCTION, |
| 69 | .bp = BNX2_TPAT_CPU_HW_BREAKPOINT, |
| 70 | .spad_base = BNX2_TPAT_SCRATCH, |
| 71 | .mips_view_base = 0x8000000, |
| 72 | }; |
| 73 | |
Benjamin Li | 10343cc | 2008-05-16 22:20:27 -0700 | [diff] [blame] | 74 | /* Initialized Values for the TX Processor. */ |
| 75 | static const struct cpu_reg cpu_reg_txp = { |
| 76 | .mode = BNX2_TXP_CPU_MODE, |
| 77 | .mode_value_halt = BNX2_TXP_CPU_MODE_SOFT_HALT, |
| 78 | .mode_value_sstep = BNX2_TXP_CPU_MODE_STEP_ENA, |
| 79 | .state = BNX2_TXP_CPU_STATE, |
| 80 | .state_value_clear = 0xffffff, |
| 81 | .gpr0 = BNX2_TXP_CPU_REG_FILE, |
| 82 | .evmask = BNX2_TXP_CPU_EVENT_MASK, |
| 83 | .pc = BNX2_TXP_CPU_PROGRAM_COUNTER, |
| 84 | .inst = BNX2_TXP_CPU_INSTRUCTION, |
| 85 | .bp = BNX2_TXP_CPU_HW_BREAKPOINT, |
| 86 | .spad_base = BNX2_TXP_SCRATCH, |
| 87 | .mips_view_base = 0x8000000, |
| 88 | }; |