[Wine-patches] [eterhack] [0004/0021] hal: Add stubs for {READ, WRITE}_PORT_UCHAR.
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Янв 28 21:10:01 MSK 2009
---
dlls/hal/hal.c | 11 +++++++++++
dlls/hal/hal.spec | 4 ++--
include/ddk/wdm.h | 3 +++
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
index 559a98c..c2ae604 100644
--- a/dlls/hal/hal.c
+++ b/dlls/hal/hal.c
@@ -142,3 +142,14 @@ KIRQL WINAPI KeGetCurrentIrql(void)
FIXME( "stub!\n" );
return 0;
}
+
+UCHAR WINAPI READ_PORT_UCHAR(PUCHAR Port)
+{
+ FIXME( "(%p) stub!\n", Port );
+ return 0xff;
+}
+
+void WINAPI WRITE_PORT_UCHAR(PUCHAR Port, UCHAR Value)
+{
+ FIXME( "(%p %u) stub!\n", Port, Value );
+}
diff --git a/dlls/hal/hal.spec b/dlls/hal/hal.spec
index 5ca3de6..4353837 100644
--- a/dlls/hal/hal.spec
+++ b/dlls/hal/hal.spec
@@ -81,12 +81,12 @@
@ stub READ_PORT_BUFFER_UCHAR
@ stub READ_PORT_BUFFER_ULONG
@ stub READ_PORT_BUFFER_USHORT
-@ stub READ_PORT_UCHAR
+@ stdcall READ_PORT_UCHAR(ptr)
@ stub READ_PORT_ULONG
@ stub READ_PORT_USHORT
@ stub WRITE_PORT_BUFFER_UCHAR
@ stub WRITE_PORT_BUFFER_ULONG
@ stub WRITE_PORT_BUFFER_USHORT
-@ stub WRITE_PORT_UCHAR
+@ stdcall WRITE_PORT_UCHAR(ptr long)
@ stub WRITE_PORT_ULONG
@ stub WRITE_PORT_USHORT
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 3b5c850..0404a34 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1108,6 +1108,9 @@ HANDLE WINAPI PsGetCurrentThreadId(void);
BOOLEAN WINAPI PsGetVersion(ULONG*,ULONG*,ULONG*,UNICODE_STRING*);
NTSTATUS WINAPI PsTerminateSystemThread(NTSTATUS);
+UCHAR WINAPI READ_PORT_UCHAR(PUCHAR);
+void WINAPI WRITE_PORT_UCHAR(PUCHAR,UCHAR);
+
NTSTATUS WINAPI ZwAddBootEntry(PUNICODE_STRING,PUNICODE_STRING);
NTSTATUS WINAPI ZwAccessCheckAndAuditAlarm(PUNICODE_STRING,HANDLE,PUNICODE_STRING,PUNICODE_STRING,PSECURITY_DESCRIPTOR,ACCESS_MASK,PGENERIC_MAPPING,BOOLEAN,PACCESS_MASK,PBOOLEAN,PBOOLEAN);
NTSTATUS WINAPI ZwAdjustPrivilegesToken(HANDLE,BOOLEAN,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,PDWORD);
--
1.6.0.2.GIT
Подробная информация о списке рассылки Wine-patches