mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[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:
parent
3ceb93a4f2
commit
e2277b1f02
6 changed files with 3616 additions and 1 deletions
9
drivers/storage/floppy_new/CMakeLists.txt
Normal file
9
drivers/storage/floppy_new/CMakeLists.txt
Normal 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)
|
3574
drivers/storage/floppy_new/floppy.c
Normal file
3574
drivers/storage/floppy_new/floppy.c
Normal file
File diff suppressed because it is too large
Load diff
13
drivers/storage/floppy_new/floppy.rc
Normal file
13
drivers/storage/floppy_new/floppy.rc
Normal 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>
|
7
drivers/storage/floppy_new/floppy_reg.inf
Normal file
7
drivers/storage/floppy_new/floppy_reg.inf
Normal 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
|
11
drivers/storage/floppy_new/guid.c
Normal file
11
drivers/storage/floppy_new/guid.c
Normal 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 */
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue