SDC C-Project CF Review 프로그램
LYW
2021-09-23 c08b701c90c8998b241c82638d5c488e03238214
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 
/*
 * mcstruct.h
 *
 * 32-bit Motion Control Device Driver
 *
 * This header describes structures used in the interface between the
 * kernel driver and the user-mode dll.
HISTORY
 
07Jun99 JET move DPRREADBUFFER, etc. to common.h
*/
 
#ifndef _MCSTRUCT_
  #define _MCSTRUCT_
 
// Buffer limits
  #define MAX_BUSBUFFER       256
 
 
/* --- pmac configuration buffer layout --------------------------------- */
 
typedef struct _CONFIG_INFO {
    ULONG ulSize;   /* size of struct including size field */
    BYTE ulData[1]; /* (ulSize - sizeof(ULONG)) bytes of data */
} CONFIG_INFO, *PCONFIG_INFO;
 
/* --- pmac dpram buffer layout ----------------------------------------- */
 
typedef struct _MEMINITBUFFER {
    HANDLE  hProcess; // process handle
    PVOID   pAddress; // pointer to base of virtual ram
} MEMINITBUFFER, * PMEMINITBUFFER;
 
/* --- pmac interrupt buffer layout ------------------------------------- */
typedef struct _INTRBUFFER {
    PCH     lpData;          // buffer data area
    ULONG   dwBufferLength;  // length of buffer
    DWORD   dwInterruptType; // not used by kernel interface
} INTRBUFFER, * PINTRBUFFER;
 
#endif //_MCSTRUCT_