https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4dc3125450a253736acfc…
commit 4dc3125450a253736acfc6786ef4743fdbef2c5e
Author: Dmitry Borisov <di.sean(a)protonmail.com>
AuthorDate: Thu Nov 5 03:26:37 2020 +0600
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Nov 5 00:26:37 2020 +0300
[PC98VID] Fix build for PC-98 target (#3352)
- Some prototypes are not needed anymore.
Addendum to 5c7ce4475e246560d1622b8cc60dc603e3955f66.
---
win32ss/drivers/miniport/pc98vid/ioctl.c | 8 +++
win32ss/drivers/miniport/pc98vid/pc98vid.c | 3 ++
win32ss/drivers/miniport/pc98vid/pc98vid.h | 79 +-----------------------------
3 files changed, 12 insertions(+), 78 deletions(-)
diff --git a/win32ss/drivers/miniport/pc98vid/ioctl.c
b/win32ss/drivers/miniport/pc98vid/ioctl.c
index 23bc2c6c6be..d89a17510cd 100644
--- a/win32ss/drivers/miniport/pc98vid/ioctl.c
+++ b/win32ss/drivers/miniport/pc98vid/ioctl.c
@@ -11,6 +11,7 @@
/* FUNCTIONS ******************************************************************/
+static
CODE_SEG("PAGE")
VOID
FASTCALL
@@ -43,6 +44,7 @@ Pc98VidQueryMode(
VIDEO_MODE_PALETTE_DRIVEN | VIDEO_MODE_MANAGED_PALETTE;
}
+static
CODE_SEG("PAGE")
VP_STATUS
FASTCALL
@@ -70,6 +72,7 @@ Pc98VidQueryAvailModes(
return NO_ERROR;
}
+static
CODE_SEG("PAGE")
VP_STATUS
FASTCALL
@@ -90,6 +93,7 @@ Pc98VidQueryNumAvailModes(
return NO_ERROR;
}
+static
CODE_SEG("PAGE")
VP_STATUS
FASTCALL
@@ -110,6 +114,7 @@ Pc98VidQueryCurrentMode(
return NO_ERROR;
}
+static
CODE_SEG("PAGE")
VP_STATUS
FASTCALL
@@ -150,6 +155,7 @@ Pc98VidMapVideoMemory(
return Status;
}
+static
CODE_SEG("PAGE")
VP_STATUS
FASTCALL
@@ -166,6 +172,7 @@ Pc98VidUnmapVideoMemory(
NULL);
}
+static
CODE_SEG("PAGE")
VP_STATUS
FASTCALL
@@ -178,6 +185,7 @@ Pc98VidResetDevice(VOID)
return NO_ERROR;
}
+static
CODE_SEG("PAGE")
VP_STATUS
FASTCALL
diff --git a/win32ss/drivers/miniport/pc98vid/pc98vid.c
b/win32ss/drivers/miniport/pc98vid/pc98vid.c
index 716a760acb9..485cd1a0120 100644
--- a/win32ss/drivers/miniport/pc98vid/pc98vid.c
+++ b/win32ss/drivers/miniport/pc98vid/pc98vid.c
@@ -45,6 +45,7 @@ static VIDEO_ACCESS_RANGE LegacyRangeList[] =
/* FUNCTIONS ******************************************************************/
+static
CODE_SEG("PAGE")
VP_STATUS
NTAPI
@@ -138,6 +139,7 @@ Pc98VidFindAdapter(
return NO_ERROR;
}
+static
CODE_SEG("PAGE")
BOOLEAN
NTAPI
@@ -156,6 +158,7 @@ Pc98VidInitialize(
return TRUE;
}
+static
CODE_SEG("PAGE")
VP_STATUS
NTAPI
diff --git a/win32ss/drivers/miniport/pc98vid/pc98vid.h
b/win32ss/drivers/miniport/pc98vid/pc98vid.h
index fd2d8e29b05..75cb4402c26 100644
--- a/win32ss/drivers/miniport/pc98vid/pc98vid.h
+++ b/win32ss/drivers/miniport/pc98vid/pc98vid.h
@@ -9,6 +9,7 @@
#define _PC98VID_PCH_
#include <ntdef.h>
+#include <section_attribs.h>
#include <dderror.h>
#include <devioctl.h>
#include <miniport.h>
@@ -48,106 +49,28 @@ typedef struct _HW_DEVICE_EXTENSION
ULONG FrameBufferLength;
} HW_DEVICE_EXTENSION, *PHW_DEVICE_EXTENSION;
-VP_STATUS
-NTAPI
-Pc98VidFindAdapter(
- _In_ PVOID HwDeviceExtension,
- _In_opt_ PVOID HwContext,
- _In_opt_ PWSTR ArgumentString,
- _Inout_ PVIDEO_PORT_CONFIG_INFO ConfigInfo,
- _Out_ PUCHAR Again);
-
BOOLEAN
NTAPI
HasPegcController(
_In_ PHW_DEVICE_EXTENSION DeviceExtension);
-BOOLEAN
-NTAPI
-Pc98VidInitialize(
- _In_ PVOID HwDeviceExtension);
-
-VP_STATUS
-NTAPI
-Pc98VidGetVideoChildDescriptor(
- _In_ PVOID HwDeviceExtension,
- _In_ PVIDEO_CHILD_ENUM_INFO ChildEnumInfo,
- _Out_ PVIDEO_CHILD_TYPE VideoChildType,
- _Out_ PUCHAR pChildDescriptor,
- _Out_ PULONG UId,
- _Out_ PULONG pUnused);
-
BOOLEAN
NTAPI
Pc98VidStartIO(
_In_ PVOID HwDeviceExtension,
_Inout_ PVIDEO_REQUEST_PACKET RequestPacket);
-VOID
-FASTCALL
-Pc98VidQueryMode(
- _In_ PHW_DEVICE_EXTENSION DeviceExtension,
- _In_ ULONG ModeNumber,
- _Out_ PVIDEO_MODE_INFORMATION VideoMode);
-
-VP_STATUS
-FASTCALL
-Pc98VidQueryAvailModes(
- _In_ PHW_DEVICE_EXTENSION DeviceExtension,
- _Out_ PVIDEO_MODE_INFORMATION ModeInformation,
- _Out_ PSTATUS_BLOCK StatusBlock);
-
-VP_STATUS
-FASTCALL
-Pc98VidQueryNumAvailModes(
- _In_ PHW_DEVICE_EXTENSION DeviceExtension,
- _Out_ PVIDEO_NUM_MODES Modes,
- _Out_ PSTATUS_BLOCK StatusBlock);
-
VP_STATUS
FASTCALL
Pc98VidSetCurrentMode(
_In_ PHW_DEVICE_EXTENSION DeviceExtension,
_In_ PVIDEO_MODE RequestedMode);
-VP_STATUS
-FASTCALL
-Pc98VidQueryCurrentMode(
- _In_ PHW_DEVICE_EXTENSION DeviceExtension,
- _Out_ PVIDEO_MODE_INFORMATION VideoMode,
- _Out_ PSTATUS_BLOCK StatusBlock);
-
-VP_STATUS
-FASTCALL
-Pc98VidMapVideoMemory(
- _In_ PHW_DEVICE_EXTENSION DeviceExtension,
- _In_ PVIDEO_MEMORY RequestedAddress,
- _Out_ PVIDEO_MEMORY_INFORMATION MapInformation,
- _Out_ PSTATUS_BLOCK StatusBlock);
-
-VP_STATUS
-FASTCALL
-Pc98VidUnmapVideoMemory(
- _In_ PHW_DEVICE_EXTENSION DeviceExtension,
- _In_ PVIDEO_MEMORY VideoMemory);
-
-VP_STATUS
-FASTCALL
-Pc98VidResetDevice(VOID);
-
VP_STATUS
FASTCALL
Pc98VidSetColorRegisters(
_In_ PVIDEO_CLUT ColorLookUpTable);
-VP_STATUS
-FASTCALL
-Pc98VidGetChildState(
- _In_ PHW_DEVICE_EXTENSION DeviceExtension,
- _In_ PULONG ChildIndex,
- _Out_ PULONG ChildState,
- _Out_ PSTATUS_BLOCK StatusBlock);
-
VP_STATUS
NTAPI
Pc98VidGetPowerState(