1/* 2 * Copyright (c) 2012, The Linux Foundation. All rights reserved. 3 * Permission to use, copy, modify, and/or distribute this software for 4 * any purpose with or without fee is hereby granted, provided that the 5 * above copyright notice and this permission notice appear in all copies. 6 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 7 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 8 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 9 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 10 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 11 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 12 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 13 */ 14 15#ifndef _AOS_TIMER_PVT_H 16#define _AOS_TIMER_PVT_H 17 18#ifdef KVER26 19#include <linux/jiffies.h> 20#endif 21#include <linux/delay.h> 22#include <linux/timer.h> 23 24 25/* 26 * timer data type 27 */ 28typedef struct timer_list __aos_timer_t; 29 30 31static inline void 32__aos_udelay(int usecs) 33{ 34 udelay(usecs); 35} 36 37static inline void 38__aos_mdelay(int msecs) 39{ 40 mdelay(msecs); 41} 42 43#endif /*_AOS_TIMER_PVT_H*/ 44