⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 typedef.h

📁 DOS_PCI_DRIVER,DOS环境下运行的PCI驱动程序,个人觉得比较好用.
💻 H
字号:
#ifndef __TYPEDEF_H__
#define __TYPEDEF_H__

#define DEBUG_VERSION 1

#ifdef DEBUG_VERSION
	//#define DEBUG_HARDWARE_INTERRUPT 1
	#define DEBUG_HARDWARE_INTERRUPT_USE_MEMORY 1
#else
	#undef DEBUG_HARDWARE_INTERRUPT
#endif

#ifdef DEBUG_VERSION
	//#define DETAIL_DEBUG 1
#else
	#undef DETAIL_DEBUG
#endif

#define CONFIG_PM 1

#define u8 unsigned char
#define u16 unsigned short
#define u32 unsigned long

#define s8 signed char
#define s16 signed short
#define s32 signed long

typedef struct _s64
{
    u32		Low;
    s32		High;
} s64;

typedef struct _u64
{
    u32		Low;
    u32		High;
} u64;

typedef u32 dma_addr_t;

#define EINVAL 1
#define	ENOENT		 2	/* No such file or directory */
#define	EIO		 3	/* I/O error */
#define	ENXIO		 4	/* No such device or address */
#define	EAGAIN		5	/* Try again */
#define	ENOMEM		6	/* Out of memory */
#define	EBUSY  7	/* Device or resource busy */
#define	EXDEV		8	/* Cross-device link */
#define	ENODEV		9	/* No such device */
#define	ENOSPC		10	/* No space left on device */
#define	EPIPE		11	/* Broken pipe */
#define	ENOSYS		12	/* Function not implemented */
#define	ENOSR		13	/* Out of streams resources */
#define	ENOLINK		14	/* Link has been severed */
#define	ECOMM		15	/* Communication error on send */
#define	EPROTO		16	/* Protocol error */
#define	EOVERFLOW	17	/* Value too large for defined data type */
#define	EILSEQ		18	/* Illegal byte sequence */
#define	ECONNABORTED	19	/* Software caused connection abort */
#define	ECONNRESET	20	/* Connection reset by peer */
#define	ENOTCONN	21	/* Transport endpoint is not connected */
#define	ESHUTDOWN	22	/* Cannot send after transport endpoint shutdown */
#define	ETIMEDOUT	23	/* Connection timed out */
#define	EALREADY	24	/* Operation already in progress */
#define	EINPROGRESS	25	/* Operation now in progress */
#define	EREMOTEIO	26	/* Remote I/O error */
#define ENOFOUND    27 
#define EPROTOL     28  
#define EFBIG       29     
#define	EWOULDBLOCK	EAGAIN	/* Operation would block */

#endif

⌨️ 快捷键说明

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