openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

temod_device.h (2247B)


      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 _TEMOD_DEVICE_H_
     22 #define _TEMOD_DEVICE_H_
     23 
     24 /* debug mask are used by TEMOD */
     25 #define TEMOD_DBG_CL72       (1L << 16) /* CL72 */
     26 #define TEMOD_DBG_FWL        (1L << 15) /* FW loading debug */
     27 #define TEMOD_DBG_REGACC     (1L << 14) /* Print all register accesses */
     28 #define TEMOD_DBG_CFG        (1L << 13) /* CFG */
     29 #define TEMOD_DBG_LNK        (1L << 12) /* Link */
     30 #define TEMOD_DBG_SPD        (1L << 11) /* Speed */
     31 #define TEMOD_DBG_AN         (1L << 10) /* AN */
     32 #define TEMOD_DBG_LPK        (1L << 9) /* Local or remote loopback */
     33 #define TEMOD_DBG_PMD        (1L << 8) /* PMD */
     34 #define TEMOD_DBG_SCN        (1L << 7) /* Link scan*/
     35 #define TEMOD_DBG_TST        (1L << 6) /* Testing and PRBS */
     36 #define TEMOD_DBG_TOP        (1L << 5) /* Lane swap and polarity */
     37 #define TEMOD_DBG_MEM        (1L << 4) /* allocation/object */
     38 
     39 #define TEMOD_DBG_FUNCVALOUT (1L << 2) /* All values returned by Tier1*/
     40 #define TEMOD_DBG_FUNCVALIN  (1L << 1) /* All values pumped into Tier1*/
     41 #define TEMOD_DBG_FUNC       (1L << 0) /* Every time we enter a  Tier1*/
     42 
     43 typedef struct temod_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 } temod_device_aux_modes_t ;
     54 
     55 #define TEMOD_CL72_CONTROL_NO_TRIGER  0x80
     56 #define TEMOD_CL72_CONTROL_MASK       0x0f
     57 
     58 #endif