Lines Matching refs:cphy
26 #pragma ident "%Z%%M% %I% %E% SMI" /* cphy.h */
53 struct cphy;
57 void (*destroy)(struct cphy *);
58 int (*reset)(struct cphy *, int wait);
60 int (*interrupt_enable)(struct cphy *);
61 int (*interrupt_disable)(struct cphy *);
62 int (*interrupt_clear)(struct cphy *);
63 int (*interrupt_handler)(struct cphy *);
65 int (*autoneg_enable)(struct cphy *);
66 int (*autoneg_disable)(struct cphy *);
67 int (*autoneg_restart)(struct cphy *);
69 int (*advertise)(struct cphy *phy, unsigned int advertise_map);
70 int (*set_loopback)(struct cphy *, int on);
71 int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex);
72 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
77 struct cphy {
100 static inline int mdio_read(struct cphy *cphy, int mmd, int reg,
103 return cphy->mdio_read(cphy->adapter, cphy->addr, mmd, reg, valp);
106 static inline int mdio_write(struct cphy *cphy, int mmd, int reg,
109 return cphy->mdio_write(cphy->adapter, cphy->addr, mmd, reg, val);
112 static inline int simple_mdio_read(struct cphy *cphy, int reg,
115 return mdio_read(cphy, 0, reg, valp);
118 static inline int simple_mdio_write(struct cphy *cphy, int reg,
121 return mdio_write(cphy, 0, reg, val);
125 static inline void cphy_init(struct cphy *phy, adapter_t *adapter,
141 struct cphy *(*create)(adapter_t *adapter, int phy_addr,