machdep.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _M68K_MACHDEP_H
  3. #define _M68K_MACHDEP_H
  4. #include <linux/seq_file.h>
  5. #include <linux/interrupt.h>
  6. #include <linux/time.h>
  7. struct pt_regs;
  8. struct mktime;
  9. struct rtc_time;
  10. struct rtc_pll_info;
  11. struct buffer_head;
  12. extern void (*mach_sched_init) (void);
  13. /* machine dependent irq functions */
  14. extern void (*mach_init_IRQ) (void);
  15. extern void (*mach_get_model) (char *model);
  16. extern void (*mach_get_hardware_list) (struct seq_file *m);
  17. /* machine dependent timer functions */
  18. extern int (*mach_hwclk)(int, struct rtc_time*);
  19. extern int (*mach_get_rtc_pll)(struct rtc_pll_info *);
  20. extern int (*mach_set_rtc_pll)(struct rtc_pll_info *);
  21. extern void (*mach_reset)( void );
  22. extern void (*mach_halt)( void );
  23. extern unsigned long (*mach_hd_init) (unsigned long, unsigned long);
  24. extern void (*mach_hd_setup)(char *, int *);
  25. extern void (*mach_heartbeat) (int);
  26. extern void (*mach_l2_flush) (int);
  27. extern void (*mach_beep) (unsigned int, unsigned int);
  28. /* Hardware clock functions */
  29. extern void hw_timer_init(void);
  30. #ifdef CONFIG_HEARTBEAT
  31. extern void timer_heartbeat(void);
  32. #else
  33. static inline void timer_heartbeat(void)
  34. {
  35. }
  36. #endif
  37. extern void config_BSP(char *command, int len);
  38. #endif /* _M68K_MACHDEP_H */