xref: /reactos/hal/halarm/generic/portio.c (revision 1734f297)
1 /*
2  * PROJECT:         ReactOS HAL
3  * LICENSE:         BSD - See COPYING.ARM in the top level directory
4  * FILE:            hal/halarm/generic/portio.c
5  * PURPOSE:         I/O Functions for access to ports
6  * PROGRAMMERS:     ReactOS Portable Systems Group
7  */
8 
9 /* INCLUDES *******************************************************************/
10 
11 #include <hal.h>
12 #define NDEBUG
13 #include <debug.h>
14 
15 #undef READ_PORT_UCHAR
16 #undef READ_PORT_USHORT
17 #undef READ_PORT_ULONG
18 #undef WRITE_PORT_UCHAR
19 #undef WRITE_PORT_USHORT
20 #undef WRITE_PORT_ULONG
21 
22 /* FUNCTIONS ******************************************************************/
23 
24 VOID
25 NTAPI
26 READ_PORT_BUFFER_UCHAR(IN PUCHAR Port,
27                        OUT PUCHAR Buffer,
28                        IN ULONG Count)
29 {
30     UNIMPLEMENTED;
31     while (TRUE);
32 }
33 
34 VOID
35 NTAPI
36 READ_PORT_BUFFER_USHORT(IN PUSHORT Port,
37                         OUT PUSHORT Buffer,
38                         IN ULONG Count)
39 {
40     UNIMPLEMENTED;
41     while (TRUE);
42 }
43 
44 VOID
45 NTAPI
46 READ_PORT_BUFFER_ULONG(IN PULONG Port,
47                        OUT PULONG Buffer,
48                        IN ULONG Count)
49 {
50     UNIMPLEMENTED;
51     while (TRUE);
52 }
53 
54 UCHAR
55 NTAPI
56 READ_PORT_UCHAR(IN PUCHAR Port)
57 {
58     return READ_REGISTER_UCHAR(Port);
59 }
60 
61 USHORT
62 NTAPI
63 READ_PORT_USHORT(IN PUSHORT Port)
64 {
65     return READ_REGISTER_USHORT(Port);
66 }
67 
68 ULONG
69 NTAPI
70 READ_PORT_ULONG(IN PULONG Port)
71 {
72     return READ_REGISTER_ULONG(Port);
73 }
74 
75 VOID
76 NTAPI
77 WRITE_PORT_BUFFER_UCHAR(IN PUCHAR Port,
78                         IN PUCHAR Buffer,
79                         IN ULONG Count)
80 {
81     UNIMPLEMENTED;
82     while (TRUE);
83 }
84 
85 VOID
86 NTAPI
87 WRITE_PORT_BUFFER_USHORT(IN PUSHORT Port,
88                          IN PUSHORT Buffer,
89                          IN ULONG Count)
90 {
91     UNIMPLEMENTED;
92     while (TRUE);
93 }
94 
95 VOID
96 NTAPI
97 WRITE_PORT_BUFFER_ULONG(IN PULONG Port,
98                         IN PULONG Buffer,
99                         IN ULONG Count)
100 {
101     UNIMPLEMENTED;
102     while (TRUE);
103 }
104 
105 VOID
106 NTAPI
107 WRITE_PORT_UCHAR(IN PUCHAR Port,
108                  IN UCHAR Value)
109 {
110     WRITE_REGISTER_UCHAR(Port, Value);
111 }
112 
113 VOID
114 NTAPI
115 WRITE_PORT_USHORT(IN PUSHORT Port,
116                   IN USHORT Value)
117 {
118     WRITE_REGISTER_USHORT(Port, Value);
119 }
120 
121 VOID
122 NTAPI
123 WRITE_PORT_ULONG(IN PULONG Port,
124                  IN ULONG Value)
125 {
126     WRITE_REGISTER_ULONG(Port, Value);
127 }
128 
129 /* EOF */
130