18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  S390 version
48c2ecf20Sopenharmony_ci *    Copyright IBM Corp. 1999
58c2ecf20Sopenharmony_ci *    Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com)
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci *  Derived from "include/asm-i386/delay.h"
88c2ecf20Sopenharmony_ci *    Copyright (C) 1993 Linus Torvalds
98c2ecf20Sopenharmony_ci *
108c2ecf20Sopenharmony_ci *  Delay routines calling functions in arch/s390/lib/delay.c
118c2ecf20Sopenharmony_ci */
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#ifndef _S390_DELAY_H
148c2ecf20Sopenharmony_ci#define _S390_DELAY_H
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_civoid __ndelay(unsigned long long nsecs);
178c2ecf20Sopenharmony_civoid __udelay(unsigned long long usecs);
188c2ecf20Sopenharmony_civoid udelay_simple(unsigned long long usecs);
198c2ecf20Sopenharmony_civoid __delay(unsigned long loops);
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#define ndelay(n) __ndelay((unsigned long long) (n))
228c2ecf20Sopenharmony_ci#define udelay(n) __udelay((unsigned long long) (n))
238c2ecf20Sopenharmony_ci#define mdelay(n) __udelay((unsigned long long) (n) * 1000)
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif /* defined(_S390_DELAY_H) */
26