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

📄 sysdep-2.4.h

📁 盛博can驱动程序功能很全
💻 H
字号:
/*
 * sysdep-2.4.h -- a trial to centralize changes between 2.2.14 and 2.4.x
 *
 */


#ifndef _SYSDEP_24_H_
#define _SYSDEP_24_H_
#endif

#ifndef LINUX_VERSION_CODE
#  include <linux/version.h>
#endif

#ifndef VERSION_CODE
#  define VERSION_CODE(vers,rel,seq) ( ((vers)<<16) | ((rel)<<8) | (seq) )
#endif

/* only allow 2.4.x and 2.4.y */

#if LINUX_VERSION_CODE < VERSION_CODE(2,2,14)
#  error "This kernel is too old: not supported by this file"
#endif

#if ((LINUX_VERSION_CODE > VERSION_CODE(2,3,0))&& \
		(LINUX_VERSION_CODE < VERSION_CODE(2,4,0)))
#  error "This kernel is not stable: not supported by this file"
#endif

#if LINUX_VERSION_CODE < VERSION_CODE(2,4,0)
#  define LINUX_22
#else
#  define LINUX_24
#endif

#if LINUX_VERSION_CODE < VERSION_CODE(2,4,0)
#  define wait_queue_head_t     struct  wait_queue *
#endif

#if LINUX_VERSION_CODE > VERSION_CODE(2,4,0)
#include <linux/init.h>
#include <linux/poll.h>
#else
#include <linux/poll.h>

#define init_waitqueue_head(a) \
                do { if (a!=0) (wait_queue_head_t )*a=NULL;} while (0)
#endif


#if LINUX_VERSION_CODE < VERSION_CODE(2,4,0)

#endif

⌨️ 快捷键说明

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