54#ifndef FOUR_BYTE_DEFINED
55#define FOUR_BYTE_DEFINED
80#define WHICH_BIT(Data, Bit) { \
81 for (Bit = 0; Bit < 32; Bit++) { \
82 if ((Data >> Bit) == 1) { \
88#define PAGE_MASK (PAGE_SIZE-1)
90#define ntohs(x) ( (((USHORT)x[0])<<8) | x[1] )
91#define PLAY_ACTIVE(DeviceExtension) (((PCDROM_DATA)(DeviceExtension + 1))->PlayActive)
92#define MSF_TO_LBA(Minutes,Seconds,Frames) \
93 (ULONG)((60 * 75 * (Minutes)) + (75 * (Seconds)) + ((Frames) - 150))
94#define LBA_TO_MSF(Lba,Minutes,Seconds,Frames) \
96 (Minutes) = (UCHAR)(Lba / (60 * 75)); \
97 (Seconds) = (UCHAR)((Lba % (60 * 75)) / 75); \
98 (Frames) = (UCHAR)((Lba % (60 * 75)) % 75); \
100#define DEC_TO_BCD(x) (((x / 10) << 4) + (x % 10))
108 for(i=0; i<(b); i++) { \
110 c = (ULONG)(*(((PUCHAR)(a))+i)); \
111 KdPrint(("%2.2x ",c)); \
112 if ((i & 0x0f) == 0x0f) KdPrint(("\n")); \
117#define DbgDumpRegTranslation(chan, idx) \
118 KdPrint2((PRINT_PREFIX \
119 " IO_%#x (%#x), %s:\n", \
121 chan->RegTranslation[idx].Addr, \
122 chan->RegTranslation[idx].Proc ? "Proc" : ( \
123 chan->RegTranslation[idx].MemIo ? "Mem" : "IO"))); \
125#define BrutePoint() { ASSERT(0); }
127#define DbgAllocatePool(x,y) ExAllocatePool(x,y)
128#define DbgFreePool(x) ExFreePool(x)
129#define DbgAllocatePoolWithTag(a,b,c) ExAllocatePoolWithTag(a,b,c)
133#define KdDump(a,b) {}
135#define DbgDumpRegTranslation(chan, idx) {}
137#define DbgAllocatePool(x,y) ExAllocatePool(x,y)
138#define DbgFreePool(x) ExFreePool(x)
139#define DbgAllocatePoolWithTag(a,b,c) ExAllocatePoolWithTag(a,b,c)
141#define BrutePoint() {}
147#define WAIT_FOR_XXX_EMU_DELAY DEF_I64(5000000)
156#define max(a,b) (((a) > (b)) ? (a) : (b))
160#define min(a,b) (((a) < (b)) ? (a) : (b))
195#define PtrOffset(BASE,OFFSET) ((ULONG)((ULONG)(OFFSET) - (ULONG)(BASE)))
198#define offsetof(type, field) (ULONG)&(((type *)0)->field)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i