Adam Słaboń
c166933135
[RAMDISK] Add setup information file for the ramdisk driver ( #3100 )
2020-08-27 01:28:31 +03:00
Joachim Henze
011a9e2ae8
[SCSIPORT] Demote a noisy DPRINT1 to DPRINT CORE-17200
...
It started to spam when more components of the MountMgr
were coded during 0.4.14dev.
According to Victor Perevertkin it is not crucial for us
to see it, as those are 'optional MountMgr features'.
Imho this points towards unimplemented stuff.
No official ros release has been affected, because I did
revert most of the new MountMgr features for 0.4.14release
earlier.
2020-08-15 12:50:45 +02:00
Trevor Thompson
b338fb7beb
[CLASS2]: Set DiskSize member of deviceExtension->DiskGeometry in ScsiClassReadDriveCapacity(). Consolidate code and comment for setting media capacity in bytes. CORE-17166
2020-07-21 01:21:16 +03:00
Serge Gautherie
89971a3757
[CDFS][FLOPPY_NEW] Simplify unsupported NT6.2+ workarounds ( #2956 )
2020-07-18 15:31:48 +02:00
Amine Khaldi
139a3d6661
[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905
2020-06-06 21:58:41 +03:00
Joachim Henze
6c0ff7bd84
[UNIATA] Workaround regression CORE-16078, booting broke on specific Intel Z170
...
JIRA-user "Illen" reported booting from his Z170 controller worked up to
0.4.12-dev-936-g89aaf0e
and would refuse booting - beginning with uniata commit
0.4.12-dev-937-g
b546130731
For sure this workaround is just a temporary and no proper solution,
but was confirmed to be working by "Illen".
We have no clear understanding of the real bug yet.
Can be replaced by something better at any time.
It was already committed into 0.4.12, 0.4.13, 0.4.14.
We never had an affected release therefore.
Since no one took care of this bug ever,
the workaround will now be committed to master as well.
cherry picked from commit 0.4.13-RC-9-g
11178f38e4
2020-05-12 21:13:21 +02:00
Serge Gautherie
8ae1702a16
[PCIIDEX] Increase command port length to 8 from 7. CORE-9922 ( #2711 )
...
Co-Authored-By: Vadim Galyant <vgal@rambler.ru>
2020-05-07 10:16:18 +03:00
Victor Perevertkin
019f21ee1d
[MEDIA][CMAKE] Create add_driver_inf cmake function
...
*.inf files for drivers can now be placed along with the driver code
2020-04-26 20:28:04 +03:00
Victor Perevertkin
7e069ccdb2
[CMAKE] Replace custom functions to built-in ones
...
add_target_compile_definitions -> target_compile_definitions
add_target_compile_flags -> target_compile_options
add_target_include_directories -> target_include_directories
2020-04-16 15:59:38 +03:00
Hervé Poussineau
f5658fd3b4
[STORAHCI] Replace some __inline by FORCEINLINE
...
Functions were declared as __inline, then used, and then defined.
This leads to some linking errors with some compilers.
2020-03-26 16:39:16 +01:00
Serge Gautherie
82d2f13cea
[FLOPPY_NEW] WindowsSync to 8fb512a ( #2238 )
...
* [FLOPPY_NEW] Make 6 '#ifdef' explicit about '__REACTOS__'
* [FLOPPY_NEW] RtlStringCbPrintf?() need bytes, not chars
Import
8fb512ac67
2020-01-14 18:50:19 +01:00
Thomas Faber
0d745e0698
[DISK_NEW] Return correct info size in failure case of DiskIoctlGetPartitionInfoEx.
2020-01-02 16:36:15 +01:00
Thomas Faber
2fa7b1dcc1
[CDROM] Return the correct data length for IOCTL_DISK_GET_LENGTH_INFO. CORE-16607
2020-01-02 14:08:46 +01:00
Eric Kohl
c1f22c88ca
[STORAGE] Storage driver cleanup part 5 (last part)
...
Move the fdc and flpydrv drivers into the floppy directory.
2019-11-30 13:33:32 +01:00
Eric Kohl
2a2040a9fe
[STORAGE] Storage driver cleanup part 4
...
Move the floppy driver into the floppy/floppy directory.
2019-11-30 13:13:59 +01:00
Eric Kohl
9393c6a48b
[STORAGE] Storage driver cleanup part 3
...
Move the storahci driver into the port directory.
2019-11-30 12:58:59 +01:00
Eric Kohl
d736908967
[STORAGE] Storage driver cleanup part 2
...
Move the scsiport driver into the port directory.
2019-11-30 12:19:03 +01:00
Eric Kohl
6b687478d1
[STORAGE] Storage driver cleanup part 1
...
Move the classpnp driver into the class directory because it is a class driver, just like the class2 driver.
2019-11-30 11:54:33 +01:00
Pierre Schweitzer
0917815efa
[CDROM] Forcibly declare our CD devices to the MountMgr
2019-11-19 19:05:23 +01:00
Pierre Schweitzer
887200703c
[CLASS2] Drop the drive letter hack
2019-11-11 18:18:32 +01:00
Hermès Bélusca-Maïto
3b2f158593
[NTOS][CLASS2][FFS][WIN32SS] Fix some pool tags so that they correctly appear in pool dump lists.
...
Reminder: in the code they are defined using reverse byte order
(Windows/ReactOS are little-endian OSes).
2019-11-01 19:12:27 +01:00
Pierre Schweitzer
6889cff5b5
[FLOPPY] Make floppy drives letters being handled by the MountMgr
...
This involves many changes/fixes in the floppy driver:
- Stop creating ourselves our DOS device, it's up to the MountMgr or to the kernel;
- Report each new floppy drive to the MountMgr (this is a hack for now);
- As a consequence, stop storing the symlink name into the DRIVE_INFO structure;
- Store the device name instead;
- On IOCTL_MOUNTDEV_QUERY_DEVICE_NAME, don't return DOS device, but device name;
- On IOCTL_MOUNTDEV_QUERY_DEVICE_NAME, properly return if buffer is way too small;
- Hackplement IOCTL_MOUNTDEV_QUERY_UNIQUE_ID so that it returns device name.
2019-10-27 11:35:23 +01:00
Pierre Schweitzer
b68104dd87
[DISK] Forcibly declare our partitions to the MountMgr
...
Because our disk.sys doesn't do anything related to PnP
(compared to disk_new.sys), forcibly declare our partitions
to the MountMgr so that it can references them and assign
them a DOS drive letter on demand later on.
2019-10-21 16:50:36 +02:00
Pierre Schweitzer
410c606999
[CLASS2] Hackplement support for IOCTL_MOUNTDEV_QUERY_UNIQUE_ID
...
This is required so that MountMgr can handle devices that are still
using class2 instead of classpnp.
Given we have no unique ID to return, we'll return device path, which
is far from perfect but which is enough for now to have everything
working.
2019-10-21 16:45:28 +02:00
Pierre Schweitzer
20b4f0a231
[FLOPPY] Implement IOCTL_MOUNTDEV_QUERY_DEVICE_NAME
2019-09-14 10:48:19 +02:00
Timo Kreuzer
a71a6531ef
[UNIATA] Fix uniata on x64
2019-09-08 10:39:01 +02:00
Timo Kreuzer
58588b76e2
[REACTOS] Fix MSVC printf format warnings
2019-08-15 15:24:12 +02:00
Serge Gautherie
4253ba71fc
[FLOPPY_NEW] Fix MSVC builds
2019-07-06 09:39:03 +02:00
Eric Kohl
545692e89e
[STORPORT] Improvements to the device enumerator code.
...
- Create PDO for the device
- Send a SCSIOP_INQUIRY command to the new PDO
- Delete the PDO if the inquiry command failed
2019-06-27 23:28:41 +02:00
Thomas Faber
3fb5ca3bee
[UNIATA] Update to version 0.47a. CORE-15930
2019-06-25 09:26:09 +02:00
Victor Perevertkin
fa530aee92
[DISK] Disable IsFloppyDevice check.
...
It wrongly marks USB flash drives as a floppy device
2019-06-11 04:39:43 +03:00
Eric Kohl
be88574f59
[STORPORT] Detect attached devices
2019-06-02 23:30:02 +02:00
Eric Kohl
631db82058
[STORPORT] Fix resource list size calculation
2019-06-02 14:24:35 +02:00
Jérôme Gardou
23373acbb9
[CMAKE] Use modules instead of shared libraries
...
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.
On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00
Alexandr A. Telyatnikov
6d5a81013c
[UNIATA] Fix for uninitialized Lun pointer
...
This fixes crash on Intel AHCI init. CORE-15886
2019-04-02 18:02:07 +02:00
Thomas Faber
b546130731
[UNIATA] Update to version 0.47. CORE-15870
2019-03-24 14:48:32 +01:00
Thomas Faber
b91cf860cd
[UNIATA] Update to version 46e8. CORE-15843
2019-03-14 13:16:43 +01:00
Thomas Faber
48870fe35e
[UNIATA] Remove an unnecessary ROS-diff.
2019-03-14 13:16:41 +01:00
Timo Kreuzer
05f4951b8c
[CDROM_NEW] Fix SLIST_ENTRY vs SINGLE_LIST_ENTRY issues
2019-03-04 21:58:42 +01:00
Timo Kreuzer
dfd876a96b
[CLASSPNP] Fix SLIST_ENTRY vs SINGLE_LIST_ENTRY issues
2019-03-04 21:58:42 +01:00
Andrew Cook
99ec8ff00c
[RAMDISK] Fix unterminated query table
2019-02-13 09:33:10 +01:00
Hermès Bélusca-Maïto
a56a2e95a2
[DISK.SYS] Add a HACK so that we can use NT5+ NTOS functions with this NT4 driver for removable devices.
...
This is needed in order to avoid an infinite recursive loop between
disk!UpdateRemovableGeometry() and ntos!IoReadPartitionTable().
This does not happen with NT5+ disk_new.sys because it doesn't call
IoReadPartitionTable() in that situation.
2019-02-10 22:39:12 +01:00
Alexandr A. Telyatnikov
0c7e9684bd
[UNIATA] Add AHCI revision 1.3.1
...
Also explicitly print current AHCI revision in debug log. CORE-15643
2019-02-02 15:47:39 +01:00
Pierre Schweitzer
e2277b1f02
[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.
2018-12-15 20:04:00 +01:00
Bernhard Feichtinger
9d1ee2400a
[RAMDISK] Implement missing IOCTLs
2018-09-16 11:46:24 +02:00
Katayama Hirofumi MZ
33fc7bf316
[STORAHCI] Fix MSVC "uninitialized local variable" error (C4700) ( #828 )
...
See also PR #821 .
2018-08-30 00:50:06 +02:00
Pierre Schweitzer
c1ac347825
[CDROM] Set proper status on disk verify
...
This avoids an assert under certain conditions in CDFS.
Check cdrom_new for reference.
CORE-14873
2018-08-19 11:11:21 +02:00
Timo Kreuzer
9e066abe2a
[DRIVERS] Fix 64 bit issues
2018-08-04 19:19:34 +02:00
Timo Kreuzer
f8bf0e9c3a
[UNIATA] Fix 64 bit issues
2018-08-04 19:19:34 +02:00
Eric Kohl
f7c01906e7
[STORPORT] Enumerate attached devices
...
- Implement AcquireSpinlock, ReleaseSpinlock and GetExtendedFunctionTable notifications.
- Implement a bus scan routine, borrowed from scsiport.
Storport and storahci are now able to detect a disk device attached to a Virtual Box AHCI controller.
2018-05-24 11:39:47 +02:00
Peter Wathall
9e2dd8676a
Removed unreachable line ( #517 )
...
The break statement was unnecessary because the goto on the line before it returns from the routine so it can never be reached
2018-04-24 21:35:23 +01:00
Eric Kohl
ca22dc9bb5
[STORPORT][DDK] Add the StorPortExtendedFunction stub
...
- Add the StorPortExtendedFunction stub to the storport driver.
- Add the declaration of StorPortExtendedFunction to the ddk.
CORE-12695
2018-03-03 14:19:33 +01:00
Amine Khaldi
a76fdbd8cb
[UNIATA] Update to v0.46e5. CORE-14117
2017-12-25 14:18:21 +01:00
Pierre Schweitzer
b9b461bde9
[DISK] Properly implement querying partition information for partition 0.
...
In spite of what was implemented in our NT DDK sample, this is a legit operation.
This may have been turned legit starting NT5 (reminder, our implementation is
NT4 based...). So, in this situation, just return the information about the whole
disk (and not a random size) and also, mark everything with default values.
See disk_new for an example of how it works in NT5+.
CORE-14124
2017-12-24 21:58:47 +01:00
Amine Khaldi
00124d1b1a
[CMAKE/CLANG-CL] Silence some clang-cl warnings in consistency with our gcc build.
2017-12-07 21:53:45 +01:00
Thomas Faber
ed95fa19f0
[PCIIDEX] Properly handle unknown PNP IRPs. CORE-13944
2017-11-21 23:08:21 +01:00
Pierre Schweitzer
4b34e44782
[FLOPPY] Don't wait forever while trying to determine media type.
...
This should fix some virtual machines and real hardware machine with empty floopy drive
not being able to boot ReactOS (stuck while initializing floppy.sys).
This fixes a regression introduced in r70746.
It could be generalized to other interrupts, floppy controllers not being reliable.
For more information: http://wiki.osdev.org/Floppy_Disk_Controller
CORE-7935
CORE-12908
CORE-13080
2017-11-21 10:22:50 +01:00
Eric Kohl
58bb4b31bc
[STORPORT] Check status code of the call to PortFdoConnectInterrupt().
...
CORE-13866
2017-10-31 14:11:36 +01:00
Eric Kohl
5cfc1e3152
[STORPORT] Get the interrupt from the resource list, connect it and call the miniports HwInterrupt routine.
...
CORE-13866
2017-10-23 23:21:58 +02:00
Timo Kreuzer
072d1821e7
[STORPORT] Fix x64 build
2017-10-22 18:31:07 +02:00
Eric Kohl
9e642ea15b
[STORPORT] Add the InitializeDpc code path to StorPortNotification().
...
CORE-13866
2017-10-22 09:25:36 +02:00
Eric Kohl
cc95d3ece3
[STORPORT] Implement StorPortNotification() / EnablePassiveInitialization and call the passive initialization routine.
...
CORE-13866
2017-10-21 23:58:42 +02:00
Eric Kohl
f9f21574ba
[STORPORT] Implement parts of StorPortGetPhysicalAddress() that handle the uncached extension.
...
CORE-13866
2017-10-21 21:55:42 +02:00
Eric Kohl
ec4fe62118
[STORPORT] The miniport drivers HwInitialize routine returns a BOOLEAN. Handle this properly.
...
CORE-13866
2017-10-21 21:51:25 +02:00
Eric Kohl
45cc5c0e37
[STORPORT] Implement StorPortGetUncachedExtension().
...
CORE-13866
2017-10-21 17:56:06 +02:00
Pierre Schweitzer
c274b25c95
[FLOPPY] Fix broken loop
...
CID 1419440
2017-10-21 10:28:00 +02:00
Eric Kohl
b22c128070
[STORPORT] Implement StorPortGetDeviceBase().
...
CORE-13866
2017-10-17 00:05:26 +02:00
Eric Kohl
194df1ba58
[STORPORT] Implement StorPortSetBusDataByOffset.
...
CORE-13866
2017-10-16 20:06:15 +02:00
Eric Kohl
b21019e3d1
[STORPORT] Query the bus interface of the lower (bus) device and implement StorPortGetBusData().
...
CORE-13866
2017-10-16 00:13:21 +02:00
Eric Kohl
3f5aeb9363
[STORPORT] Attach copies of the resource lists to the FDO device extension and use them to fill the access ranges in the port configuration.
...
Storahci does not crash on initialization any more. :-)
CORE-13866
2017-10-15 15:21:56 +02:00
Eric Kohl
dd0027ba19
[STORPORT] Initialize the port configuration and pass it to the HwFindAdapter routine.
2017-10-15 13:10:08 +02:00
Eric Kohl
42cb5353b8
[STORORT] Allocate the miniport device extension and use it the calls to HwFindAdapter and HwInitialize.
...
CORE-13866
2017-10-15 00:06:22 +02:00
Eric Kohl
8dea67f8ba
[STORPORT] Initialize a miniport object and call the miniport HwFindAdapter and HwInitialize routines.
...
CORE-13866
2017-10-14 19:12:24 +02:00
Eric Kohl
28f30ba854
[STORAHCI] Make the storahci driver build on gcc and add it to the build.
2017-10-13 21:52:38 +02:00
Hermès Bélusca-Maïto
30bfd8afad
[STORPORT]: Fix build: declare STORPORT_API functions as exports.
2017-10-12 23:14:08 +02:00
EricKohl
b2c6c07d0f
[STORPORT] Start the implementation of the storport driver and add it to the build.
...
CORE-13866
2017-10-12 22:41:47 +02:00
Colin Finck
950c86fb4c
Fix remaining text file line endings in the tree. ( #18 )
...
Based on https://stackoverflow.com/a/1511273
Also enforce CRLF for all *.xml files in our tree, because they are distributed with ReactOS.
2017-10-06 15:00:36 +02:00
Pierre Schweitzer
75f1637f37
[CLASS2]: Fix status code on too small as exposed by kernel32:DeviceIoControl
2017-10-04 21:13:25 +02:00
Hermès Bélusca-Maïto
acdf04bad2
Add .keep guard files in order to restore lost but empty directories we had with SVN.
...
Note that when you start populating these directories, you can remove the associated .keep guard file(s)!
2017-10-04 10:28:36 +02:00
Hermès Bélusca-Maïto
221ed4cefe
Remove unwanted .gitignore files.
2017-10-04 10:28:36 +02:00
Pierre Schweitzer
e48d6a658f
[CLASS2]: Cosmetic fixes by Thomas
2017-10-03 21:34:00 +02:00
Pierre Schweitzer
fdb72d7f85
[CLASS2]: - In ScsiClassCreateDeviceObject() don't drop received object name and store it in the device extension
...
- Implement support for the IOCTL_MOUNTDEV_QUERY_DEVICE_NAME IOCTL; return the store device name
2017-10-03 21:34:00 +02:00
Colin Finck
c2c66aff7d
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
2017-10-03 07:45:34 +00:00