18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * OpenRISC timer API 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (C) 2017 by Stafford Horne (shorne@gmail.com) 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 78c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 88c2ecf20Sopenharmony_ci * for more details. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#ifndef __ASM_OR1K_TIME_H 118c2ecf20Sopenharmony_ci#define __ASM_OR1K_TIME_H 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciextern void openrisc_clockevent_init(void); 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciextern void openrisc_timer_set(unsigned long count); 168c2ecf20Sopenharmony_ciextern void openrisc_timer_set_next(unsigned long delta); 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#ifdef CONFIG_SMP 198c2ecf20Sopenharmony_ciextern void synchronise_count_master(int cpu); 208c2ecf20Sopenharmony_ciextern void synchronise_count_slave(int cpu); 218c2ecf20Sopenharmony_ci#endif 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#endif /* __ASM_OR1K_TIME_H */ 24