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

phy_portmod_dispatch.h (2338B)


      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:        phynull.h
      8  * Purpose:
      9  */
     10 
     11 #ifndef   _PHY_PORTMOD_DISPATCH_H_
     12 #define   _PHY_PORTMOD_DISPATCH_H_
     13 
     14 #ifdef PORTMOD_SUPPORT
     15 extern int phy_portmod_dispatch_init(int unit, soc_port_t port);
     16 extern int phy_portmod_dispatch_reset(int unit, soc_port_t port, void *user_arg);
     17 extern int phy_portmod_dispatch_set(int unit, soc_port_t port, int parm);
     18 extern int phy_portmod_dispatch_one_get(int unit, soc_port_t port, int *parm);
     19 extern int phy_portmod_dispatch_zero_get(int unit, soc_port_t port, int *parm);
     20 extern int phy_portmod_dispatch_enable_get(int unit, soc_port_t port, int *enable);
     21 extern int phy_portmod_dispatch_duplex_set(int unit, soc_port_t port, int parm);
     22 extern int phy_portmod_dispatch_duplex_get(int unit, soc_port_t port, int *parm);
     23 extern int phy_portmod_dispatch_speed_set(int unit, soc_port_t port, int parm);
     24 extern int phy_portmod_dispatch_speed_get(int unit, soc_port_t port, int *parm);
     25 extern int phy_portmod_dispatch_an_get(int unit, soc_port_t port, int *an, int *an_done);
     26 extern int phy_portmod_dispatch_mode_set(int unit, soc_port_t port, soc_port_mode_t mode);
     27 extern int phy_portmod_dispatch_mode_get(int unit, soc_port_t port, soc_port_mode_t *mode);
     28 extern int phy_portmod_dispatch_mdix_set(int unit, soc_port_t port,
     29                              soc_port_mdix_t mode);
     30 extern int phy_portmod_dispatch_mdix_get(int unit, soc_port_t port,
     31                              soc_port_mdix_t *mode);
     32 extern int phy_portmod_dispatch_mdix_status_get(int unit, soc_port_t port,
     33                                     soc_port_mdix_status_t *status);
     34 extern int phy_portmod_dispatch_medium_get(int unit, soc_port_t port,
     35                                soc_port_medium_t *medium);
     36 extern int phy_portmod_dispatch_control_get(int unit, soc_port_t port,
     37                                 soc_phy_control_t phy_ctrl, uint32 *param);
     38 
     39 extern int phy_portmod_dispatch_notify(int unit, soc_port_t port,
     40                                       soc_phy_event_t event, uint32 value);
     41 extern int
     42 phy_portmod_dispatch_an_set(int unit, soc_port_t port, int an_enable);
     43 
     44 #endif
     45 
     46 #endif /* _PHY_PORTMOD_DISPATCH_H_ */