Fixes in HlIoPortInShort() and HlIoPortInLong() routines

This commit is contained in:
2022-12-27 22:43:19 +01:00
父節點 9828b23400
當前提交 602d89ef27
共有 4 個文件被更改,包括 16 次插入16 次删除

查看文件

@@ -35,11 +35,11 @@ UCHAR
HlIoPortInByte(IN USHORT Port);
XTCDECL
UCHAR
USHORT
HlIoPortInShort(IN USHORT Port);
XTCDECL
UCHAR
ULONG
HlIoPortInLong(IN USHORT Port);
XTCDECL
@@ -55,7 +55,7 @@ HlIoPortOutShort(IN USHORT Port,
XTCDECL
VOID
HlIoPortOutLong(IN USHORT Port,
IN UINT Value);
IN ULONG Value);
XTCDECL
ULONG_PTR

查看文件

@@ -35,11 +35,11 @@ UCHAR
HlIoPortInByte(IN USHORT Port);
XTCDECL
UCHAR
USHORT
HlIoPortInShort(IN USHORT Port);
XTCDECL
UCHAR
ULONG
HlIoPortInLong(IN USHORT Port);
XTCDECL
@@ -55,7 +55,7 @@ HlIoPortOutShort(IN USHORT Port,
XTCDECL
VOID
HlIoPortOutLong(IN USHORT Port,
IN UINT Value);
IN ULONG Value);
XTCDECL
ULONG_PTR

查看文件

@@ -114,10 +114,10 @@ HlIoPortInByte(IN USHORT Port)
* @since XT 1.0
*/
XTCDECL
UCHAR
USHORT
HlIoPortInShort(IN USHORT Port)
{
UCHAR Value;
USHORT Value;
asm volatile("inw %1, %0"
: "=a"(Value)
: "Nd"(Port));
@@ -135,10 +135,10 @@ HlIoPortInShort(IN USHORT Port)
* @since XT 1.0
*/
XTCDECL
UCHAR
ULONG
HlIoPortInLong(IN USHORT Port)
{
UCHAR Value;
ULONG Value;
asm volatile("inl %1, %0"
: "=a"(Value)
: "Nd"(Port));
@@ -209,7 +209,7 @@ HlIoPortOutShort(IN USHORT Port,
XTCDECL
VOID
HlIoPortOutLong(IN USHORT Port,
IN UINT Value)
IN ULONG Value)
{
asm volatile("outl %0, %1"
:

查看文件

@@ -114,10 +114,10 @@ HlIoPortInByte(IN USHORT Port)
* @since XT 1.0
*/
XTCDECL
UCHAR
USHORT
HlIoPortInShort(IN USHORT Port)
{
UCHAR Value;
USHORT Value;
asm volatile("inw %1, %0"
: "=a"(Value)
: "Nd"(Port));
@@ -135,10 +135,10 @@ HlIoPortInShort(IN USHORT Port)
* @since XT 1.0
*/
XTCDECL
UCHAR
ULONG
HlIoPortInLong(IN USHORT Port)
{
UCHAR Value;
ULONG Value;
asm volatile("inl %1, %0"
: "=a"(Value)
: "Nd"(Port));
@@ -209,7 +209,7 @@ HlIoPortOutShort(IN USHORT Port,
XTCDECL
VOID
HlIoPortOutLong(IN USHORT Port,
IN UINT Value)
IN ULONG Value)
{
asm volatile("outl %0, %1"
: