📄 phy.h
字号:
/*******************************************************************
*
* 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 PHY_H
#define PHY_H
typedef enum {
PHY_SPEED_10,
PHY_SPEED_100,
PHY_SPEED_10_100,
PHY_SPEED_AUTO /* Enable autonegotiation */
} PhySpeed;
typedef enum {
PHY_DUPLEX_FULL,
PHY_DUPLEX_HALF
} PhyDuplex;
typedef struct phy_s {
PhySpeed phy_config_speed; /* Configured speed */
PhyDuplex phy_config_duplex; /* Configured duplex */
PhySpeed phy_op_speed; /* Operational speed */
PhyDuplex phy_op_duplex; /* Operational duplex */
} 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -