User Tools

Site Tools


phy.h

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
phy.h [2018/12/27 14:42]
rpjday [struct phy]
phy.h [2018/12/27 14:49] (current)
rpjday [struct phy_lookup]
Line 20: Line 20:
 </​code>​ </​code>​
  
-==== Attributes ​====+==== struct phy_attrs and PHY mode ====
  
 <​code>​ <​code>​
Line 50: Line 50:
         PHY_MODE_UFS_HS_B,​         PHY_MODE_UFS_HS_B,​
         PHY_MODE_PCIE,​         PHY_MODE_PCIE,​
 +};
 +</​code>​
 +
 +==== struct phy_ops ====
 +
 +<​code>​
 +struct phy_ops {
 +        int     ​(*init)(struct phy *phy);
 +        int     ​(*exit)(struct phy *phy);
 +        int     ​(*power_on)(struct phy *phy);
 +        int     ​(*power_off)(struct phy *phy);
 +        int     ​(*set_mode)(struct phy *phy, enum phy_mode mode);
 +        int     ​(*reset)(struct phy *phy);
 +        int     ​(*calibrate)(struct phy *phy);
 +        struct module *owner;
 +};
 +</​code>​
 +
 +==== struct phy_provider ====
 +
 +<​code>​
 +struct phy_provider {
 +        struct device ​          *dev;
 +        struct device_node ​     *children;
 +        struct module ​          ​*owner;​
 +        struct list_head ​       list;
 +        struct phy * (*of_xlate)(struct device *dev,
 +                struct of_phandle_args *args);
 +};
 +</​code>​
 +
 +==== struct phy_lookup ====
 +
 +<​code>​
 +struct phy_lookup {
 +        struct list_head node;
 +        const char *dev_id;
 +        const char *con_id;
 +        struct phy *phy;
 }; };
 </​code>​ </​code>​
phy.h.1545921757.txt.gz ยท Last modified: 2018/12/27 14:42 by rpjday