4 /* #define WINCE_HEADER*/
8 /* #define LINUX_XF86 */
10 /**********************************************************************/
12 //#include <linux/config.h>
16 /**********************************************************************/
30 /**********************************************************************/
32 #define XGI_SetMemory(MemoryAddress,MemorySize,value) memset(MemoryAddress, value, MemorySize);
35 #define XGI_SetMemory(MemoryAddress,MemorySize,value) MemFill((PVOID) MemoryAddress,(ULONG) MemorySize,(UCHAR) value);
38 #define XGI_SetMemory(MemoryAddress,MemorySize,value) memset(MemoryAddress, value, MemorySize);
41 #define XGI_SetMemory(MemoryAddress,MemorySize,value) memset(MemoryAddress, value, MemorySize)
44 #define XGI_SetMemory(MemoryAddress,MemorySize,value) memset(MemoryAddress, value, MemorySize)
46 /**********************************************************************/
48 /**********************************************************************/
51 #define XGI_MemoryCopy(Destination,Soruce,Length) memmove(Destination, Soruce, Length);
54 #define XGI_MemoryCopy(Destination,Soruce,Length) /*VideoPortMoveMemory((PUCHAR)Destination , Soruce,length);*/
57 #define XGI_MemoryCopy(Destination,Soruce,Length) memmove(Destination, Soruce, Length);
60 #define XGI_MemoryCopy(Destination,Soruce,Length) memcpy(Destination,Soruce,Length)
63 #define XGI_MemoryCopy(Destination,Soruce,Length) memcpy(Destination,Soruce,Length)
66 /**********************************************************************/
70 #endif /* OutPortByte */
74 #endif /* OutPortWord */
78 #endif /* OutPortLong */
82 #endif /* InPortByte */
86 #endif /* InPortWord */
90 #endif /* InPortLong */
92 /**********************************************************************/
94 /**********************************************************************/
97 #define OutPortByte(p,v) outp((unsigned short)(p),(unsigned char)(v))
98 #define OutPortWord(p,v) outp((unsigned short)(p),(unsigned short)(v))
99 #define OutPortLong(p,v) outp((unsigned short)(p),(unsigned long)(v))
100 #define InPortByte(p) inp((unsigned short)(p))
101 #define InPortWord(p) inp((unsigned short)(p))
102 #define InPortLong(p) ((inp((unsigned short)(p+2))<<16) | inp((unsigned short)(p)))
105 /**********************************************************************/
107 /**********************************************************************/
110 #define OutPortByte(p,v) outb((CARD16)(p),(CARD8)(v))
111 #define OutPortWord(p,v) outw((CARD16)(p),(CARD16)(v))
112 #define OutPortLong(p,v) outl((CARD16)(p),(CARD32)(v))
113 #define InPortByte(p) inb((CARD16)(p))
114 #define InPortWord(p) inw((CARD16)(p))
115 #define InPortLong(p) inl((CARD16)(p))
119 #define OutPortByte(p,v) outb((u8)(v),(p))
120 #define OutPortWord(p,v) outw((u16)(v),(p))
121 #define OutPortLong(p,v) outl((u32)(v),(p))
122 #define InPortByte(p) inb(p)
123 #define InPortWord(p) inw(p)
124 #define InPortLong(p) inl(p)
127 /**********************************************************************/
129 /**********************************************************************/
132 #define OutPortByte(p,v) VideoPortWritePortUchar ((PUCHAR) (p), (UCHAR) (v))
133 #define OutPortWord(p,v) VideoPortWritePortUshort((PUSHORT) (p), (USHORT) (v))
134 #define OutPortLong(p,v) VideoPortWritePortUlong ((PULONG) (p), (ULONG) (v))
135 #define InPortByte(p) VideoPortReadPortUchar ((PUCHAR) (p))
136 #define InPortWord(p) VideoPortReadPortUshort ((PUSHORT) (p))
137 #define InPortLong(p) VideoPortReadPortUlong ((PULONG) (p))
141 /**********************************************************************/
143 /**********************************************************************/
146 #define OutPortByte(p,v) WRITE_PORT_UCHAR ((PUCHAR) (p), (UCHAR) (v))
147 #define OutPortWord(p,v) WRITE_PORT_USHORT((PUSHORT) (p), (USHORT) (v))
148 #define OutPortLong(p,v) WRITE_PORT_ULONG ((PULONG) (p), (ULONG) (v))
149 #define InPortByte(p) READ_PORT_UCHAR ((PUCHAR) (p))
150 #define InPortWord(p) READ_PORT_USHORT ((PUSHORT) (p))
151 #define InPortLong(p) READ_PORT_ULONG ((PULONG) (p))