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

physim.h (2469B)


      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  * File:        simul.h
      8  * Purpose:     
      9  */
     10 
     11 #ifndef   _SIMUL_H_
     12 #define   _SIMUL_H_
     13 
     14 #include <soc/register.h>
     15 #include <soc/ll.h>
     16 
     17 extern int phy_simul_enable_set(int uint, soc_port_t port, int enable);
     18 extern int phy_simul_enable_get(int uint, soc_port_t port, int *enable);
     19 extern int phy_simul_init(int unit, soc_port_t port);
     20 extern int phy_simul_reset(int unit, soc_port_t port, void *user_arg);
     21 extern int phy_simul_link_get(int unit, soc_port_t port, int *link);
     22 extern int phy_simul_duplex_set(int unit, soc_port_t port, int duplex);
     23 extern int phy_simul_duplex_get(int unit, soc_port_t port, int *duplex);
     24 extern int phy_simul_speed_set(int unit, soc_port_t port, int speed);
     25 extern int phy_simul_speed_get(int unit, soc_port_t port, int *speed);
     26 extern int phy_simul_master_set(int unit, soc_port_t port, int speed);
     27 extern int phy_simul_master_get(int unit, soc_port_t port, int *speed);
     28 extern int phy_simul_an_set(int unit, soc_port_t port, int an);
     29 extern int phy_simul_an_get(int unit, soc_port_t port, int *an,
     30                              int *an_done);
     31 extern int phy_simul_adv_local_set(int unit, soc_port_t port,
     32 				   soc_port_mode_t mode);
     33 extern int phy_simul_adv_local_get(int unit, soc_port_t port,
     34 				   soc_port_mode_t *mode);
     35 extern int phy_simul_adv_remote_get(int unit, soc_port_t port,
     36 				    soc_port_mode_t *mode);
     37 extern int phy_simul_lb_set(int unit, soc_port_t port, int enable);
     38 extern int phy_simul_lb_get(int unit, soc_port_t port, int *enable);
     39 extern int phy_simul_interface_set(int unit, soc_port_t port,
     40 				   soc_port_if_t pif);
     41 extern int phy_simul_interface_get(int unit, soc_port_t port,
     42 				   soc_port_if_t *pif);
     43 extern int phy_simul_ability_get(int unit, soc_port_t port,
     44 				 soc_port_mode_t *mode);
     45 extern int phy_simul_mdix_set(int unit, soc_port_t port, 
     46                               soc_port_mdix_t mode);
     47 extern int phy_simul_mdix_get(int unit, soc_port_t port, 
     48                               soc_port_mdix_t *mode);
     49 extern int phy_simul_mdix_status_get(int unit, soc_port_t port, 
     50                                      soc_port_mdix_status_t *status);
     51 extern int phy_simul_medium_get(int unit, soc_port_t port,
     52                                 soc_port_medium_t *medium);
     53 
     54 
     55 #endif /* _SIMUL_H_ */