/drivers/net/bna/bfi_ctreg.h
C Header | 646 lines | 587 code | 13 blank | 46 comment | 0 complexity | 2f85ef73a31bc0fa75663b027f561af4 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
- /*
- * Linux network driver for Brocade Converged Network Adapter.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License (GPL) Version 2 as
- * published by the Free Software Foundation
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- */
- /*
- * Copyright (c) 2005-2010 Brocade Communications Systems, Inc.
- * All rights reserved
- * www.brocade.com
- */
- /*
- * bfi_ctreg.h catapult host block register definitions
- *
- * !!! Do not edit. Auto generated. !!!
- */
- #ifndef __BFI_CTREG_H__
- #define __BFI_CTREG_H__
- #define HOSTFN0_LPU_MBOX0_0 0x00019200
- #define HOSTFN1_LPU_MBOX0_8 0x00019260
- #define LPU_HOSTFN0_MBOX0_0 0x00019280
- #define LPU_HOSTFN1_MBOX0_8 0x000192e0
- #define HOSTFN2_LPU_MBOX0_0 0x00019400
- #define HOSTFN3_LPU_MBOX0_8 0x00019460
- #define LPU_HOSTFN2_MBOX0_0 0x00019480
- #define LPU_HOSTFN3_MBOX0_8 0x000194e0
- #define HOSTFN0_INT_STATUS 0x00014000
- #define __HOSTFN0_HALT_OCCURRED 0x01000000
- #define __HOSTFN0_INT_STATUS_LVL_MK 0x00f00000
- #define __HOSTFN0_INT_STATUS_LVL_SH 20
- #define __HOSTFN0_INT_STATUS_LVL(_v) ((_v) << __HOSTFN0_INT_STATUS_LVL_SH)
- #define __HOSTFN0_INT_STATUS_P_MK 0x000f0000
- #define __HOSTFN0_INT_STATUS_P_SH 16
- #define __HOSTFN0_INT_STATUS_P(_v) ((_v) << __HOSTFN0_INT_STATUS_P_SH)
- #define __HOSTFN0_INT_STATUS_F 0x0000ffff
- #define HOSTFN0_INT_MSK 0x00014004
- #define HOST_PAGE_NUM_FN0 0x00014008
- #define __HOST_PAGE_NUM_FN 0x000001ff
- #define HOST_MSIX_ERR_INDEX_FN0 0x0001400c
- #define __MSIX_ERR_INDEX_FN 0x000001ff
- #define HOSTFN1_INT_STATUS 0x00014100
- #define __HOSTFN1_HALT_OCCURRED 0x01000000
- #define __HOSTFN1_INT_STATUS_LVL_MK 0x00f00000
- #define __HOSTFN1_INT_STATUS_LVL_SH 20
- #define __HOSTFN1_INT_STATUS_LVL(_v) ((_v) << __HOSTFN1_INT_STATUS_LVL_SH)
- #define __HOSTFN1_INT_STATUS_P_MK 0x000f0000
- #define __HOSTFN1_INT_STATUS_P_SH 16
- #define __HOSTFN1_INT_STATUS_P(_v) ((_v) << __HOSTFN1_INT_STATUS_P_SH)
- #define __HOSTFN1_INT_STATUS_F 0x0000ffff
- #define HOSTFN1_INT_MSK 0x00014104
- #define HOST_PAGE_NUM_FN1 0x00014108
- #define HOST_MSIX_ERR_INDEX_FN1 0x0001410c
- #define APP_PLL_425_CTL_REG 0x00014204
- #define __P_425_PLL_LOCK 0x80000000
- #define __APP_PLL_425_SRAM_USE_100MHZ 0x00100000
- #define __APP_PLL_425_RESET_TIMER_MK 0x000e0000
- #define __APP_PLL_425_RESET_TIMER_SH 17
- #define __APP_PLL_425_RESET_TIMER(_v) ((_v) << __APP_PLL_425_RESET_TIMER_SH)
- #define __APP_PLL_425_LOGIC_SOFT_RESET 0x00010000
- #define __APP_PLL_425_CNTLMT0_1_MK 0x0000c000
- #define __APP_PLL_425_CNTLMT0_1_SH 14
- #define __APP_PLL_425_CNTLMT0_1(_v) ((_v) << __APP_PLL_425_CNTLMT0_1_SH)
- #define __APP_PLL_425_JITLMT0_1_MK 0x00003000
- #define __APP_PLL_425_JITLMT0_1_SH 12
- #define __APP_PLL_425_JITLMT0_1(_v) ((_v) << __APP_PLL_425_JITLMT0_1_SH)
- #define __APP_PLL_425_HREF 0x00000800
- #define __APP_PLL_425_HDIV 0x00000400
- #define __APP_PLL_425_P0_1_MK 0x00000300
- #define __APP_PLL_425_P0_1_SH 8
- #define __APP_PLL_425_P0_1(_v) ((_v) << __APP_PLL_425_P0_1_SH)
- #define __APP_PLL_425_Z0_2_MK 0x000000e0
- #define __APP_PLL_425_Z0_2_SH 5
- #define __APP_PLL_425_Z0_2(_v) ((_v) << __APP_PLL_425_Z0_2_SH)
- #define __APP_PLL_425_RSEL200500 0x00000010
- #define __APP_PLL_425_ENARST 0x00000008
- #define __APP_PLL_425_BYPASS 0x00000004
- #define __APP_PLL_425_LRESETN 0x00000002
- #define __APP_PLL_425_ENABLE 0x00000001
- #define APP_PLL_312_CTL_REG 0x00014208
- #define __P_312_PLL_LOCK 0x80000000
- #define __ENABLE_MAC_AHB_1 0x00800000
- #define __ENABLE_MAC_AHB_0 0x00400000
- #define __ENABLE_MAC_1 0x00200000
- #define __ENABLE_MAC_0 0x00100000
- #define __APP_PLL_312_RESET_TIMER_MK 0x000e0000
- #define __APP_PLL_312_RESET_TIMER_SH 17
- #define __APP_PLL_312_RESET_TIMER(_v) ((_v) << __APP_PLL_312_RESET_TIMER_SH)
- #define __APP_PLL_312_LOGIC_SOFT_RESET 0x00010000
- #define __APP_PLL_312_CNTLMT0_1_MK 0x0000c000
- #define __APP_PLL_312_CNTLMT0_1_SH 14
- #define __APP_PLL_312_CNTLMT0_1(_v) ((_v) << __APP_PLL_312_CNTLMT0_1_SH)
- #define __APP_PLL_312_JITLMT0_1_MK 0x00003000
- #define __APP_PLL_312_JITLMT0_1_SH 12
- #define __APP_PLL_312_JITLMT0_1(_v) ((_v) << __APP_PLL_312_JITLMT0_1_SH)
- #define __APP_PLL_312_HREF 0x00000800
- #define __APP_PLL_312_HDIV 0x00000400
- #define __APP_PLL_312_P0_1_MK 0x00000300
- #define __APP_PLL_312_P0_1_SH 8
- #define __APP_PLL_312_P0_1(_v) ((_v) << __APP_PLL_312_P0_1_SH)
- #define __APP_PLL_312_Z0_2_MK 0x000000e0
- #define __APP_PLL_312_Z0_2_SH 5
- #define __APP_PLL_312_Z0_2(_v) ((_v) << __APP_PLL_312_Z0_2_SH)
- #define __APP_PLL_312_RSEL200500 0x00000010
- #define __APP_PLL_312_ENARST 0x00000008
- #define __APP_PLL_312_BYPASS 0x00000004
- #define __APP_PLL_312_LRESETN 0x00000002
- #define __APP_PLL_312_ENABLE 0x00000001
- #define MBIST_CTL_REG 0x00014220
- #define __EDRAM_BISTR_START 0x00000004
- #define __MBIST_RESET 0x00000002
- #define __MBIST_START 0x00000001
- #define MBIST_STAT_REG 0x00014224
- #define __EDRAM_BISTR_STATUS 0x00000008
- #define __EDRAM_BISTR_DONE 0x00000004
- #define __MEM_BIT_STATUS 0x00000002
- #define __MBIST_DONE 0x00000001
- #define HOST_SEM0_REG 0x00014230
- #define __HOST_SEMAPHORE 0x00000001
- #define HOST_SEM1_REG 0x00014234
- #define HOST_SEM2_REG 0x00014238
- #define HOST_SEM3_REG 0x0001423c
- #define HOST_SEM0_INFO_REG 0x00014240
- #define HOST_SEM1_INFO_REG 0x00014244
- #define HOST_SEM2_INFO_REG 0x00014248
- #define HOST_SEM3_INFO_REG 0x0001424c
- #define ETH_MAC_SER_REG 0x00014288
- #define __APP_EMS_CKBUFAMPIN 0x00000020
- #define __APP_EMS_REFCLKSEL 0x00000010
- #define __APP_EMS_CMLCKSEL 0x00000008
- #define __APP_EMS_REFCKBUFEN2 0x00000004
- #define __APP_EMS_REFCKBUFEN1 0x00000002
- #define __APP_EMS_CHANNEL_SEL 0x00000001
- #define HOSTFN2_INT_STATUS 0x00014300
- #define __HOSTFN2_HALT_OCCURRED 0x01000000
- #define __HOSTFN2_INT_STATUS_LVL_MK 0x00f00000
- #define __HOSTFN2_INT_STATUS_LVL_SH 20
- #define __HOSTFN2_INT_STATUS_LVL(_v) ((_v) << __HOSTFN2_INT_STATUS_LVL_SH)
- #define __HOSTFN2_INT_STATUS_P_MK 0x000f0000
- #define __HOSTFN2_INT_STATUS_P_SH 16
- #define __HOSTFN2_INT_STATUS_P(_v) ((_v) << __HOSTFN2_INT_STATUS_P_SH)
- #define __HOSTFN2_INT_STATUS_F 0x0000ffff
- #define HOSTFN2_INT_MSK 0x00014304
- #define HOST_PAGE_NUM_FN2 0x00014308
- #define HOST_MSIX_ERR_INDEX_FN2 0x0001430c
- #define HOSTFN3_INT_STATUS 0x00014400
- #define __HALT_OCCURRED 0x01000000
- #define __HOSTFN3_INT_STATUS_LVL_MK 0x00f00000
- #define __HOSTFN3_INT_STATUS_LVL_SH 20
- #define __HOSTFN3_INT_STATUS_LVL(_v) ((_v) << __HOSTFN3_INT_STATUS_LVL_SH)
- #define __HOSTFN3_INT_STATUS_P_MK 0x000f0000
- #define __HOSTFN3_INT_STATUS_P_SH 16
- #define __HOSTFN3_INT_STATUS_P(_v) ((_v) << __HOSTFN3_INT_STATUS_P_SH)
- #define __HOSTFN3_INT_STATUS_F 0x0000ffff
- #define HOSTFN3_INT_MSK 0x00014404
- #define HOST_PAGE_NUM_FN3 0x00014408
- #define HOST_MSIX_ERR_INDEX_FN3 0x0001440c
- #define FNC_ID_REG 0x00014600
- #define __FUNCTION_NUMBER 0x00000007
- #define FNC_PERS_REG 0x00014604
- #define __F3_FUNCTION_ACTIVE 0x80000000
- #define __F3_FUNCTION_MODE 0x40000000
- #define __F3_PORT_MAP_MK 0x30000000
- #define __F3_PORT_MAP_SH 28
- #define __F3_PORT_MAP(_v) ((_v) << __F3_PORT_MAP_SH)
- #define __F3_VM_MODE 0x08000000
- #define __F3_INTX_STATUS_MK 0x07000000
- #define __F3_INTX_STATUS_SH 24
- #define __F3_INTX_STATUS(_v) ((_v) << __F3_INTX_STATUS_SH)
- #define __F2_FUNCTION_ACTIVE 0x00800000
- #define __F2_FUNCTION_MODE 0x00400000
- #define __F2_PORT_MAP_MK 0x00300000
- #define __F2_PORT_MAP_SH 20
- #define __F2_PORT_MAP(_v) ((_v) << __F2_PORT_MAP_SH)
- #define __F2_VM_MODE 0x00080000
- #define __F2_INTX_STATUS_MK 0x00070000
- #define __F2_INTX_STATUS_SH 16
- #define __F2_INTX_STATUS(_v) ((_v) << __F2_INTX_STATUS_SH)
- #define __F1_FUNCTION_ACTIVE 0x00008000
- #define __F1_FUNCTION_MODE 0x00004000
- #define __F1_PORT_MAP_MK 0x00003000
- #define __F1_PORT_MAP_SH 12
- #define __F1_PORT_MAP(_v) ((_v) << __F1_PORT_MAP_SH)
- #define __F1_VM_MODE 0x00000800
- #define __F1_INTX_STATUS_MK 0x00000700
- #define __F1_INTX_STATUS_SH 8
- #define __F1_INTX_STATUS(_v) ((_v) << __F1_INTX_STATUS_SH)
- #define __F0_FUNCTION_ACTIVE 0x00000080
- #define __F0_FUNCTION_MODE 0x00000040
- #define __F0_PORT_MAP_MK 0x00000030
- #define __F0_PORT_MAP_SH 4
- #define __F0_PORT_MAP(_v) ((_v) << __F0_PORT_MAP_SH)
- #define __F0_VM_MODE 0x00000008
- #define __F0_INTX_STATUS 0x00000007
- enum {
- __F0_INTX_STATUS_MSIX = 0x0,
- __F0_INTX_STATUS_INTA = 0x1,
- __F0_INTX_STATUS_INTB = 0x2,
- __F0_INTX_STATUS_INTC = 0x3,
- __F0_INTX_STATUS_INTD = 0x4,
- };
- #define OP_MODE 0x0001460c
- #define __APP_ETH_CLK_LOWSPEED 0x00000004
- #define __GLOBAL_CORECLK_HALFSPEED 0x00000002
- #define __GLOBAL_FCOE_MODE 0x00000001
- #define HOST_SEM4_REG 0x00014610
- #define HOST_SEM5_REG 0x00014614
- #define HOST_SEM6_REG 0x00014618
- #define HOST_SEM7_REG 0x0001461c
- #define HOST_SEM4_INFO_REG 0x00014620
- #define HOST_SEM5_INFO_REG 0x00014624
- #define HOST_SEM6_INFO_REG 0x00014628
- #define HOST_SEM7_INFO_REG 0x0001462c
- #define HOSTFN0_LPU0_MBOX0_CMD_STAT 0x00019000
- #define __HOSTFN0_LPU0_MBOX0_INFO_MK 0xfffffffe
- #define __HOSTFN0_LPU0_MBOX0_INFO_SH 1
- #define __HOSTFN0_LPU0_MBOX0_INFO(_v) ((_v) << __HOSTFN0_LPU0_MBOX0_INFO_SH)
- #define __HOSTFN0_LPU0_MBOX0_CMD_STATUS 0x00000001
- #define HOSTFN0_LPU1_MBOX0_CMD_STAT 0x00019004
- #define __HOSTFN0_LPU1_MBOX0_INFO_MK 0xfffffffe
- #define __HOSTFN0_LPU1_MBOX0_INFO_SH 1
- #define __HOSTFN0_LPU1_MBOX0_INFO(_v) ((_v) << __HOSTFN0_LPU1_MBOX0_INFO_SH)
- #define __HOSTFN0_LPU1_MBOX0_CMD_STATUS 0x00000001
- #define LPU0_HOSTFN0_MBOX0_CMD_STAT 0x00019008
- #define __LPU0_HOSTFN0_MBOX0_INFO_MK 0xfffffffe
- #define __LPU0_HOSTFN0_MBOX0_INFO_SH 1
- #define __LPU0_HOSTFN0_MBOX0_INFO(_v) ((_v) << __LPU0_HOSTFN0_MBOX0_INFO_SH)
- #define __LPU0_HOSTFN0_MBOX0_CMD_STATUS 0x00000001
- #define LPU1_HOSTFN0_MBOX0_CMD_STAT 0x0001900c
- #define __LPU1_HOSTFN0_MBOX0_INFO_MK 0xfffffffe
- #define __LPU1_HOSTFN0_MBOX0_INFO_SH 1
- #define __LPU1_HOSTFN0_MBOX0_INFO(_v) ((_v) << __LPU1_HOSTFN0_MBOX0_INFO_SH)
- #define __LPU1_HOSTFN0_MBOX0_CMD_STATUS 0x00000001
- #define HOSTFN1_LPU0_MBOX0_CMD_STAT 0x00019010
- #define __HOSTFN1_LPU0_MBOX0_INFO_MK 0xfffffffe
- #define __HOSTFN1_LPU0_MBOX0_INFO_SH 1
- #define __HOSTFN1_LPU0_MBOX0_INFO(_v) ((_v) << __HOSTFN1_LPU0_MBOX0_INFO_SH)
- #define __HOSTFN1_LPU0_MBOX0_CMD_STATUS 0x00000001
- #define HOSTFN1_LPU1_MBOX0_CMD_STAT 0x00019014