delay.h

来自「基于组件方式开发操作系统的OSKIT源代码」· C头文件 代码 · 共 37 行

H
37
字号
#ifndef _I386_DELAY_H#define _I386_DELAY_H#ifdef OSKIT/* A few drivers bogusly include <asm/delay.h> instead of <linux/delay.h>. */#include <linux/delay.h>#else/* * Copyright (C) 1993 Linus Torvalds * * Delay routines calling functions in arch/i386/lib/delay.c */extern void __udelay(unsigned long usecs);extern void __const_udelay(unsigned long usecs);extern void __delay(unsigned long loops);#define udelay(n) (__builtin_constant_p(n) ? \	__const_udelay((n) * 0x10c6ul) : \	__udelay(n))#ifdef OSKIT/* * Not used as a delay anymore. */extern __inline__ unsigned longmuldiv(unsigned long a, unsigned long b, unsigned long c){	return a * b / c;}#endif#endif#endif /* defined(_I386_DELAY_H) */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?