[FLOPPY_NEW] Import the floppy driver from MS GitHub repository

Do not enable it yet, as it doesn't work in ROS for the moment :-(.
Its place in tree is not optimal (it should be with disk/class/etc.),
but I prefer keeping it close to actual driver for now.

All the work has been done so that it compiles and links with ReactOS
SDK though.
This commit is contained in:
Pierre Schweitzer 2018-12-15 20:02:03 +01:00
parent 3ceb93a4f2
commit e2277b1f02
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
6 changed files with 3616 additions and 1 deletions

View file

@ -0,0 +1,9 @@
list(APPEND SOURCE
guid.c
floppy.c)
add_library(floppy SHARED ${SOURCE} floppy.rc)
set_module_type(floppy kernelmodedriver)
add_importlibs(floppy classpnp hal ntoskrnl)
add_cd_file(TARGET floppy DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_registry_inf(floppy_reg.inf)

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,13 @@
/*
* PROJECT: ReactOS Floppy Driver
* LICENSE: GPL - See COPYING in the top level directory
* FILE: drivers/storage/floppy/floppy.rc
* PURPOSE: Resource definition file
* PROGRAMMERS: Vizzini (vizzini@plasmic.com)
*/
#define REACTOS_VERSION_DLL
#define REACTOS_STR_FILE_DESCRIPTION "Floppy Disk Controller Driver"
#define REACTOS_STR_INTERNAL_NAME "floppy"
#define REACTOS_STR_ORIGINAL_FILENAME "floppy.sys"
#include <reactos/version.rc>

View file

@ -0,0 +1,7 @@
; Floppy driver
[AddReg]
HKLM,"SYSTEM\CurrentControlSet\Services\Floppy","ErrorControl",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\Floppy","Group",0x00000000,"Primary Disk"
HKLM,"SYSTEM\CurrentControlSet\Services\Floppy","ImagePath",0x00020000,"system32\drivers\floppy.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\Floppy","Start",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\Floppy","Type",0x00010001,0x00000001

View file

@ -0,0 +1,11 @@
/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
#include <ntdef.h>
#include <initguid.h>
#include <ioevent.h>
#include <wdmguid.h>
#define DEVICE_TYPE ULONG
#include <ntddstor.h>
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */

View file

@ -19,7 +19,8 @@ reactos/drivers/filesystems/reiserfs # Synced to 0.26
The following FSD are shared with: https://github.com/Microsoft/Windows-driver-samples
reactos/drivers/filesystems/fastfat_new # Synced to 2817004
reactos/drivers/filesystems/cdfs_new # Synced to f73e552
reactos/drivers/filesystems/cdfs # Synced to f73e552
reactos/drivers/storage/floppy_new # Synced to 9d23d43
The following FS libs are shared with: https://github.com/dosfstools/dosfstools
reactos/sdk/lib/fslib/vfatlib/check # Synced to 4.1