ReactOS  0.4.15-dev-439-g292f67a
ideuser.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PIO_MODE0   (1 << 0)
 
#define PIO_MODE1   (1 << 1)
 
#define PIO_MODE2   (1 << 2)
 
#define PIO_MODE3   (1 << 3)
 
#define PIO_MODE4   (1 << 4)
 
#define SWDMA_MODE0   (1 << 5)
 
#define SWDMA_MODE1   (1 << 6)
 
#define SWDMA_MODE2   (1 << 7)
 
#define MWDMA_MODE0   (1 << 8)
 
#define MWDMA_MODE1   (1 << 9)
 
#define MWDMA_MODE2   (1 << 10)
 
#define UDMA_MODE0   (1 << 11)
 
#define UDMA_MODE1   (1 << 12)
 
#define UDMA_MODE2   (1 << 13)
 
#define UDMA_MODE3   (1 << 14)
 
#define UDMA_MODE4   (1 << 15)
 
#define UDMA_MODE5   (1 << 16)
 
#define PIO_SUPPORT   (PIO_MODE0 | PIO_MODE1 | PIO_MODE2 | PIO_MODE3 | PIO_MODE4)
 
#define SWDMA_SUPPORT   (SWDMA_MODE0 | SWDMA_MODE1 | SWDMA_MODE2)
 
#define MWDMA_SUPPORT   (MWDMA_MODE0 | MWDMA_MODE1 | MWDMA_MODE2)
 
#define UDMA33_SUPPORT   (UDMA_MODE0 | UDMA_MODE1 | UDMA_MODE2)
 
#define UDMA66_SUPPORT   (UDMA_MODE3 | UDMA_MODE4)
 
#define UDMA100_SUPPORT   (UDMA_MODE5 )
 
#define UDMA_SUPPORT   (UNINITIALIZED_TRANSFER_MODE & (~(PIO_SUPPORT | SWDMA_SUPPORT | MWDMA_SUPPORT)))
 
#define DMA_SUPPORT   (SWDMA_SUPPORT | MWDMA_SUPPORT | UDMA_SUPPORT)
 
#define ALL_MODE_SUPPORT   (PIO_SUPPORT | DMA_SUPPORT)
 
#define PIO0   0
 
#define PIO1   1
 
#define PIO2   2
 
#define PIO3   3
 
#define PIO4   4
 
#define SWDMA0   5
 
#define SWDMA1   6
 
#define SWDMA2   7
 
#define MWDMA0   8
 
#define MWDMA1   9
 
#define MWDMA2   10
 
#define UDMA0   11
 
#define MAX_XFER_MODE   17
 
#define UNINITIALIZED_CYCLE_TIME   0xffffffff
 
#define UNINITIALIZED_TRANSFER_MODE   0x7fffffff
 
#define IS_DEFAULT(mode)   (!(mode & 0x80000000))
 
#define GenTransferModeMask(i, mode)
 
#define GetHighestTransferMode(mode, i)
 
#define GetHighestDMATransferMode(mode, i)
 
#define GetHighestPIOTransferMode(mode, i)
 
#define SetDefaultTiming(timingTable, length)
 

Macro Definition Documentation

◆ ALL_MODE_SUPPORT

#define ALL_MODE_SUPPORT   (PIO_SUPPORT | DMA_SUPPORT)

Definition at line 52 of file ideuser.h.

◆ DMA_SUPPORT

Definition at line 51 of file ideuser.h.

◆ GenTransferModeMask

#define GenTransferModeMask (   i,
  mode 
)
Value:
{\
ULONG temp=0xffffffff; \
mode |= (temp >> (31-(i)));\
}
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
Definition: glfuncs.h:248
static calc_node_t temp
Definition: rpn_ieee.c:38

Definition at line 72 of file ideuser.h.

◆ GetHighestDMATransferMode

#define GetHighestDMATransferMode (   mode,
  i 
)
Value:
{\
ULONG temp=mode >> 5;\
i=5; \
while ( temp) { \
temp = (temp >> 1); \
i++; \
} \
i--; \
}
GLenum mode
Definition: glext.h:6217
static calc_node_t temp
Definition: rpn_ieee.c:38

