ReactOS 0.4.16-dev-88-ga65b6ae
|
#include <initguid.h>
#include <ntddk.h>
#include <ntifs.h>
#include <ntdddisk.h>
#include <ntddcdrm.h>
#include <scsi.h>
#include <ntddscsi.h>
#include <ntddvol.h>
#include <mountdev.h>
#include <mountmgr.h>
#include <ketypes.h>
#include <iotypes.h>
#include <rtlfuncs.h>
#include <arc/arc.h>
#include <reactos/drivers/ntddrdsk.h>
#include "../../../filesystems/fs_rec/fs_rec.h"
#include <stdio.h>
#include <debug.h>
Go to the source code of this file.
Classes | |
struct | _RAMDISK_EXTENSION |
struct | _RAMDISK_BUS_EXTENSION |
struct | _RAMDISK_DRIVE_EXTENSION |
Macros | |
#define | NDEBUG |
#define | DO_XIP 0x00020000 |
#define | RAMDISK_SESSION_SIZE FIELD_OFFSET(CDROM_TOC, TrackData) + sizeof(TRACK_DATA) |
#define | RAMDISK_TOC_SIZE FIELD_OFFSET(CDROM_TOC, TrackData) + 2 * sizeof(TRACK_DATA) |
#define | TOC_DATA_TRACK (0x04) |
Typedefs | |
typedef enum _RAMDISK_DEVICE_TYPE | RAMDISK_DEVICE_TYPE |
typedef enum _RAMDISK_DEVICE_STATE | RAMDISK_DEVICE_STATE |
typedef struct _RAMDISK_EXTENSION | RAMDISK_EXTENSION |
typedef struct _RAMDISK_EXTENSION * | PRAMDISK_EXTENSION |
typedef struct _RAMDISK_BUS_EXTENSION | RAMDISK_BUS_EXTENSION |
typedef struct _RAMDISK_BUS_EXTENSION * | PRAMDISK_BUS_EXTENSION |
typedef struct _RAMDISK_DRIVE_EXTENSION | RAMDISK_DRIVE_EXTENSION |
typedef struct _RAMDISK_DRIVE_EXTENSION * | PRAMDISK_DRIVE_EXTENSION |
Enumerations | |
enum | _RAMDISK_DEVICE_TYPE { RamdiskBus , RamdiskDrive } |
enum | _RAMDISK_DEVICE_STATE { RamdiskStateUninitialized , RamdiskStateStarted , RamdiskStatePaused , RamdiskStateStopped , RamdiskStateRemoved , RamdiskStateBusRemoved , RamdiskStateEnumerated } |
#define RAMDISK_SESSION_SIZE FIELD_OFFSET(CDROM_TOC, TrackData) + sizeof(TRACK_DATA) |
#define RAMDISK_TOC_SIZE FIELD_OFFSET(CDROM_TOC, TrackData) + 2 * sizeof(TRACK_DATA) |
typedef struct _RAMDISK_EXTENSION * PRAMDISK_EXTENSION |
Enumerator | |
---|---|
RamdiskStateUninitialized | |
RamdiskStateStarted | |
RamdiskStatePaused | |
RamdiskStateStopped | |
RamdiskStateRemoved | |
RamdiskStateBusRemoved | |
RamdiskStateEnumerated |
Enumerator | |
---|---|
RamdiskBus | |
RamdiskDrive |
Definition at line 43 of file ramdisk.c.
DEFINE_GUID | ( | RamdiskBusInterface | , |
0x5DC52DF0 | , | ||
0x2F8A | , | ||
0x410F | , | ||
0x80 | , | ||
0xE4 | , | ||
0x05 | , | ||
0xF8 | , | ||
0x10 | , | ||
0xE7 | , | ||
0xA8 | , | ||
0x8A | |||
) |
DEFINE_GUID | ( | RamdiskDiskInterface | , |
0x31D909F0 | , | ||
0x2CDF | , | ||
0x4A20 | , | ||
0x9E | , | ||
0xD4 | , | ||
0x7D | , | ||
0x65 | , | ||
0x47 | , | ||
0x6C | , | ||
0xA7 | , | ||
0x68 | |||
) |
NTSTATUS NTAPI DriverEntry | ( | IN PDRIVER_OBJECT | DriverObject, |
IN PUNICODE_STRING | RegistryPath | ||
) |
Definition at line 2414 of file ramdisk.c.
VOID NTAPI QueryParameters | ( | IN PUNICODE_STRING | RegistryPath | ) |
Definition at line 133 of file ramdisk.c.
Referenced by DriverEntry().
NTSTATUS NTAPI RamdiskAddDevice | ( | IN PDRIVER_OBJECT | DriverObject, |
IN PDEVICE_OBJECT | PhysicalDeviceObject | ||
) |
Definition at line 2328 of file ramdisk.c.
Referenced by DriverEntry().
NTSTATUS NTAPI RamdiskCreateDiskDevice | ( | IN PRAMDISK_BUS_EXTENSION | DeviceExtension, |
IN PRAMDISK_CREATE_INPUT | Input, | ||
IN BOOLEAN | ValidateOnly, | ||
OUT PRAMDISK_DRIVE_EXTENSION * | NewDriveExtension | ||
) |
Definition at line 349 of file ramdisk.c.
Referenced by RamdiskCreateRamdisk().
NTSTATUS NTAPI RamdiskCreateRamdisk | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp, | ||
IN BOOLEAN | ValidateOnly | ||
) |
Definition at line 636 of file ramdisk.c.
Referenced by RamdiskDeviceControl(), and RamdiskWorkerThread().
Definition at line 1544 of file ramdisk.c.
Referenced by RamdiskPnp(), and RamdiskRemoveBusDevice().
Definition at line 1111 of file ramdisk.c.
Referenced by DriverEntry().
Definition at line 2282 of file ramdisk.c.
Referenced by DriverEntry().
Definition at line 711 of file ramdisk.c.
Referenced by RamdiskDeviceControl(), and RamdiskWorkerThread().
NTSTATUS NTAPI RamdiskIoCompletionRoutine | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp, | ||
IN PVOID | Context | ||
) |
Definition at line 1868 of file ramdisk.c.
Referenced by RamdiskPnp().
PVOID NTAPI RamdiskMapPages | ( | IN PRAMDISK_DRIVE_EXTENSION | DeviceExtension, |
IN LARGE_INTEGER | Offset, | ||
IN ULONG | Length, | ||
OUT PULONG | OutputLength | ||
) |
Definition at line 269 of file ramdisk.c.
Referenced by RamdiskCreateDiskDevice(), RamdiskGetPartitionInfo(), RamdiskReadWriteReal(), and RamdiskSetPartitionInfo().
Definition at line 1035 of file ramdisk.c.
Referenced by DriverEntry().
Definition at line 1881 of file ramdisk.c.
Referenced by DriverEntry().
Definition at line 2139 of file ramdisk.c.
Referenced by DriverEntry().
Definition at line 1840 of file ramdisk.c.
Referenced by RamdiskPnp().
Definition at line 1751 of file ramdisk.c.
Referenced by RamdiskPnp().
NTSTATUS NTAPI RamdiskQueryDeviceRelations | ( | IN DEVICE_RELATION_TYPE | Type, |
IN PDEVICE_OBJECT | DeviceObject, | ||
IN PIRP | Irp | ||
) |
Definition at line 1367 of file ramdisk.c.
Referenced by RamdiskPnp().
Definition at line 1788 of file ramdisk.c.
Referenced by RamdiskPnp().
Definition at line 1625 of file ramdisk.c.
Referenced by RamdiskPnp().
Definition at line 1047 of file ramdisk.c.
Referenced by DriverEntry().
Definition at line 939 of file ramdisk.c.
Referenced by RamdiskReadWrite().
Definition at line 1553 of file ramdisk.c.
Referenced by RamdiskPnp().
Definition at line 2238 of file ramdisk.c.
Referenced by DriverEntry().
Definition at line 771 of file ramdisk.c.
Referenced by RamdiskDeviceControl(), and RamdiskWorkerThread().
Definition at line 2211 of file ramdisk.c.
Referenced by DriverEntry().
VOID NTAPI RamdiskUnload | ( | IN PDRIVER_OBJECT | DriverObject | ) |
Definition at line 2317 of file ramdisk.c.
Referenced by DriverEntry().
VOID NTAPI RamdiskUnmapPages | ( | IN PRAMDISK_DRIVE_EXTENSION | DeviceExtension, |
IN PVOID | BaseAddress, | ||
IN LARGE_INTEGER | Offset, | ||
IN ULONG | Length | ||
) |
Definition at line 316 of file ramdisk.c.
Referenced by RamdiskCreateDiskDevice(), RamdiskGetPartitionInfo(), RamdiskReadWriteReal(), and RamdiskSetPartitionInfo().
Definition at line 813 of file ramdisk.c.
Referenced by SendIrpToThread().
Definition at line 913 of file ramdisk.c.
Referenced by RamdiskDeviceControl(), RamdiskFlushBuffers(), RamdiskReadWrite(), and RamdiskScsi().
ULONG DefaultViewCount |
Definition at line 120 of file ramdisk.c.
Referenced by QueryParameters().
ULONG DefaultViewLength |
Definition at line 123 of file ramdisk.c.
Referenced by QueryParameters().
UNICODE_STRING DriverRegistryPath |
Definition at line 124 of file ramdisk.c.
Referenced by DriverEntry(), and RamdiskUnload().
BOOLEAN ExportBootDiskAsCd |
Definition at line 125 of file ramdisk.c.
Referenced by DriverEntry(), and RamdiskCreateRamdisk().
BOOLEAN IsWinPEBoot |
Definition at line 126 of file ramdisk.c.
Referenced by DriverEntry(), RamdiskCreateDiskDevice(), and RamdiskCreateRamdisk().
ULONG MarkRamdisksAsRemovable |
Definition at line 118 of file ramdisk.c.
Referenced by QueryParameters(), and RamdiskQueryCapabilities().
ULONG MaximumPerDiskViewLength |
Definition at line 116 of file ramdisk.c.
Referenced by QueryParameters().
ULONG MaximumViewCount |
Definition at line 121 of file ramdisk.c.
Referenced by QueryParameters().
ULONG MaximumViewLength |
Definition at line 115 of file ramdisk.c.
Referenced by QueryParameters().
ULONG MinimumViewCount |
Definition at line 119 of file ramdisk.c.
Referenced by QueryParameters().
ULONG MinimumViewLength |
Definition at line 122 of file ramdisk.c.
Referenced by QueryParameters().
PDEVICE_OBJECT RamdiskBusFdo |
Definition at line 127 of file ramdisk.c.
Referenced by RamdiskAddDevice(), RamdiskCreateDiskDevice(), and RamdiskRemoveBusDevice().
ULONG ReportDetectedDevice |
Definition at line 117 of file ramdisk.c.
Referenced by DriverEntry(), QueryParameters(), and SerenumDetectLegacyDevice().