SDC C-Project CF Review 프로그램
LYW
2022-05-31 f1a543772246f59b8b52a8857270b38ee38f3588
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/***************************************************************************
  (C) Copyright DELTA TAU DATA SYSTEMS Inc., 1992
 
  Title:    bus.h
 
  Version:  1.00
 
  Date:   12/11/1992
 
  Author(s):  Dennis Smith, Allen Segall
 
  Header file for PMAC bus communications.
 
  Note(s):
 
----------------------------------------------------------------------------
 
  Change log:
 
    Date       Rev   Who      Description
  --------- ----- ----- --------------------------------------------
 
***************************************************************************/
 
#ifndef _BUS_H
  #define _BUS_H
 
// Functions --------------------------------------------------------------
  #ifdef __cplusplus
extern "C" {
  #endif
 
  BOOL  CALLBACK PmacBUSReadReady( DWORD dwDevice );
  int   CALLBACK PmacBUSSendCharA( DWORD dwDevice, CHAR outch );
  int   CALLBACK PmacBUSSendCharW( DWORD dwDevice, WCHAR outch );
  int   CALLBACK PmacBUSSendLineA( DWORD dwDevice, PCHAR outstr );
  int   CALLBACK PmacBUSSendLineW( DWORD dwDevice, PWCHAR outstr );
  int   CALLBACK PmacBUSGetLineA( DWORD dwDevice, PCHAR s, UINT maxchar, PUINT nc );
  int   CALLBACK PmacBUSGetLineW( DWORD dwDevice, PWCHAR s, UINT maxchar, PUINT nc );
  int   CALLBACK PmacBUSGetBufferA( DWORD dwDevice, PCHAR s, UINT maxchar, PUINT nc );
  int   CALLBACK PmacBUSGetBufferW( DWORD dwDevice, PWCHAR s, UINT maxchar, PUINT nc );
  int   CALLBACK PmacBUSGetResponseA( DWORD dwDevice, PCHAR s, UINT maxchar, PCHAR outstr );
  int   CALLBACK PmacBUSGetResponseW( DWORD dwDevice, PWCHAR s, UINT maxchar, PWCHAR outstr );
  int   CALLBACK PmacBUSGetControlResponseA( DWORD dwDevice, PCHAR s, UINT maxchar, CHAR outchar );
  int   CALLBACK PmacBUSGetControlResponseW( DWORD dwDevice, PWCHAR s, UINT maxchar, WCHAR outchar );
  void  CALLBACK PmacBUSFlush( DWORD dwDevice );
  void  CALLBACK PmacBUSSendCommandA( DWORD dwDevice, PCHAR outchar );
  void  CALLBACK PmacBUSSendCommandW( DWORD dwDevice, PWCHAR outstr );
 
  int  CALLBACK Outp( DWORD dwDevice, BYTE offset, BYTE ch );
  BYTE CALLBACK Inp( DWORD dwDevice, BYTE offset );
 
  #ifdef __cplusplus
}
  #endif
 
  #ifdef UNICODE
    #define PmacBUSSendChar PmacBUSSendCharW
    #define PmacBUSSendLine PmacBUSSendLineW
    #define PmacBUSGetLine PmacBUSGetLineW
    #define PmacBUSBuffer PmacBUSGetBufferW
    #define PmacBUSGetResponse PmacBUSGetResponseW
    #define PmacBUSGetControlResponse PmacBUSGetControlResponseW
    #define PmacBUSSendCommand PmacBUSSendCommandW
  #else
    #define PmacBUSSendChar PmacBUSSendCharA
    #define PmacBUSSendLine PmacBUSSendLineA
    #define PmacBUSBuffer PmacBUSGetBufferA
    #define PmacBUSGetLine PmacBUSGetLineA
    #define PmacBUSGetResponse PmacBUSGetResponseA
    #define PmacBUSGetControlResponse PmacBUSGetControlResponseA
    #define PmacBUSSendCommand PmacBUSSendCommandA
  #endif // !UNICODE
 
#endif