mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 09:41:48 +00:00
fix READ_PORT_xxx macros
svn path=/trunk/; revision=34650
This commit is contained in:
parent
533f66b5f7
commit
27afd30041
1 changed files with 3 additions and 3 deletions
|
@ -38,9 +38,9 @@ extern "C" {
|
|||
#define WRITE_REGISTER_UCHAR(r, v) (*(volatile UCHAR *)(r) = (v))
|
||||
#define WRITE_REGISTER_USHORT(r, v) (*(volatile USHORT *)(r) = (v))
|
||||
#define WRITE_REGISTER_ULONG(r, v) (*(volatile ULONG *)(r) = (v))
|
||||
#define READ_PORT_UCHAR(p) (UCHAR)(__inbyte H2I(p))
|
||||
#define READ_PORT_USHORT(p) (USHORT)(__inword H2I(p))
|
||||
#define READ_PORT_ULONG(p) (ULONG)(__indword H2I(p))
|
||||
#define READ_PORT_UCHAR(p) (UCHAR)(__inbyte (H2I(p)))
|
||||
#define READ_PORT_USHORT(p) (USHORT)(__inword (H2I(p)))
|
||||
#define READ_PORT_ULONG(p) (ULONG)(__indword (H2I(p)))
|
||||
#define WRITE_PORT_UCHAR(p, v) __outbyte (H2I(p), (v))
|
||||
#define WRITE_PORT_USHORT(p, v) __outword (H2I(p), (v))
|
||||
#define WRITE_PORT_ULONG(p, v) __outdword (H2I(p), (v))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue