qmod_device.h (2140B)
1 /*---------------------------------------------------------------------- 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 * 7 * Broadcom Corporation 8 * Proprietary and Confidential information 9 * All rights reserved 10 * This source file is the property of Broadcom Corporation, and 11 * may not be copied or distributed in any isomorphic form without the 12 * prior written consent of Broadcom Corporation. 13 *---------------------------------------------------------------------- 14 * Description: define enumerators 15 *----------------------------------------------------------------------*/ 16 /* 17 * 18 * $Copyright: 19 * All Rights Reserved.$ 20 */ 21 #ifndef _QMOD_DEVICE_H_ 22 #define _QMOD_DEVICE_H_ 23 24 /* debug mask are used by TEMOD */ 25 #define QMOD_DBG_CL72 (1L << 16) /* CL72 */ 26 #define QMOD_DBG_FWL (1L << 15) /* FW loading debug */ 27 #define QMOD_DBG_REGACC (1L << 14) /* Print all register accesses */ 28 #define QMOD_DBG_CFG (1L << 13) /* CFG */ 29 #define QMOD_DBG_LNK (1L << 12) /* Link */ 30 #define QMOD_DBG_SPD (1L << 11) /* Speed */ 31 #define QMOD_DBG_AN (1L << 10) /* AN */ 32 #define QMOD_DBG_LPK (1L << 9) /* Local or remote loopback */ 33 #define QMOD_DBG_PMD (1L << 8) /* PMD */ 34 #define QMOD_DBG_SCN (1L << 7) /* Link scan*/ 35 #define QMOD_DBG_TST (1L << 6) /* Testing and PRBS */ 36 #define QMOD_DBG_TOP (1L << 5) /* Lane swap and polarity */ 37 #define QMOD_DBG_MEM (1L << 4) /* allocation/object */ 38 39 #define QMOD_DBG_FUNCVALOUT (1L << 2) /* All values returned by Tier1*/ 40 #define QMOD_DBG_FUNCVALIN (1L << 1) /* All values pumped into Tier1*/ 41 #define QMOD_DBG_FUNC (1L << 0) /* Every time we enter a Tier1*/ 42 43 typedef struct qmod_device_aux_modes_s { 44 uint32_t core_id ; 45 uint16_t st_current_entry ; 46 uint16_t st_hcd[4] ; 47 uint16_t st_pll_div[4] ; 48 uint16_t st_os[4] ; 49 50 uint16_t hto_enable[4] ; 51 uint16_t hto_pll_div[4] ; 52 uint16_t hto_os[4] ; 53 } qmod_device_aux_modes_t ; 54 55 #endif