⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phy.h

📁 华为 HI3510 BOOTLOADER HIBOOT 源码包
💻 H
字号:
#include "../sf/sf_api.h"#ifndef __DRIVERS_NET_HISILICON_PHY_PHY_H#define __DRIVERS_NET_HISILICON_PHY_PHY_Hstruct hisilicon_phy_device {	const char *name;	unsigned long id;	int (*probe)(int port);	int (*init)(int port);	void (*exit)(int port);	int (*set_static_mod)(int port, unsigned long stat);	int (*set_auto_mod)(int port);	unsigned long (*get_states)(int port);};#define MK_PHY_STAT(link,dupl,speed) (((link)<<2) | ((dupl)<<1) | ((speed)))#define PHY_LINK_STAT(w32) (((w32)>>2)&0x01)#define PHY_DUPL_STAT(w32) (((w32)>>1)&0x01)#define PHY_SPEED_STAT(w32) ((w32)&0x01)#ifdef CONFIG_HISILICON_PHYCHIPstruct hisilicon_phy_device *hisilicon_phy_connect(const char *name, unsigned long id);int hisilicon_phy_disconnect(struct hisilicon_phy_device * phydev);unsigned long hisilicon_phychip_extaddr(int port);#elsestatic inline struct hisilicon_phy_device *hisilicon_phy_connect(const char *name, unsigned long id) { return NULL; }static inline int hisilicon_phy_disconnect(struct hisilicon_phy_device * phydev) { return 0; }static inline unsigned long hisilicon_phychip_extaddr(int port) { return 0; }#endif#endif /* __DRIVERS_NET_HISILICON_PHY_PHY_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -