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

utils_fe1600_card.h (2285B)


      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-2020 Broadcom Inc. All rights reserved.
      6  *
      7  * File:        utils_fe1600_card.h
      8  * Purpose:     fe1600 card Utilities Header.
      9  */
     10 
     11 #ifndef __UTILITIES_UTILS_FE1600_CARD_H_INCLUDED__
     12 /* { */
     13 #define __UTILITIES_UTILS_FE1600_CARD_H_INCLUDED__
     14 
     15 /*************                                                      
     16  * INCLUDES  *                                                      
     17  */                                                     
     18 /* { */
     19 
     20 #include <sal/types.h>
     21 #include <appl/diag/dcmn/bsp_cards_consts.h>
     22 
     23 /* } */
     24 /*************
     25  * DEFINES   *
     26  */
     27 /* { */
     28 
     29 /* IO_AGENT_FPGA { */
     30 #define FE1600_CARD_IO_AGENT_FPGA_FILE              "fe1600_card_io_agent.rbf"
     31 
     32 /* I2C Adress */
     33 #define FE1600_CARD_I2C_IO_AGENT_DEVICE_ADDR    0x40
     34 #define FE1600_CARD_I2C_FE1600_DEVICE_ADDR          0x44
     35 #define FE1600_CARD_I2C_GPIO_DEVICE_ADDR             0x20
     36 
     37 /*************
     38  * TYPE DEFS *
     39  */
     40 /* { */
     41 
     42 typedef enum
     43 {
     44   FE1600_CARD_SYNT_SERDES_0 =   0,
     45   FE1600_CARD_SYNT_SERDES_1 =   1,
     46   FE1600_CARD_SYNT_SERDES_2 =   2,
     47   FE1600_CARD_SYNT_SERDES_3 =   3,
     48   FE1600_CARD_SYNT_CORE     =   4,
     49   FE1600_CARD_NOF_SYNT_TYPES
     50 } FE1600_CARD_SYNT_TYPE;
     51 
     52 /* } */
     53 
     54 /*************
     55  * GLOBALS   *
     56  */
     57 /* { */
     58 
     59 /* } */
     60 
     61 /*************
     62  * FUNCTIONS *
     63  */
     64 /* { */
     65 
     66 /* 
     67  * Board functions 
     68  */
     69 uint32
     70     fe1600_card_fpga_io_regs_init(void);
     71 
     72 uint32
     73   fe1600_card_init_host_board(
     74     const  SOC_BSP_CARDS_DEFINES          card_type
     75   );
     76 
     77 uint32 
     78   fe1600_BOARD_SPECIFICATIONS_clear( 
     79     const SOC_BSP_CARDS_DEFINES  card_type 
     80   );
     81 
     82 /* 
     83  * Board Utility Functions 
     84  */
     85 uint32
     86     fe1600_card_power_monitor(
     87         int eq_sel
     88     );
     89 
     90 uint32
     91     fe3200_card_power_monitor(
     92         int eq_sel
     93     );
     94 
     95 /* 
     96  * Synt Functions 
     97  */
     98 uint32
     99   fe1600_card_board_synt_set(
    100    const FE1600_CARD_SYNT_TYPE targetsynt,
    101    const uint32               targetfreq,
    102    const unsigned char         silent
    103   );
    104 
    105 uint32 
    106   fe1600_card_board_synt_nominal_freq_get( 
    107     const FE1600_CARD_SYNT_TYPE   targetsynt 
    108   );
    109 
    110 uint32 fe3200_card_board_synt_set(uint32 targetfreq, uint32 nominalfreq);
    111 /* } */
    112 
    113 #endif /*  __UTILITIES_UTILS_LINE_GFA_PETRA_H_INCLUDED__ */