/**************************************************************************** * Copyright (c) 2006 DST Technologies Inc. All Rights Reserved. * * Module: LLD_OS * * Description: This file contains Lowest Level Driver local definitions * * Notes: Generally this will be an os specific file only. The * #ifdef __KERNEL__ directive is included to aid in using win9X * to easily find common compile errors. * ***************************************************************************/ #ifndef _LLD_OS_H #define _LLD_OS_H #ifdef __KERNEL__ #include #include #include /* A fix to allow existing sources and makefiles to be used with newer * kernels (>= 2.4.11). The fix can be removed once we collectively * correct our <2.4.11 build environments, whose kernel-sources system * headers are missing modversions.h. */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,11) #if !defined(EXPORT_SYMTAB) #if defined(EXPORT_SYMBOL) #undef EXPORT_SYMBOL #endif #define EXPORT_SYMBOL(x) #endif #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0) #error Kernel 2.2.0 or higher is required to build this module. #endif #include #include #include #include //#include #include #include #include #include #include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0) #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15) #include #endif #endif #include #include #include #include #include #include #define _STDIO_H // NO STDIO IN A KERNEL MODULE!!! #endif // __KERNEL__ #endif // _LLD_OS_H