cevt-r4k.h 823 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 2008 Kevin D. Kissell
  7. */
  8. /*
  9. * Definitions used for common event timer implementation
  10. * for MIPS 4K-type processors and their MIPS MT variants.
  11. * Avoids unsightly extern declarations in C files.
  12. */
  13. #ifndef __ASM_CEVT_R4K_H
  14. #define __ASM_CEVT_R4K_H
  15. #include <linux/clockchips.h>
  16. #include <asm/time.h>
  17. DECLARE_PER_CPU(struct clock_event_device, mips_clockevent_device);
  18. void mips_event_handler(struct clock_event_device *dev);
  19. int c0_compare_int_usable(void);
  20. irqreturn_t c0_compare_interrupt(int, void *);
  21. extern struct irqaction c0_compare_irqaction;
  22. extern int cp0_timer_irq_installed;
  23. #endif /* __ASM_CEVT_R4K_H */