int (*get_port_link)(struct switch_dev *dev, int port,
struct switch_port_link *link);
+ int (*set_port_link)(struct switch_dev *dev, int port,
+ struct switch_port_link *link);
int (*get_port_stats)(struct switch_dev *dev, int port,
struct switch_port_stats *stats);
+
+ int (*phy_read16)(struct switch_dev *dev, int addr, u8 reg, u16 *value);
+ int (*phy_write16)(struct switch_dev *dev, int addr, u8 reg, u16 value);
};
struct switch_dev {
struct mutex sw_mutex;
struct switch_port *portbuf;
struct switch_portmap *portmap;
+ struct switch_port_link linkbuf;
char buf[128];
const char *s;
u32 i;
struct switch_port *ports;
+ struct switch_port_link *link;
} value;
};
int max;
};
+int switch_generic_set_link(struct switch_dev *dev, int port,
+ struct switch_port_link *link);
+
#endif /* _LINUX_SWITCH_H */