bcm47xx_wdt.h 516 B

123456789101112131415161718192021222324252627
  1. #ifndef LINUX_BCM47XX_WDT_H_
  2. #define LINUX_BCM47XX_WDT_H_
  3. #include <linux/timer.h>
  4. #include <linux/types.h>
  5. #include <linux/watchdog.h>
  6. struct bcm47xx_wdt {
  7. u32 (*timer_set)(struct bcm47xx_wdt *, u32);
  8. u32 (*timer_set_ms)(struct bcm47xx_wdt *, u32);
  9. u32 max_timer_ms;
  10. void *driver_data;
  11. struct watchdog_device wdd;
  12. struct timer_list soft_timer;
  13. atomic_t soft_ticks;
  14. };
  15. static inline void *bcm47xx_wdt_get_drvdata(struct bcm47xx_wdt *wdt)
  16. {
  17. return wdt->driver_data;
  18. }
  19. #endif /* LINUX_BCM47XX_WDT_H_ */