/* Public domain. */ #ifndef _LINUX_DELAY_H #define _LINUX_DELAY_H #include static inline void udelay(unsigned long usecs) { DELAY(usecs); } static inline void ndelay(unsigned long nsecs) { DELAY(MAX(nsecs / 1000, 1)); } static inline void usleep_range(unsigned long min, unsigned long max) { DELAY(min); } static inline void mdelay(unsigned long msecs) { int loops = msecs; while (loops--) DELAY(1000); } #define drm_msleep(x) mdelay(x) #endif