Definition at line 91 of file ideuser.h.

◆ GetHighestPIOTransferMode

#define GetHighestPIOTransferMode (   mode,
  i 
)
Value:
{ \
ULONG temp = (mode & PIO_SUPPORT); \
i=0; \
temp = temp >> 1; \
while (temp) { \
temp = temp >> 1; \
i++; \
} \
}
#define PIO_SUPPORT
Definition: ideuser.h:43
GLenum mode
Definition: glext.h:6217
static calc_node_t temp
Definition: rpn_ieee.c:38

Definition at line 100 of file ideuser.h.

◆ GetHighestTransferMode

#define GetHighestTransferMode (   mode,
  i 
)
Value:
{\
ULONG temp=(mode); \
ASSERT(temp); \
i=0; \
while ( temp) { \
temp = (temp >> 1);\
i++;\
} \
i--; \
}
GLenum mode
Definition: glext.h:6217
static calc_node_t temp
Definition: rpn_ieee.c:38

Definition at line 80 of file ideuser.h.

◆ IS_DEFAULT

#define IS_DEFAULT (   mode)    (!(mode & 0x80000000))

Definition at line 70 of file ideuser.h.

◆ MAX_XFER_MODE

#define MAX_XFER_MODE   17

Definition at line 67 of file ideuser.h.

◆ MWDMA0

#define MWDMA0   8

Definition at line 62 of file ideuser.h.

◆ MWDMA1

#define MWDMA1   9

Definition at line 63 of file ideuser.h.

◆ MWDMA2

#define MWDMA2   10

Definition at line 64 of file ideuser.h.

◆ MWDMA_MODE0

#define MWDMA_MODE0   (1 << 8)

Definition at line 32 of file ideuser.h.

◆ MWDMA_MODE1

#define MWDMA_MODE1   (1 << 9)

Definition at line 33 of file ideuser.h.

◆ MWDMA_MODE2

#define MWDMA_MODE2   (1 << 10)

Definition at line 34 of file ideuser.h.

◆ MWDMA_SUPPORT

#define MWDMA_SUPPORT   (MWDMA_MODE0 | MWDMA_MODE1 | MWDMA_MODE2)

Definition at line 45 of file ideuser.h.

◆ PIO0

#define PIO0   0

Definition at line 54 of file ideuser.h.

◆ PIO1

#define PIO1   1

Definition at line 55 of file ideuser.h.

◆ PIO2

#define PIO2   2

Definition at line 56 of file ideuser.h.

◆ PIO3

#define PIO3   3

Definition at line 57 of file ideuser.h.

◆ PIO4

#define PIO4   4

Definition at line 58 of file ideuser.h.

◆ PIO_MODE0

#define PIO_MODE0   (1 << 0)

Definition at line 22 of file ideuser.h.

◆ PIO_MODE1

#define PIO_MODE1   (1 << 1)

Definition at line 23 of file ideuser.h.

◆ PIO_MODE2

#define PIO_MODE2   (1 << 2)

Definition at line 24 of file ideuser.h.

◆ PIO_MODE3

#define PIO_MODE3   (1 << 3)

Definition at line 25 of file ideuser.h.

◆ PIO_MODE4

#define PIO_MODE4   (1 << 4)

Definition at line 26 of file ideuser.h.

◆ PIO_SUPPORT

#define PIO_SUPPORT   (PIO_MODE0 | PIO_MODE1 | PIO_MODE2 | PIO_MODE3 | PIO_MODE4)

Definition at line 43 of file ideuser.h.

◆ SetDefaultTiming

