lan9303.h 534 B

12345678910111213141516171819
  1. #include <linux/regmap.h>
  2. #include <linux/device.h>
  3. #include <net/dsa.h>
  4. struct lan9303 {
  5. struct device *dev;
  6. struct regmap *regmap;
  7. struct regmap_irq_chip_data *irq_data;
  8. struct gpio_desc *reset_gpio;
  9. u32 reset_duration; /* in [ms] */
  10. bool phy_addr_sel_strap;
  11. struct dsa_switch *ds;
  12. struct mutex indirect_mutex; /* protect indexed register access */
  13. };
  14. extern const struct regmap_access_table lan9303_register_set;
  15. int lan9303_probe(struct lan9303 *chip, struct device_node *np);
  16. int lan9303_remove(struct lan9303 *chip);