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