|
@@ -1,30 +1,9 @@
|
|
#ifndef _OSDEF_H_
|
|
#ifndef _OSDEF_H_
|
|
#define _OSDEF_H_
|
|
#define _OSDEF_H_
|
|
|
|
|
|
-#define LINUX_KERNEL
|
|
|
|
-
|
|
|
|
-/**********************************************************************/
|
|
|
|
-#ifdef LINUX_KERNEL
|
|
|
|
-//#include <linux/config.h>
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-/**********************************************************************/
|
|
|
|
-#ifdef LINUX_KERNEL
|
|
|
|
-#define LINUX
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
-/**********************************************************************/
|
|
|
|
-#ifdef LINUX_KERNEL
|
|
|
|
#define XGI_SetMemory(MemoryAddress,MemorySize,value) memset(MemoryAddress, value, MemorySize)
|
|
#define XGI_SetMemory(MemoryAddress,MemorySize,value) memset(MemoryAddress, value, MemorySize)
|
|
-#endif
|
|
|
|
-/**********************************************************************/
|
|
|
|
-
|
|
|
|
-/**********************************************************************/
|
|
|
|
|
|
|
|
-#ifdef LINUX_KERNEL
|
|
|
|
#define XGI_MemoryCopy(Destination,Soruce,Length) memcpy(Destination,Soruce,Length)
|
|
#define XGI_MemoryCopy(Destination,Soruce,Length) memcpy(Destination,Soruce,Length)
|
|
-#endif
|
|
|
|
|
|
|
|
/**********************************************************************/
|
|
/**********************************************************************/
|
|
|
|
|
|
@@ -52,33 +31,11 @@
|
|
#undef InPortLong
|
|
#undef InPortLong
|
|
#endif /* InPortLong */
|
|
#endif /* InPortLong */
|
|
|
|
|
|
-/**********************************************************************/
|
|
|
|
-/* TC */
|
|
|
|
-/**********************************************************************/
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-/**********************************************************************/
|
|
|
|
-/* LINUX XF86 */
|
|
|
|
-/**********************************************************************/
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-#ifdef LINUX_KERNEL
|
|
|
|
#define OutPortByte(p,v) outb((u8)(v),(p))
|
|
#define OutPortByte(p,v) outb((u8)(v),(p))
|
|
#define OutPortWord(p,v) outw((u16)(v),(p))
|
|
#define OutPortWord(p,v) outw((u16)(v),(p))
|
|
#define OutPortLong(p,v) outl((u32)(v),(p))
|
|
#define OutPortLong(p,v) outl((u32)(v),(p))
|
|
#define InPortByte(p) inb(p)
|
|
#define InPortByte(p) inb(p)
|
|
#define InPortWord(p) inw(p)
|
|
#define InPortWord(p) inw(p)
|
|
#define InPortLong(p) inl(p)
|
|
#define InPortLong(p) inl(p)
|
|
-#endif
|
|
|
|
-
|
|
|
|
-/**********************************************************************/
|
|
|
|
-/* WIN 2000 */
|
|
|
|
-/**********************************************************************/
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-/**********************************************************************/
|
|
|
|
-/* WIN CE */
|
|
|
|
-/**********************************************************************/
|
|
|
|
|
|
|
|
#endif // _OSDEF_H_
|
|
#endif // _OSDEF_H_
|