ReactOS  0.4.14-dev-358-gbef841c
portio.c
Go to the documentation of this file.
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
28  IN ULONG Count)
29 {
31  while (TRUE);
32 }
33 
34 VOID
35 NTAPI
38  IN ULONG Count)
39 {
41  while (TRUE);
42 }
43 
44 VOID
45 NTAPI
48  IN ULONG Count)
49 {
51  while (TRUE);
52 }
53 
54 UCHAR
55 NTAPI
57 {
58  return READ_REGISTER_UCHAR(Port);
59 }
60 
61 USHORT
62 NTAPI
64 {
65  return READ_REGISTER_USHORT(Port);
66 }
67 
68 ULONG
69 NTAPI
71 {
72  return READ_REGISTER_ULONG(Port);
73 }
74 
75 VOID
76 NTAPI
79  IN ULONG Count)
80 {
82  while (TRUE);
83 }
84 
85 VOID
86 NTAPI
89  IN ULONG Count)
90 {
92  while (TRUE);
93 }
94 
95 VOID
96 NTAPI
99  IN ULONG Count)
100 {
102  while (TRUE);
103 }
104 
105 VOID
106 NTAPI
108  IN UCHAR Value)
109 {
111 }
112 
113 VOID
114 NTAPI
116  IN USHORT Value)
117 {
119 }
120 
121 VOID
122 NTAPI
124  IN ULONG Value)
125 {
127 }
128 
129 /* EOF */
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
CPPORT Port[4]
Definition: headless.c:34
#define IN
Definition: typedefs.h:38
NTKERNELAPI VOID NTAPI WRITE_REGISTER_ULONG(IN PULONG Register, IN ULONG Value)
#define TRUE
Definition: types.h:120
VOID NTAPI WRITE_PORT_USHORT(IN PUSHORT Port, IN USHORT Value)
Definition: portio.c:115
VOID NTAPI WRITE_PORT_BUFFER_UCHAR(IN PUCHAR Port, IN PUCHAR Buffer, IN ULONG Count)
Definition: portio.c:77
UCHAR NTAPI READ_PORT_UCHAR(IN PUCHAR Port)
Definition: portio.c:56
unsigned char * PUCHAR
Definition: retypes.h:3
ULONG NTAPI READ_PORT_ULONG(IN PULONG Port)
Definition: portio.c:70
VOID NTAPI READ_PORT_BUFFER_UCHAR(IN PUCHAR Port, OUT PUCHAR Buffer, IN ULONG Count)
Definition: portio.c:26
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
NTKERNELAPI VOID NTAPI WRITE_REGISTER_USHORT(IN PUSHORT Register, IN USHORT Value)
NTKERNELAPI ULONG NTAPI READ_REGISTER_ULONG(IN PULONG Register)
VOID NTAPI WRITE_PORT_ULONG(IN PULONG Port, IN ULONG Value)
Definition: portio.c:123
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
Definition: bufpool.h:45
VOID NTAPI READ_PORT_BUFFER_USHORT(IN PUSHORT Port, OUT PUSHORT Buffer, IN ULONG Count)
Definition: portio.c:36
unsigned char UCHAR
Definition: xmlstorage.h:181
NTKERNELAPI UCHAR NTAPI READ_REGISTER_UCHAR(IN PUCHAR Register)
unsigned short USHORT
Definition: pedump.c:61
unsigned int * PULONG
Definition: retypes.h:1
#define OUT
Definition: typedefs.h:39
VOID NTAPI READ_PORT_BUFFER_ULONG(IN PULONG Port, OUT PULONG Buffer, IN ULONG Count)
Definition: portio.c:46
unsigned int ULONG
Definition: retypes.h:1
NTKERNELAPI USHORT NTAPI READ_REGISTER_USHORT(IN PUSHORT Register)
#define UNIMPLEMENTED
Definition: debug.h:114
VOID NTAPI WRITE_PORT_UCHAR(IN PUCHAR Port, IN UCHAR Value)
Definition: portio.c:107
USHORT NTAPI READ_PORT_USHORT(IN PUSHORT Port)
Definition: portio.c:63
VOID NTAPI WRITE_PORT_BUFFER_ULONG(IN PULONG Port, IN PULONG Buffer, IN ULONG Count)
Definition: portio.c:97
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
unsigned short * PUSHORT
Definition: retypes.h:2
VOID NTAPI WRITE_PORT_BUFFER_USHORT(IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
Definition: portio.c:87