![]() |
|
|||
0001 /* 0002 * This file is subject to the terms and conditions of the GNU General Public 0003 * License. See the file "COPYING" in the main directory of this archive 0004 * for more details. 0005 * 0006 * Copyright (C) 1994 by Waldorf Electronics 0007 * Copyright (C) 1995 - 2000, 01, 03 by Ralf Baechle 0008 * Copyright (C) 1999, 2000 Silicon Graphics, Inc. 0009 * Copyright (C) 2007 Maciej W. Rozycki 0010 */ 0011 #ifndef _ASM_DELAY_H 0012 #define _ASM_DELAY_H 0013 0014 #include <linux/param.h> 0015 0016 extern void __delay(unsigned long loops); 0017 extern void __ndelay(unsigned long ns); 0018 extern void __udelay(unsigned long us); 0019 0020 #define ndelay(ns) __ndelay(ns) 0021 #define udelay(us) __udelay(us) 0022 0023 /* make sure "usecs *= ..." in udelay do not overflow. */ 0024 #if HZ >= 1000 0025 #define MAX_UDELAY_MS 1 0026 #elif HZ <= 200 0027 #define MAX_UDELAY_MS 5 0028 #else 0029 #define MAX_UDELAY_MS (1000 / HZ) 0030 #endif 0031 0032 #endif /* _ASM_DELAY_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |