1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Freescale General-purpose Timers Module 4 * 5 * Copyright 2006 Freescale Semiconductor, Inc. 6 * Shlomi Gridish <gridish@freescale.com> 7 * Jerry Huang <Chang-Ming.Huang@freescale.com> 8 * Copyright (c) MontaVista Software, Inc. 2008. 9 * Anton Vorontsov <avorontsov@ru.mvista.com> 10 */ 11 12 #ifndef __ASM_FSL_GTM_H 13 #define __ASM_FSL_GTM_H 14 15 #include <linux/types.h> 16 17 struct gtm; 18 19 struct gtm_timer { 20 unsigned int irq; 21 22 struct gtm *gtm; 23 bool requested; 24 u8 __iomem *gtcfr; 25 __be16 __iomem *gtmdr; 26 __be16 __iomem *gtpsr; 27 __be16 __iomem *gtcnr; 28 __be16 __iomem *gtrfr; 29 __be16 __iomem *gtevr; 30 }; 31 32 extern struct gtm_timer *gtm_get_timer16(void); 33 extern struct gtm_timer *gtm_get_specific_timer16(struct gtm *gtm, 34 unsigned int timer); 35 extern void gtm_put_timer16(struct gtm_timer *tmr); 36 extern int gtm_set_timer16(struct gtm_timer *tmr, unsigned long usec, 37 bool reload); 38 extern int gtm_set_exact_timer16(struct gtm_timer *tmr, u16 usec, 39 bool reload); 40 extern void gtm_stop_timer16(struct gtm_timer *tmr); 41 extern void gtm_ack_timer16(struct gtm_timer *tmr, u16 events); 42 43 #endif /* __ASM_FSL_GTM_H */ 44
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.