ReactOS
0.4.15-dev-4614-ga5a6101
|
#include "ntddk.h"
#include "scsi.h"
#include <wmidata.h>
#include "classpnp.h"
#include <wmistr.h>
#include "ntstrsafe.h"
#include <storswtr.h>
Go to the source code of this file.
Classes | |
struct | _DISK_GROUP_CONTEXT |
struct | _DISK_DATA |
struct | _DISK_MEDIA_TYPES_LIST |
struct | DISKREREGREQUEST |
struct | _DISK_VERIFY_WORKITEM_CONTEXT |
Typedefs | |
typedef struct _DISK_GROUP_CONTEXT | DISK_GROUP_CONTEXT |
typedef struct _DISK_GROUP_CONTEXT * | PDISK_GROUP_CONTEXT |
typedef enum _DISK_USER_WRITE_CACHE_SETTING | DISK_USER_WRITE_CACHE_SETTING |
typedef enum _DISK_USER_WRITE_CACHE_SETTING * | PDISK_USER_WRITE_CACHE_SETTING |
typedef struct _DISK_DATA | DISK_DATA |
typedef struct _DISK_DATA * | PDISK_DATA |
typedef struct _DISK_MEDIA_TYPES_LIST | DISK_MEDIA_TYPES_LIST |
typedef struct _DISK_MEDIA_TYPES_LIST * | PDISK_MEDIA_TYPES_LIST |
typedef struct DISKREREGREQUEST * | PDISKREREGREQUEST |
typedef struct _DISK_VERIFY_WORKITEM_CONTEXT | DISK_VERIFY_WORKITEM_CONTEXT |
typedef struct _DISK_VERIFY_WORKITEM_CONTEXT * | PDISK_VERIFY_WORKITEM_CONTEXT |
Enumerations | |
enum | _DISK_USER_WRITE_CACHE_SETTING { DiskWriteCacheDisable = 0, DiskWriteCacheEnable = 1, DiskWriteCacheDefault = -1 } |
Variables | |
CLASSPNP_SCAN_FOR_SPECIAL_INFO | DiskBadControllers [] |
const DISK_MEDIA_TYPES_LIST | DiskMediaTypes [] |
const DISK_MEDIA_TYPES_LIST | DiskMediaTypesExclude [] |
DRIVER_INITIALIZE | DriverEntry |
IO_WORKITEM_ROUTINE | DisableWriteCache |
IO_WORKITEM_ROUTINE | DiskIoctlVerifyThread |
IO_COMPLETION_ROUTINE | DiskFlushComplete |
GUIDREGINFO | DiskWmiFdoGuidList [] |
#define CHECK_IRQL | ( | ) |
#define DEBUG_COMP_ID DPFLTR_DISK_ID |
#define DiskGetDetectInfo | ( | FdoExtension, | |
DetectInfo | |||
) | (STATUS_UNSUCCESSFUL) |
#define DiskIsValidSmartSelfTest | ( | Subcommand | ) |
#define DiskReadDriveCapacity | ( | Fdo | ) | ClassReadDriveCapacity(Fdo) |
#define FUNCTIONAL_EXTENSION_SIZE sizeof(FUNCTIONAL_DEVICE_EXTENSION) + sizeof(DISK_DATA) |
#define WPP_CONTROL_GUIDS WPP_CONTROL_GUIDS_NORMAL_FLAGS(WPP_GUID_DISK) |
#define WPP_GUID_DISK (945186BF, 3DD6, 4f3f, 9C8E, 9EDD3FC9D558) |
typedef struct _DISK_DATA DISK_DATA |
typedef struct _DISK_DATA * PDISK_DATA |
typedef struct _DISK_GROUP_CONTEXT * PDISK_GROUP_CONTEXT |
typedef struct DISKREREGREQUEST * PDISKREREGREQUEST |
Enumerator | |
---|---|
DiskWriteCacheDisable | |
DiskWriteCacheEnable | |
DiskWriteCacheDefault |
Definition at line 177 of file disk.h.
NTSTATUS NTAPI DiskAddDevice | ( | IN PDRIVER_OBJECT | DriverObject, |
IN PDEVICE_OBJECT | Pdo | ||
) |
Definition at line 53 of file pnp.c.
Referenced by DriverEntry().
NTSTATUS DiskCreateFdo | ( | IN PDRIVER_OBJECT | DriverObject, |
IN PDEVICE_OBJECT | LowerDeviceObject, | ||
IN PULONG | DeviceCount, | ||
IN BOOLEAN | DasdAccessOnly | ||
) |
Definition at line 307 of file disk.c.
Referenced by DiskAddDevice().
VOID DiskCreateSymbolicLinks | ( | IN PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 676 of file pnp.c.
Referenced by DiskInitFdo().
VOID DiskDeleteSymbolicLinks | ( | IN PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 780 of file pnp.c.
Referenced by DiskRemoveDevice().
NTSTATUS DiskDetectFailurePrediction | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
PFAILURE_PREDICTION_METHOD | FailurePredictCapability, | ||
BOOLEAN | ScsiAddressAvailable | ||
) |
Definition at line 2230 of file diskwmi.c.
Referenced by DiskInitFdo().
NTSTATUS DiskDetermineMediaTypes | ( | IN PDEVICE_OBJECT | Fdo, |
IN PIRP | Irp, | ||
IN UCHAR | MediumType, | ||
IN UCHAR | DensityCode, | ||
IN BOOLEAN | MediaPresent, | ||
IN BOOLEAN | IsWritable | ||
) |
Definition at line 655 of file disk.c.
Referenced by DiskIoctlGetMediaTypesEx().
NTSTATUS DiskEnableDisableFailurePrediction | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
BOOLEAN | Enable | ||
) |
Definition at line 1126 of file diskwmi.c.
Referenced by DiskEnableDisableFailurePredictPolling(), DiskFdoExecuteWmiMethod(), DiskIoctlEnableFailurePrediction(), and DiskWmiFunctionControl().
NTSTATUS DiskEnableDisableFailurePredictPolling | ( | PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
BOOLEAN | Enable, | ||
ULONG | PollTimeInSeconds | ||
) |
Definition at line 1193 of file diskwmi.c.
Referenced by DiskFdoExecuteWmiMethod(), DiskInitFdo(), and DiskWmiFunctionControl().
NTSTATUS DiskEnableInfoExceptions | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
_In_ BOOLEAN | Enable | ||
) |
Definition at line 979 of file diskwmi.c.
Referenced by DiskIoctlEnableFailurePrediction().
NTSTATUS NTAPI DiskFdoExecuteWmiMethod | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp, | ||
IN ULONG | GuidIndex, | ||
IN ULONG | MethodId, | ||
IN ULONG | InBufferSize, | ||
IN ULONG | OutBufferSize, | ||
IN PUCHAR | Buffer | ||
) |
Definition at line 3045 of file diskwmi.c.
Referenced by DriverEntry().
VOID NTAPI DiskFdoProcessError | ( | PDEVICE_OBJECT | DeviceObject, |
PSCSI_REQUEST_BLOCK | Srb, | ||
NTSTATUS * | Status, | ||
BOOLEAN * | Retry | ||
) |
Definition at line 2276 of file disk.c.
Referenced by DriverEntry().
NTSTATUS NTAPI DiskFdoQueryWmiDataBlock | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp, | ||
IN ULONG | GuidIndex, | ||
IN ULONG | BufferAvail, | ||
OUT PUCHAR | Buffer | ||
) |
Definition at line 2638 of file diskwmi.c.
Referenced by DriverEntry().
NTSTATUS NTAPI DiskFdoQueryWmiRegInfo | ( | IN PDEVICE_OBJECT | DeviceObject, |
OUT ULONG * | RegFlags, | ||
OUT PUNICODE_STRING | InstanceName | ||
) |
Definition at line 2479 of file diskwmi.c.
Referenced by DiskFdoQueryWmiRegInfoEx(), and DriverEntry().
NTSTATUS NTAPI DiskFdoQueryWmiRegInfoEx | ( | IN PDEVICE_OBJECT | DeviceObject, |
OUT ULONG * | RegFlags, | ||
OUT PUNICODE_STRING | InstanceName, | ||
OUT PUNICODE_STRING | MofName | ||
) |
Definition at line 2577 of file diskwmi.c.
Referenced by DriverEntry().
NTSTATUS NTAPI DiskFdoSetWmiDataBlock | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp, | ||
IN ULONG | GuidIndex, | ||
IN ULONG | BufferSize, | ||
IN PUCHAR | Buffer | ||
) |
Definition at line 2869 of file diskwmi.c.
Referenced by DriverEntry().
NTSTATUS NTAPI DiskFdoSetWmiDataItem | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp, | ||
IN ULONG | GuidIndex, | ||
IN ULONG | DataItemId, | ||
IN ULONG | BufferSize, | ||
IN PUCHAR | Buffer | ||
) |
Definition at line 2975 of file diskwmi.c.
Referenced by DriverEntry().
VOID DiskFlushDispatch | ( | IN PDEVICE_OBJECT | Fdo, |
IN PDISK_GROUP_CONTEXT | FlushContext | ||
) |
Definition at line 1534 of file disk.c.
Referenced by DiskShutdownFlush().
Definition at line 612 of file pnp.c.
Referenced by DiskCreateFdo().
NTSTATUS NTAPI DiskGetCacheInformation | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN PDISK_CACHE_INFORMATION | CacheInfo | ||
) |
Definition at line 3019 of file disk.c.
Referenced by DiskIoctlGetCacheInformation(), and DiskStartFdo().
NTSTATUS DiskGetInfoExceptionInformation | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
OUT PMODE_INFO_EXCEPTIONS | ReturnPageData | ||
) |
NTSTATUS DiskGetModePage | ( | _In_ PDEVICE_OBJECT | Fdo, |
_In_ UCHAR | PageMode, | ||
_In_ UCHAR | PageControl, | ||
_In_ PMODE_PARAMETER_HEADER | ModeData, | ||
_Inout_ PULONG | ModeDataSize, | ||
_Out_ PVOID * | PageData | ||
) |
Definition at line 903 of file diskwmi.c.
Referenced by DiskEnableInfoExceptions().