#define SetDefaultTiming (   timingTable,
  length 
)
Value:
{\
timingTable[0]=PIO_MODE0_CYCLE_TIME; \
timingTable[1]=PIO_MODE1_CYCLE_TIME; \
timingTable[2]=PIO_MODE2_CYCLE_TIME; \
timingTable[3]=PIO_MODE3_CYCLE_TIME; \
timingTable[4]=PIO_MODE4_CYCLE_TIME; \
timingTable[5]=SWDMA_MODE0_CYCLE_TIME; \
timingTable[6]=SWDMA_MODE1_CYCLE_TIME; \
timingTable[7]=SWDMA_MODE2_CYCLE_TIME; \
timingTable[8]=MWDMA_MODE0_CYCLE_TIME; \
timingTable[9]=MWDMA_MODE1_CYCLE_TIME; \
timingTable[10]=MWDMA_MODE2_CYCLE_TIME; \
timingTable[11]=UDMA_MODE0_CYCLE_TIME; \
timingTable[12]=UDMA_MODE1_CYCLE_TIME; \
timingTable[13]=UDMA_MODE2_CYCLE_TIME; \
timingTable[14]=UDMA_MODE3_CYCLE_TIME; \
timingTable[15]=UDMA_MODE4_CYCLE_TIME; \
timingTable[16]=UDMA_MODE5_CYCLE_TIME; \
length = MAX_XFER_MODE; \
}
#define MAX_XFER_MODE
Definition: ideuser.h:67

Definition at line 110 of file ideuser.h.

◆ SWDMA0

#define SWDMA0   5

Definition at line 59 of file ideuser.h.

◆ SWDMA1

#define SWDMA1   6

Definition at line 60 of file ideuser.h.

◆ SWDMA2

#define SWDMA2   7

Definition at line 61 of file ideuser.h.

◆ SWDMA_MODE0

#define SWDMA_MODE0   (1 << 5)

Definition at line 28 of file ideuser.h.

◆ SWDMA_MODE1

#define SWDMA_MODE1   (1 << 6)

Definition at line 29 of file ideuser.h.

◆ SWDMA_MODE2

#define SWDMA_MODE2   (1 << 7)

Definition at line 30 of file ideuser.h.

◆ SWDMA_SUPPORT

#define SWDMA_SUPPORT   (SWDMA_MODE0 | SWDMA_MODE1 | SWDMA_MODE2)

Definition at line 44 of file ideuser.h.

◆ UDMA0

#define UDMA0   11

Definition at line 65 of file ideuser.h.

◆ UDMA100_SUPPORT

#define UDMA100_SUPPORT   (UDMA_MODE5 )

Definition at line 48 of file ideuser.h.

◆ UDMA33_SUPPORT

#define UDMA33_SUPPORT   (UDMA_MODE0 | UDMA_MODE1 | UDMA_MODE2)

Definition at line 46 of file ideuser.h.

◆ UDMA66_SUPPORT

#define UDMA66_SUPPORT   (UDMA_MODE3 | UDMA_MODE4)

Definition at line 47 of file ideuser.h.

◆ UDMA_MODE0

#define UDMA_MODE0   (1 << 11)

Definition at line 36 of file ideuser.h.

◆ UDMA_MODE1

#define UDMA_MODE1   (1 << 12)

Definition at line 37 of file ideuser.h.

◆ UDMA_MODE2

#define UDMA_MODE2   (1 << 13)

Definition at line 38 of file ideuser.h.

◆ UDMA_MODE3

#define UDMA_MODE3   (1 << 14)

Definition at line 39 of file ideuser.h.

◆ UDMA_MODE4

#define UDMA_MODE4   (1 << 15)

Definition at line 40 of file ideuser.h.

◆ UDMA_MODE5

#define UDMA_MODE5   (1 << 16)

Definition at line 41 of file ideuser.h.

◆ UDMA_SUPPORT

Definition at line 49 of file ideuser.h.

◆ UNINITIALIZED_CYCLE_TIME

#define UNINITIALIZED_CYCLE_TIME   0xffffffff

Definition at line 68 of file ideuser.h.

◆ UNINITIALIZED_TRANSFER_MODE

#define UNINITIALIZED_TRANSFER_MODE   0x7fffffff

Definition at line 69 of file ideuser.h.