From f1ef706c76012eb0fb8415ad206e818be53bd483 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Wed, 31 Dec 2025 17:30:16 +0600 Subject: [PATCH] [DRIVERS] Disable some drivers on PC-98 (#8541) These drivers expect PC/AT compatible hardware thus they are unsuitable for PC-98. Disable the drivers for the time being until we have a proper implementation. CORE-17977 --- drivers/parallel/parport/parport.c | 5 +++++ drivers/serial/serial/serial.c | 5 +++++ drivers/storage/floppy/floppy/floppy.c | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/drivers/parallel/parport/parport.c b/drivers/parallel/parport/parport.c index 8aee83a3608..7fae295f5d9 100644 --- a/drivers/parallel/parport/parport.c +++ b/drivers/parallel/parport/parport.c @@ -128,6 +128,11 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject, DPRINT("Parport DriverEntry\n"); + if (IsNEC_98) + { + return STATUS_NOT_IMPLEMENTED; + } + DriverObject->DriverUnload = DriverUnload; DriverObject->DriverExtension->AddDevice = AddDevice; diff --git a/drivers/serial/serial/serial.c b/drivers/serial/serial/serial.c index b460f70af76..48b281b9f5c 100644 --- a/drivers/serial/serial/serial.c +++ b/drivers/serial/serial/serial.c @@ -28,6 +28,11 @@ DriverEntry( { ULONG i; + if (IsNEC_98) + { + return STATUS_NOT_IMPLEMENTED; + } + DriverObject->DriverUnload = DriverUnload; DriverObject->DriverExtension->AddDevice = SerialAddDevice; diff --git a/drivers/storage/floppy/floppy/floppy.c b/drivers/storage/floppy/floppy/floppy.c index c1b96046f21..328de86e3b0 100644 --- a/drivers/storage/floppy/floppy/floppy.c +++ b/drivers/storage/floppy/floppy/floppy.c @@ -1222,6 +1222,11 @@ DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) UNREFERENCED_PARAMETER(RegistryPath); + if (IsNEC_98) + { + return STATUS_NOT_IMPLEMENTED; + } + /* * Set up dispatch routines */