ether_phy.h
来自「AMLOGIC DPF source code」· C头文件 代码 · 共 49 行
H
49 行
/*******************************************************************
*
* Copyright C 2004 by Amlogic, Inc. All Rights Reserved.
*
* Description: Declarations for ethernet phy configuration
*
* Author: Eric Knudstrup
* Created: Wed Jan 5 14:24:30 2005
*
*******************************************************************/
#ifndef ETHER_PHY_H
#define ETHER_PHY_H
typedef enum {
PHY_SPEED_10,
PHY_SPEED_100,
PHY_SPEED_10_100,
PHY_SPEED_AUTO, /* Enable autonegotiation */
PHY_SPEED_NO_CONFIG,/* Not able to change configuration, eg older 10m chips */
PHY_SPEED_DOWN /* The port is configured disabled or oper inactive */
} EtherPhySpeed;
typedef enum {
PHY_DUPLEX_FULL,
PHY_DUPLEX_HALF
} EtherPhyDuplex;
struct netif;
typedef int (*EtherPhyPollFunc)(struct netif *netif);
typedef int (*EtherPhyConfFunc)(struct netif *netif);
typedef struct phy_s {
EtherPhySpeed phy_config_speed; /* Configured (advertised) speed */
EtherPhyDuplex phy_config_duplex; /* Configured (advertised) duplex */
EtherPhySpeed phy_op_speed; /* Operational speed */
EtherPhyDuplex phy_op_duplex; /* Operational duplex */
EtherPhyPollFunc phy_poll_func; /* Function to poll PHY state */
EtherPhyConfFunc phy_config_func; /* Function to update configuration */
} ether_phy_t;
/*;emacs generated header for file phy.c. Global function declarations only. */
/*;end emacs generated header for file phy.c. Global function declarations only. */
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?