Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * S390 version |
Heiko Carstens | a53c8fa | 2012-07-20 11:15:04 +0200 | [diff] [blame] | 3 | * Copyright IBM Corp. 1999 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Heiko Carstens | b396637 | 2011-05-26 09:48:28 +0200 | [diff] [blame] | 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); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
Heiko Carstens | b396637 | 2011-05-26 09:48:28 +0200 | [diff] [blame] | 20 | #define ndelay(n) __ndelay((unsigned long long) (n)) |
Heiko Carstens | 0cd6a40 | 2009-10-06 10:34:05 +0200 | [diff] [blame] | 21 | #define udelay(n) __udelay((unsigned long long) (n)) |
| 22 | #define mdelay(n) __udelay((unsigned long long) (n) * 1000) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | |
| 24 | #endif /* defined(_S390_DELAY_H) */ |