| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
UM0851 bảng dữ liệu(PDF) 47 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0851 bảng dữ liệu(HTML) 47 Page - STMicroelectronics |
|
47 / 245 page ![]() UM0851 Communication device drivers Doc ID 16604 Rev 2 47/245 int (*suspend) (struct mii_phy * phy, int wol_options); int (*setup_aneg) (struct mii_phy * phy, u32 advertise); int (*setup_forced) (struct mii_phy * phy, int speed, int fd); int (*poll_link) (struct mii_phy * phy); int (*read_link) (struct mii_phy * phy); }; struct mii_phy { struct mii_phy_def *def; u32 advertising; /* Ethtool ADVERTISED_* defines */ u32 features; /* Copied from mii_phy_def. features or determined automatically */ u8 address; /* PHY address */ int mode; /* PHY mode */ /* 1: autoneg enabled, 0: disabled */ int autoneg; /* forced speed & duplex (no autoneg) partner speed & duplex & pause (autoneg)*/ int speed; int duplex; int pause; int asym_pause; /* Provided by host chip */ struct net_device *dev; struct device *pdev; int (*mdio_read) (struct net_device *dev, int addr, int reg); void (*mdio_write) (struct net_device *dev, int addr, int reg, int val); }; In case you are not able to use the generic/existing phy interfaces, and want to add support for a new phy interface(xxx_phy_def), you can add this in the phy table. The current table provides support for National/ST and a Generic PHY interface. static struct mii_phy_def *mii_phy_table[] = { &st_phy_def, &national_phy_def, &genmii_phy_def, &xxx_phy_def, NULL }; /* Similarly Define the details of the member function for example: */ static struct mii_phy_def xxx_phy_def = { .phy_id = 0x00000000, .phy_id_mask = 0x00000000, .name = "XXX MII", .ops = &xxx_phy_ops }; /* Make sure to provide in the proper PHY ID and the Mask as defined in the PHY configuration registers of the Phy to properly identify the Phy.*/ /* Define the Operations to be performed on PHY xxx */ static struct mii_phy_ops xxx_phy_ops = { .setup_aneg = xxx_mii_setup_aneg, .setup_forced = xxx_mii_setup_forced, .poll_link = xxx_mii_poll_link, .read_link = xxx_mii_read_link }; |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |