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

pm4x2p5_shared.h (1126B)


      1 /*
      2  *         
      3  * 
      4  * 
      5  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      6  * 
      7  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      8  */
      9 
     10 #ifndef _PM4X2P5_SHARED_H_
     11 #define _PM4X2P5_SHARED_H_
     12 
     13 #define PM4X2P5_LANES_PER_CORE (4)
     14 #define MAX_PORTS_PER_PM4X2P5 (4)
     15 
     16 struct pm4x2p5_s{
     17     portmod_pbmp_t phys;
     18     int first_phy;
     19     phymod_ref_clk_t ref_clk;
     20     phymod_polarity_t polarity;
     21     phymod_lane_map_t lane_map;
     22     phymod_firmware_load_method_t fw_load_method;
     23     phymod_firmware_loader_f external_fw_loader;
     24     phymod_core_access_t int_core_access ; /* for internal SerDes only */
     25     int nof_phys[PM4X2P5_LANES_PER_CORE]; /* internal + External Phys for each lane*/
     26     uint8 default_fw_loader_is_used;
     27     uint8 default_bus_is_used;
     28     portmod_phy_external_reset_f  portmod_phy_external_reset;
     29     portmod_mac_soft_reset_f portmod_mac_soft_reset;
     30     portmod_xphy_lane_connection_t lane_conn[MAX_PHYN][PM4X2P5_LANES_PER_CORE];
     31 };
     32 
     33 #define PM_4x2P5_INFO(pm_info) ((pm_info)->pm_data.pm4x2p5_db)
     34 
     35 #endif /*_PM4X2P5_SHARED_H_*/