/*1* This file is subject to the terms and conditions of the GNU General Public2* License. See the file "COPYING" in the main directory of this archive3* for more details.4*5* Copyright (C) 1994 by Waldorf Electronics6* Copyright (C) 1995 - 2000, 01, 03 by Ralf Baechle7* Copyright (C) 1999, 2000 Silicon Graphics, Inc.8* Copyright (C) 2007 Maciej W. Rozycki9*/10#ifndef _ASM_DELAY_H11#define _ASM_DELAY_H1213#include <linux/param.h>1415extern void __delay(unsigned long loops);16extern void __ndelay(unsigned long ns);17extern void __udelay(unsigned long us);1819#define ndelay(ns) __ndelay(ns)20#define udelay(us) __udelay(us)2122/* make sure "usecs *= ..." in udelay do not overflow. */23#if HZ >= 100024#define MAX_UDELAY_MS 125#elif HZ <= 20026#define MAX_UDELAY_MS 527#else28#define MAX_UDELAY_MS (1000 / HZ)29#endif3031#endif /* _ASM_DELAY_H */323334