ReactOS 0.4.15-dev-7958-gcd0bb1a
portio.c File Reference
#include <hal.h>
#include <debug.h>
Include dependency graph for portio.c:

Go to the source code of this file.

Macros

#define NDEBUG
 
#define H2I(Port)   PtrToUshort(Port)
 

Functions

VOID NTAPI READ_PORT_BUFFER_UCHAR (IN PUCHAR Port, OUT PUCHAR Buffer, IN ULONG Count)
 
VOID NTAPI READ_PORT_BUFFER_USHORT (IN PUSHORT Port, OUT PUSHORT Buffer, IN ULONG Count)
 
VOID NTAPI READ_PORT_BUFFER_ULONG (IN PULONG Port, OUT PULONG Buffer, IN ULONG Count)
 
UCHAR NTAPI READ_PORT_UCHAR (IN PUCHAR Port)
 
USHORT NTAPI READ_PORT_USHORT (IN PUSHORT Port)
 
ULONG NTAPI READ_PORT_ULONG (IN PULONG Port)
 
VOID NTAPI WRITE_PORT_BUFFER_UCHAR (IN PUCHAR Port, IN PUCHAR Buffer, IN ULONG Count)
 
VOID NTAPI WRITE_PORT_BUFFER_USHORT (IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
 
VOID NTAPI WRITE_PORT_BUFFER_ULONG (IN PULONG Port, IN PULONG Buffer, IN ULONG Count)
 
VOID NTAPI WRITE_PORT_UCHAR (IN PUCHAR Port, IN UCHAR Value)
 
VOID NTAPI WRITE_PORT_USHORT (IN PUSHORT Port, IN USHORT Value)
 
VOID NTAPI WRITE_PORT_ULONG (IN PULONG Port, IN ULONG Value)
 

Macro Definition Documentation

◆ H2I

#define H2I (   Port)    PtrToUshort(Port)

Definition at line 18 of file portio.c.

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file portio.c.

Function Documentation

◆ READ_PORT_BUFFER_UCHAR()

VOID NTAPI READ_PORT_BUFFER_UCHAR ( IN PUCHAR  Port,
OUT PUCHAR  Buffer,
IN ULONG  Count 
)

Definition at line 24 of file portio.c.

27{
29}
Definition: bufpool.h:45
#define H2I(Port)
Definition: portio.c:18
CPPORT Port[4]
Definition: headless.c:35
PPC_QUAL void __inbytestring(unsigned long Port, unsigned char *Buffer, unsigned long Count)
Definition: intrin_ppc.h:584
int Count
Definition: noreturn.cpp:7

◆ READ_PORT_BUFFER_ULONG()

VOID NTAPI READ_PORT_BUFFER_ULONG ( IN PULONG  Port,
OUT PULONG  Buffer,
IN ULONG  Count 
)

Definition at line 42 of file portio.c.

45{
47}
PPC_QUAL void __indwordstring(unsigned long Port, unsigned long *Buffer, unsigned long Count)
Definition: intrin_ppc.h:598

◆ READ_PORT_BUFFER_USHORT()

VOID NTAPI READ_PORT_BUFFER_USHORT ( IN PUSHORT  Port,
OUT PUSHORT  Buffer,
IN ULONG  Count 
)

Definition at line 33 of file portio.c.

36{
38}
PPC_QUAL void __inwordstring(unsigned long Port, unsigned short *Buffer, unsigned long Count)
Definition: intrin_ppc.h:591

◆ READ_PORT_UCHAR()

UCHAR NTAPI READ_PORT_UCHAR ( IN PUCHAR  Port)

Definition at line 51 of file portio.c.

52{
53 return __inbyte(H2I(Port));
54}
PPC_QUAL unsigned char __inbyte(const unsigned long Port)
Definition: intrin_ppc.h:539

◆ READ_PORT_ULONG()

ULONG NTAPI READ_PORT_ULONG ( IN PULONG  Port)

Definition at line 65 of file portio.c.

66{
67 return __indword(H2I(Port));
68}
PPC_QUAL unsigned long __indword(const unsigned long Port)
Definition: intrin_ppc.h:569

◆ READ_PORT_USHORT()

USHORT NTAPI READ_PORT_USHORT ( IN PUSHORT  Port)

Definition at line 58 of file portio.c.

59{
60 return __inword(H2I(Port));
61}
PPC_QUAL unsigned short __inword(const unsigned long Port)
Definition: intrin_ppc.h:554

◆ WRITE_PORT_BUFFER_UCHAR()

VOID NTAPI WRITE_PORT_BUFFER_UCHAR ( IN PUCHAR  Port,
IN PUCHAR  Buffer,
IN ULONG  Count 
)

Definition at line 72 of file portio.c.

75{
77}
PPC_QUAL void __outbytestring(unsigned long const Port, const unsigned char *const Buffer, const unsigned long Count)
Definition: intrin_ppc.h:653

◆ WRITE_PORT_BUFFER_ULONG()

VOID NTAPI WRITE_PORT_BUFFER_ULONG ( IN PULONG  Port,
IN PULONG  Buffer,
IN ULONG  Count 
)

Definition at line 90 of file portio.c.

93{
95}
PPC_QUAL void __outdwordstring(unsigned long const Port, const unsigned long *const Buffer, const unsigned long Count)
Definition: intrin_ppc.h:671

◆ WRITE_PORT_BUFFER_USHORT()

VOID NTAPI WRITE_PORT_BUFFER_USHORT ( IN PUSHORT  Port,
IN PUSHORT  Buffer,
IN ULONG  Count 
)

Definition at line 81 of file portio.c.

84{
86}
PPC_QUAL void __outwordstring(unsigned long const Port, const unsigned short *const Buffer, const unsigned long Count)
Definition: intrin_ppc.h:662

◆ WRITE_PORT_UCHAR()

VOID NTAPI WRITE_PORT_UCHAR ( IN PUCHAR  Port,
IN UCHAR  Value 
)

Definition at line 99 of file portio.c.

101{
103}
PPC_QUAL void __outbyte(unsigned long const Port, const unsigned char Data)
Definition: intrin_ppc.h:605
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413

◆ WRITE_PORT_ULONG()

VOID NTAPI WRITE_PORT_ULONG ( IN PULONG  Port,
IN ULONG  Value 
)

Definition at line 115 of file portio.c.

117{
119}
PPC_QUAL void __outdword(unsigned long const Port, const unsigned long Data)
Definition: intrin_ppc.h:637

◆ WRITE_PORT_USHORT()

VOID NTAPI WRITE_PORT_USHORT ( IN PUSHORT  Port,
IN USHORT  Value 
)

Definition at line 107 of file portio.c.

109{
111}
PPC_QUAL void __outword(unsigned long const Port, const unsigned short Data)
Definition: intrin_ppc.h:621