18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* delay.h: Linux delay routines on sparc64. 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (C) 1996, 2004, 2007 David S. Miller (davem@davemloft.net). 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef _SPARC64_DELAY_H 88c2ecf20Sopenharmony_ci#define _SPARC64_DELAY_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_civoid __delay(unsigned long loops); 138c2ecf20Sopenharmony_civoid udelay(unsigned long usecs); 148c2ecf20Sopenharmony_ci#define mdelay(n) udelay((n) * 1000) 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#endif /* !__ASSEMBLY__ */ 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#endif /* _SPARC64_DELAY_H */ 19