#ifndef _VIAPUBRAID_H_ #define _VIAPUBRAID_H_ #include #include #ifdef MODVERSIONS #include #endif #ifdef MODULE #include #ifdef VIA_DEFINE_VERSION #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0) char kernel_version[] = UTS_RELEASE; #endif #endif #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) /* 0x20300 */ #include #else #include #endif #include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0) #include #endif #include "scsi.h" #include "sd.h" #include "hosts.h" #include "constants.h" #include #include #ifndef LINUX_VERSION_CODE #include #endif #ifndef FALSE #define FALSE 0 #endif #ifndef TRUE #define TRUE 1 #endif #ifndef NULL #define NULL '\0' // Null pointer #endif #ifndef IN #define IN #endif #ifndef OUT #define OUT #endif #ifndef OPTIONAL #define OPTIONAL #endif #ifndef NOTHING #define NOTHING #endif #ifndef CRITICAL #define CRITICAL #endif #ifndef max #define max(a,b) (((a) > (b)) ? (a) : (b)) #endif #ifndef min #define min(a,b) (((a) < (b)) ? (a) : (b)) #endif //type define //typedef void VOID; typedef int INT; // i typedef unsigned int UINT; // u typedef int BOOL; // f typedef unsigned char BYTE; // b typedef unsigned short WORD; // w typedef u32 DWORD; // dw //typedef char CHAR; // ch //typedef unsigned char UCHAR; // uch //typedef short SHORT; // s //typedef unsigned short USHORT; // us typedef s32 LONG; // l typedef u32 ULONG; // ul typedef unsigned long ULONG_PTR; typedef s64 __int64; //typedef VOID *PVOID; // p typedef INT *PINT; // pi typedef UINT *PUINT; // pu typedef BYTE *PBYTE; // pb typedef WORD *PWORD; // pw typedef DWORD *PDWORD; // pdw //typedef CHAR *PCHAR; // pch //typedef SHORT *PSHORT; // ps //typedef LONG *PLONG; // pl //typedef UCHAR *PUCHAR; // puch //typedef USHORT *PUSHORT; // pus //typedef ULONG *PULONG; // pul typedef BOOL *PBOOL; // pf typedef UINT POOL_TYPE; typedef size_t SIZE_T; #define UIntToPtr (unsigned long) #define PtrToUlong (unsigned long) #endif