xref: /openbmc/linux/arch/s390/include/asm/delay.h (revision bc5aa3a0)
1 /*
2  *  S390 version
3  *    Copyright IBM Corp. 1999
4  *    Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
5  *
6  *  Derived from "include/asm-i386/delay.h"
7  *    Copyright (C) 1993 Linus Torvalds
8  *
9  *  Delay routines calling functions in arch/s390/lib/delay.c
10  */
11 
12 #ifndef _S390_DELAY_H
13 #define _S390_DELAY_H
14 
15 void __ndelay(unsigned long long nsecs);
16 void __udelay(unsigned long long usecs);
17 void udelay_simple(unsigned long long usecs);
18 void __delay(unsigned long loops);
19 
20 #define ndelay(n) __ndelay((unsigned long long) (n))
21 #define udelay(n) __udelay((unsigned long long) (n))
22 #define mdelay(n) __udelay((unsigned long long) (n) * 1000)
23 
24 #endif /* defined(_S390_DELAY_H) */
25