ReactOS 0.4.16-dev-289-g096a551
|
#include <ntdddisk.h>
#include <ntddcdrm.h>
#include <ntddtape.h>
#include <ntddscsi.h>
#include <ntddstor.h>
#include <stdio.h>
#include <scsi.h>
Go to the source code of this file.
Classes | |
struct | _DICTIONARY |
struct | _CLASSPNP_SCAN_FOR_SPECIAL_INFO |
struct | _SRB_HISTORY_ITEM |
struct | _SRB_HISTORY |
struct | GUIDREGINFO |
struct | _CLASS_WMI_INFO |
struct | _CLASS_DEV_INFO |
struct | _CLASS_INIT_DATA |
struct | _FILE_OBJECT_EXTENSION |
struct | _CLASS_WORKING_SET |
struct | _CLASS_INTERPRET_SENSE_INFO2 |
struct | _CLASS_DRIVER_EXTENSION |
struct | _COMMON_DEVICE_EXTENSION |
struct | _PHYSICAL_DEVICE_EXTENSION |
struct | _CLASS_POWER_OPTIONS |
struct | _CLASS_POWER_CONTEXT |
struct | _COMPLETION_CONTEXT |
struct | _CLASS_QUERY_WMI_REGINFO_EX_LIST |
struct | _CLASS_VPD_B1_DATA |
struct | _CLASS_VPD_B0_DATA |
struct | _CLASS_VPD_B2_DATA |
struct | _CLASS_READ_CAPACITY16_DATA |
struct | _CLASS_VPD_ECOP_BLOCK_DEVICE_ROD_LIMITS |
struct | _CLASS_FUNCTION_SUPPORT_INFO |
struct | _FUNCTIONAL_DEVICE_EXTENSION |
#define _CLASS_ |
Definition at line 4 of file classpnp.h.
#define ADJUST_FUA_FLAG | ( | fdoExt | ) |
Definition at line 53 of file classpnp.h.
Definition at line 24 of file classpnp.h.
Definition at line 27 of file classpnp.h.
Definition at line 94 of file classpnp.h.
#define CLASS_INTERPRET_SENSE_INFO2_MAXIMUM_HISTORY_COUNT 30000 |
Definition at line 163 of file classpnp.h.
#define CLASS_SPECIAL_CAUSE_NOT_REPORTABLE_HACK 0x00000020 |
Definition at line 169 of file classpnp.h.
#define CLASS_SPECIAL_DISABLE_SPIN_DOWN 0x00000001 |
Definition at line 165 of file classpnp.h.
#define CLASS_SPECIAL_DISABLE_SPIN_UP 0x00000002 |
Definition at line 166 of file classpnp.h.
#define CLASS_SPECIAL_DISABLE_WRITE_CACHE 0x00000010 |
Definition at line 168 of file classpnp.h.
#define CLASS_SPECIAL_DISABLE_WRITE_CACHE_NOT_SUPPORTED 0x00000040 |
Definition at line 171 of file classpnp.h.
#define CLASS_SPECIAL_FUA_NOT_SUPPORTED 0x00000080 |
Definition at line 174 of file classpnp.h.
#define CLASS_SPECIAL_MODIFY_CACHE_UNSUCCESSFUL 0x00000040 |
Definition at line 173 of file classpnp.h.
#define CLASS_SPECIAL_NO_QUEUE_LOCK 0x00000008 |
Definition at line 167 of file classpnp.h.
#define CLASS_SPECIAL_RESERVED (~CLASS_SPECIAL_VALID_MASK) |
Definition at line 176 of file classpnp.h.
#define CLASS_SPECIAL_VALID_MASK 0x000000FB |
Definition at line 175 of file classpnp.h.
#define CLASS_SRB_SCSI_REQUEST_BLOCK 0x1 |
Definition at line 572 of file classpnp.h.
#define CLASS_SRB_STORAGE_REQUEST_BLOCK 0x2 |
Definition at line 573 of file classpnp.h.
#define CLASS_SRBEX_NO_SRBEX_DATA_BUFFER_SIZE (sizeof(STORAGE_REQUEST_BLOCK) + sizeof(STOR_ADDR_BTL8)) |
Definition at line 696 of file classpnp.h.
#define CLASS_SRBEX_SCSI_CDB16_BUFFER_SIZE (sizeof(STORAGE_REQUEST_BLOCK) + sizeof(STOR_ADDR_BTL8) + sizeof(SRBEX_DATA_SCSI_CDB16)) |
Definition at line 695 of file classpnp.h.
#define CLASS_TAG_AUTORUN_DISABLE 'ALcS' |
Definition at line 77 of file classpnp.h.
#define CLASS_TAG_DEVICE_CONTROL 'OIcS' |
Definition at line 85 of file classpnp.h.
#define CLASS_TAG_FAILURE_PREDICT 'fLcS' |
Definition at line 84 of file classpnp.h.
#define CLASS_TAG_FILE_OBJECT_EXTENSION 'FLcS' |
Definition at line 78 of file classpnp.h.
#define CLASS_TAG_LB_PROVISIONING 'PLcS' |
Definition at line 89 of file classpnp.h.
#define CLASS_TAG_LOCK_TRACKING 'TLcS' |
Definition at line 88 of file classpnp.h.
#define CLASS_TAG_MANAGE_DATASET 'MDcS' |
Definition at line 90 of file classpnp.h.
#define CLASS_TAG_MEDIA_CHANGE_DETECTION 'MLcS' |
Definition at line 79 of file classpnp.h.
#define CLASS_TAG_MODE_DATA 'oLcS' |
Definition at line 86 of file classpnp.h.
#define CLASS_TAG_MOUNT 'mLcS' |
Definition at line 80 of file classpnp.h.
#define CLASS_TAG_MULTIPATH 'mPcS' |
Definition at line 87 of file classpnp.h.
#define CLASS_TAG_POWER 'WLcS' |
Definition at line 82 of file classpnp.h.
#define CLASS_TAG_RELEASE_QUEUE 'qLcS' |
Definition at line 81 of file classpnp.h.
#define CLASS_TAG_WMI 'wLcS' |
Definition at line 83 of file classpnp.h.
#define CLASS_WORKING_SET_MAXIMUM 2048 |
Definition at line 161 of file classpnp.h.
#define ClassAcquireRemoveLock | ( | devobj, | |
tag | |||
) | ClassAcquireRemoveLockEx(devobj, tag, __FILE__, __LINE__) |
Definition at line 100 of file classpnp.h.
Definition at line 146 of file classpnp.h.
Definition at line 150 of file classpnp.h.
Definition at line 158 of file classpnp.h.
#define DEBUG_BUFFER_LENGTH 256 |
Definition at line 128 of file classpnp.h.
Definition at line 125 of file classpnp.h.
#define DEFAULT_FAILURE_PREDICTION_PERIOD 60 * 60 * 1 |
Definition at line 190 of file classpnp.h.
#define DEV_NO_12BYTE_CDB 0x00000008 |
Definition at line 181 of file classpnp.h.
#define DEV_POWER_PROTECTED 0x00000010 |
Definition at line 182 of file classpnp.h.
#define DEV_SAFE_START_UNIT 0x00000004 |
Definition at line 180 of file classpnp.h.
#define DEV_USE_16BYTE_CDB 0x00000020 |
Definition at line 183 of file classpnp.h.
#define DEV_USE_SCSI1 0x00000002 |
Definition at line 179 of file classpnp.h.
#define DEV_WRITE_CACHE 0x00000001 |
Definition at line 178 of file classpnp.h.
#define DO_MCD | ( | fdoExtension | ) |
Definition at line 35 of file classpnp.h.
#define FINALLY __tryLabel: |
Definition at line 116 of file classpnp.h.
#define FREE_POOL | ( | _PoolPtr | ) |
Definition at line 63 of file classpnp.h.
#define GUID_CLASSPNP_QUERY_REGINFOEX {0x00e34b11, 0x2444, 0x4745, {0xa5, 0x3d, 0x62, 0x01, 0x00, 0xcd, 0x82, 0xf7}} |
Definition at line 185 of file classpnp.h.
#define GUID_CLASSPNP_SENSEINFO2 {0x509a8c5f, 0x71d7, 0x48f6, {0x82, 0x1e, 0x17, 0x3c, 0x49, 0xbf, 0x2f, 0x18}} |
Definition at line 186 of file classpnp.h.
#define GUID_CLASSPNP_SRB_SUPPORT {0x0a483941, 0xbdfd, 0x4f7b, {0xbe, 0x95, 0xce, 0xe2, 0xa2, 0x16, 0x09, 0x0c}} |
Definition at line 188 of file classpnp.h.
#define GUID_CLASSPNP_WORKING_SET {0x105701b0, 0x9e9b, 0x47cb, {0x97, 0x80, 0x81, 0x19, 0x8a, 0xf7, 0xb5, 0x24}} |
Definition at line 187 of file classpnp.h.
#define IS_CLEANUP_REQUEST | ( | majorFunction | ) |
Definition at line 30 of file classpnp.h.
#define IS_SCSIOP_READ | ( | opCode | ) |
Definition at line 39 of file classpnp.h.
#define IS_SCSIOP_READWRITE | ( | opCode | ) | (IS_SCSIOP_READ(opCode) || IS_SCSIOP_WRITE(opCode)) |
Definition at line 51 of file classpnp.h.
#define IS_SCSIOP_WRITE | ( | opCode | ) |
Definition at line 45 of file classpnp.h.
#define LEAVE goto __tryLabel; |
Definition at line 115 of file classpnp.h.
#define MAXIMUM_RETRIES 4 |
Definition at line 92 of file classpnp.h.
#define MAXIMUM_RETRY_FOR_SINGLE_IO_IN_100NS_UNITS (0x3b9aca00) |
Definition at line 192 of file classpnp.h.
#define MEDIA_CHANGE_DEFAULT_TIME 1 |
Definition at line 132 of file classpnp.h.
#define MEDIA_CHANGE_TIMEOUT_TIME 300 |
Definition at line 133 of file classpnp.h.
#define NO_REMOVE 0 |
Definition at line 96 of file classpnp.h.
#define REMOVE_COMPLETE 2 |
Definition at line 98 of file classpnp.h.
#define REMOVE_PENDING 1 |
Definition at line 97 of file classpnp.h.
Definition at line 157 of file classpnp.h.
#define SRB_CLASS_FLAGS_FREE_MDL 0x80000000 |
Definition at line 22 of file classpnp.h.
#define SRB_CLASS_FLAGS_LOW_PRIORITY 0x10000000 |
Definition at line 19 of file classpnp.h.
#define SRB_CLASS_FLAGS_PAGING 0x40000000 |
Definition at line 21 of file classpnp.h.
#define SRB_CLASS_FLAGS_PERSISTANT 0x20000000 |
Definition at line 20 of file classpnp.h.
#define START_UNIT_TIMEOUT (60 * 4) |
Definition at line 130 of file classpnp.h.
Definition at line 159 of file classpnp.h.
#define TRY |
Definition at line 114 of file classpnp.h.
typedef enum _CLASS_DEBUG_LEVEL CLASS_DEBUG_LEVEL |
typedef struct _CLASS_DEV_INFO CLASS_DEV_INFO |
typedef struct _CLASS_INIT_DATA CLASS_INIT_DATA |
Definition at line 276 of file classpnp.h.
Definition at line 285 of file classpnp.h.
Definition at line 279 of file classpnp.h.
typedef struct _CLASS_PRIVATE_PDO_DATA CLASS_PRIVATE_PDO_DATA |
Definition at line 282 of file classpnp.h.
typedef struct _CLASS_WMI_INFO CLASS_WMI_INFO |
typedef struct _DICTIONARY DICTIONARY |
Definition at line 291 of file classpnp.h.
Definition at line 288 of file classpnp.h.
typedef enum _CLASS_DEBUG_LEVEL * PCLASS_DEBUG_LEVEL |
typedef struct _CLASS_DEV_INFO * PCLASS_DEV_INFO |
typedef struct _CLASS_INIT_DATA * PCLASS_INIT_DATA |
Definition at line 276 of file classpnp.h.
typedef struct _CLASS_POWER_CONTEXT * PCLASS_POWER_CONTEXT |
typedef NTSTATUS(NTAPI * PCLASS_POWER_DEVICE) (_In_ PDEVICE_OBJECT DeviceObject, _In_ PIRP Irp) |
Definition at line 320 of file classpnp.h.
typedef struct _CLASS_POWER_OPTIONS * PCLASS_POWER_OPTIONS |
Definition at line 285 of file classpnp.h.
Definition at line 279 of file classpnp.h.
typedef struct _CLASS_PRIVATE_PDO_DATA * PCLASS_PRIVATE_PDO_DATA |
Definition at line 282 of file classpnp.h.
typedef struct _CLASS_VPD_B0_DATA * PCLASS_VPD_B0_DATA |
typedef struct _CLASS_VPD_B1_DATA * PCLASS_VPD_B1_DATA |
typedef struct _CLASS_VPD_B2_DATA * PCLASS_VPD_B2_DATA |
typedef struct _CLASS_WMI_INFO * PCLASS_WMI_INFO |
typedef struct _CLASS_WORKING_SET * PCLASS_WORKING_SET |
typedef struct _COMPLETION_CONTEXT * PCOMPLETION_CONTEXT |
typedef struct _DICTIONARY * PDICTIONARY |
typedef struct _DICTIONARY_HEADER * PDICTIONARY_HEADER |
Definition at line 291 of file classpnp.h.
typedef struct GUIDREGINFO * PGUIDREGINFO |
Definition at line 288 of file classpnp.h.
typedef struct _SRB_HISTORY * PSRB_HISTORY |
typedef struct _SRB_HISTORY_ITEM * PSRB_HISTORY_ITEM |
typedef struct _SRB_HISTORY SRB_HISTORY |
typedef struct _SRB_HISTORY_ITEM SRB_HISTORY_ITEM |
Definition at line 212 of file classpnp.h.
Enumerator | |
---|---|
MediaUnknown | |
MediaPresent | |
MediaNotPresent | |
MediaUnavailable | |
MediaUnknown | |
MediaPresent | |
MediaNotPresent | |
MediaUnavailable |
Definition at line 205 of file classpnp.h.
Enumerator | |
---|---|
SupportUnknown | |
Supported | |
NotSupported |
Definition at line 730 of file classpnp.h.
Enumerator | |
---|---|
PowerDownDeviceInitial | |
PowerDownDeviceLocked | |
PowerDownDeviceStopped | |
PowerDownDeviceOff | |
PowerDownDeviceUnlocked |
Definition at line 240 of file classpnp.h.
Enumerator | |
---|---|
PowerDownDeviceInitial2 | |
PowerDownDeviceLocked2 | |
PowerDownDeviceFlushed2 | |
PowerDownDeviceStopped2 | |
PowerDownDeviceOff2 | |
PowerDownDeviceUnlocked2 |
Definition at line 248 of file classpnp.h.
Enumerator | |
---|---|
PowerDownDeviceInitial3 | |
PowerDownDeviceLocked3 | |
PowerDownDeviceQuiesced3 | |
PowerDownDeviceFlushed3 | |
PowerDownDeviceStopped3 | |
PowerDownDeviceOff3 | |
PowerDownDeviceUnlocked3 |
Definition at line 257 of file classpnp.h.
Enumerator | |
---|---|
PowerUpDeviceInitial | |
PowerUpDeviceLocked | |
PowerUpDeviceOn | |
PowerUpDeviceStarted | |
PowerUpDeviceUnlocked |
Definition at line 267 of file classpnp.h.
Enumerator | |
---|---|
EventGeneration | |
DataBlockCollection |
Definition at line 228 of file classpnp.h.
Enumerator | |
---|---|
FailurePredictionNone | |
FailurePredictionIoctl | |
FailurePredictionSmart | |
FailurePredictionSense |
Definition at line 233 of file classpnp.h.
_In_opt_ PIRP _In_ PSCSI_REQUEST_BLOCK _In_ UCHAR _In_ ULONG _In_ ULONG _In_opt_ SRB_HISTORY _Out_ NTSTATUS _Out_ _Deref_out_range_ | ( | 0 | , |
MAXIMUM_RETRY_FOR_SINGLE_IO_IN_100NS_UNITS | |||
) |
_In_ PIRP _In_ ULONG _In_ ULONG _In_ ULONG _In_ ULONG _In_reads_ | ( | _Inexpressible_(max(InBufferSize, OutBufferSize)) | ) |
_In_ PCHAR _In_ ULONG _In_reads_bytes_opt_ | ( | InquiryDataLength | ) |
_IRQL_requires_ | ( | DISPATCH_LEVEL | ) |
Definition at line 1459 of file expool.c.
_IRQL_requires_max_ | ( | DISPATCH_LEVEL | ) |
Definition at line 347 of file common.c.
_IRQL_requires_max_ | ( | PASSIVE_LEVEL | ) |
Queries information details about a security descriptor.
Computes the quota size of a security descriptor.
Assigns a security descriptor for a new object.
An extended function that assigns a security descriptor for a new object.
Frees a security descriptor.
An extended function that sets new information data to a security descriptor.
Modifies some information data about a security descriptor.
[in] | SecurityInformation | Security information details to be queried from a security descriptor. |
[out] | SecurityDescriptor | The returned security descriptor with security information data. |
[in,out] | Length | The returned length of a security descriptor. |
[in,out] | ObjectsSecurityDescriptor | The returned object security descriptor. |
[in] | Object | If specified, the function will use this arbitrary object that points to an object security descriptor. |
[in] | SecurityInformation | Security information details to be set. |
[in] | SecurityDescriptor | A security descriptor where its info is to be changed. |
[in,out] | ObjectsSecurityDescriptor | The returned pointer to security descriptor objects. |
[in] | PoolType | Pool type for the new security descriptor to allocate. |
[in] | GenericMapping | The generic mapping of access rights masks. |
[in] | Object | If specified, the function will use this arbitrary object that points to an object security descriptor. |
[in] | SecurityInformation | Security information details to be set. |
[in] | SecurityDescriptor | A security descriptor where its info is to be changed. |
[in,out] | ObjectsSecurityDescriptor | The returned pointer to security descriptor objects. |
[in] | AutoInheritFlags | Flags bitmask inheritation, influencing how the security descriptor can be inherited and if it can be in the first place. |
[in] | PoolType | Pool type for the new security descriptor to allocate. |
[in] | GenericMapping | The generic mapping of access rights masks. |
[in] | SecurityDescriptor | A security descriptor to be freed from memory. |
[in] | _ParentDescriptor | A security descriptor of the parent object that is being created. |
[in] | _ExplicitDescriptor | An explicit security descriptor that is applied to a new object. |
[out] | NewDescriptor | The new allocated security descriptor. |
[in] | ObjectType | The type of the new object. |
[in] | IsDirectoryObject | Set this to TRUE if the newly created object is a directory object, otherwise set this to FALSE. |
[in] | AutoInheritFlags | Automatic inheritance flags that influence how access control entries within ACLs from security descriptors are inherited. |
[in] | SubjectContext | Security subject context of the new object. |
[in] | GenericMapping | Generic mapping of access mask rights. |
[in] | PoolType | This parameter is unused. |
[in] | ParentDescriptor | A security descriptor of the parent object that is being created. |
[in] | ExplicitDescriptor | An explicit security descriptor that is applied to a new object. |
[out] | NewDescriptor | The new allocated security descriptor. |
[in] | IsDirectoryObject | Set this to TRUE if the newly created object is a directory object, otherwise set this to FALSE. |
[in] | SubjectContext | Security subject context of the new object. |
[in] | GenericMapping | Generic mapping of access mask rights. |
[in] | PoolType | This parameter is unused. |
[in] | SecurityDescriptor | A security descriptor. |
[out] | QuotaInfoSize | The returned quota size of the given security descriptor to the caller. The function may return 0 to this parameter if the descriptor doesn't have a group or a discretionary access control list (DACL) even. |
Definition at line 923 of file Messaging.c.
C_ASSERT | ( | (MAXULONG - sizeof(SRB_HISTORY))/30000 >=sizeof(SRB_HISTORY_ITEM) | ) |
SCSIPORT_API ULONG NTAPI ClassAcquireRemoveLockEx | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
PVOID | Tag, | ||
_In_ PCSTR | File, | ||
_In_ ULONG | Line | ||
) |
SCSIPORT_API NTSTATUS NTAPI ClassAsynchronousCompletion | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PVOID | Event | ||
) |
Definition at line 3246 of file class.c.
Referenced by ClassSendStartUnit(), ResetBus(), and ScsiFlopProcessError().
SCSIPORT_API NTSTATUS NTAPI ClassBuildRequest | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_In_ PIRP | Irp | ||
) |
Definition at line 505 of file obsolete.c.
SCSIPORT_API VOID NTAPI ClassCheckMediaState | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 1752 of file autorun.c.
Referenced by _Function_class_(), and ClasspStorageEventNotification().
SCSIPORT_API NTSTATUS NTAPI ClassCheckVerifyComplete | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PVOID | Context | ||
) |
SCSIPORT_API VOID NTAPI ClassCompleteRequest | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_In_ PIRP | Irp, | ||
_In_ CCHAR | PriorityBoost | ||
) |
Definition at line 401 of file lock.c.
Referenced by _IRQL_requires_max_(), _Success_(), ClassCheckVerifyComplete(), ClassCreateClose(), ClassDeviceControl(), ClassDeviceControlDispatch(), ClassDeviceGetLBProvisioningResources(), ClassDeviceHwFirmwareActivateProcess(), ClassDeviceHwFirmwareDownloadProcess(), ClassDeviceHwFirmwareGetInfoProcess(), ClassDispatchPnp(), ClassDispatchPower(), ClassInternalIoControl(), ClassIoCompleteAssociated(), ClassMinimalPowerHandler(), ClasspAccessAlignmentProperty(), ClasspCompleteOffloadRequest(), ClasspDeviceGetLBAStatus(), ClasspDeviceLBProvisioningProperty(), ClasspDeviceMediaTypeProperty(), ClasspDeviceSeekPenaltyProperty(), ClasspDeviceTrimProcess(), ClasspDeviceTrimProperty(), ClasspDuidQueryProperty(), ClasspMcnControl(), ClasspPersistentReserve(), ClasspPowerDownCompletion(), ClasspPowerHandler(), ClasspPowerUpCompletion(), ClasspPriorityHint(), ClasspStartIo(), ClasspStorageEventNotification(), ClasspWriteCacheProperty(), ClassReadWrite(), ClassShutdownFlush(), ClassSystemControl(), ClassWmiCompleteRequest(), DiskDeviceControl(), DiskFlushComplete(), DiskIoctlVerifyThread(), DiskShutdownFlush(), ScsiFlopDeviceControl(), and TransferPktComplete().
SCSIPORT_API VOID ClassDebugPrint | ( | _In_ CLASS_DEBUG_LEVEL | DebugPrintLevel, |
_In_z_ PCCHAR | DebugMessage, | ||
... | |||
) |
SCSIPORT_API NTSTATUS NTAPI ClassDeviceControl | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_Inout_ PIRP | Irp | ||
) |
Definition at line 7317 of file class.c.
SCSIPORT_API PVOID NTAPI ClassFindModePage | ( | _In_reads_bytes_(Length) PCHAR | ModeSenseBuffer, |
_In_ ULONG | Length, | ||
_In_ UCHAR | PageMode, | ||
_In_ BOOLEAN | Use6Byte | ||
) |
Definition at line 6798 of file class.c.
Referenced by ClasspWriteCacheProperty(), ClasspZeroQERR(), DetermineDriveType(), DiskGetCacheInformation(), DiskGetInfoExceptionInformation(), DiskGetModePage(), DiskInfoExceptionComplete(), DiskSetCacheInformation(), and FormatMedia().
SCSIPORT_API NTSTATUS NTAPI ClassForwardIrpSynchronous | ( | _In_ PCOMMON_DEVICE_EXTENSION | CommonExtension, |
_In_ PIRP | Irp | ||
) |
Definition at line 11343 of file class.c.
Referenced by ClassDispatchPnp(), ClasspAccessAlignmentProperty(), ClasspDeviceSeekPenaltyProperty(), ClasspDeviceTrimProcess(), ClasspDeviceTrimProperty(), and ClasspPriorityHint().
SCSIPORT_API PVPB NTAPI ClassGetVpb | ( | _In_ PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 11473 of file class.c.
Referenced by ClassInterpretSenseInfo(), ClassMinimalPowerHandler(), and ClasspInterpretGesnData().
SCSIPORT_API NTSTATUS NTAPI ClassInternalIoControl | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
SCSIPORT_API BOOLEAN NTAPI ClassInterpretSenseInfo | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_In_ PSCSI_REQUEST_BLOCK | Srb, | ||
_In_ UCHAR | MajorFunctionCode, | ||
_In_ ULONG | IoDeviceCode, | ||
_In_ ULONG | RetryCount, | ||
_Out_ NTSTATUS * | Status, | ||
_Out_opt_ _Deref_out_range_(0, 100) ULONG * | RetryInterval | ||
) |
Definition at line 4452 of file class.c.
Referenced by ClasspReceivePopulateTokenInformationTransferPacketDone(), ClasspReceiveWriteUsingTokenInformationTransferPacketDone(), DiskInfoExceptionComplete(), InterpretSenseInfoWithoutHistory(), and InterpretTransferPacketError().
SCSIPORT_API NTSTATUS NTAPI ClassIoComplete | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PVOID | Context | ||
) |
SCSIPORT_API NTSTATUS NTAPI ClassIoCompleteAssociated | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PVOID | Context | ||
) |
SCSIPORT_API ULONG NTAPI ClassModeSense | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_In_reads_bytes_(Length) PCHAR | ModeSenseBuffer, | ||
_In_ ULONG | Length, | ||
_In_ UCHAR | PageMode | ||
) |
Definition at line 6637 of file class.c.
Referenced by ClasspWriteCacheProperty(), ClasspZeroQERR(), DetermineDriveType(), DiskGetCacheInformation(), DiskGetInfoExceptionInformation(), DiskSetCacheInformation(), FormatMedia(), and ScsiFlopDeviceControl().
_Must_inspect_result_ SCSIPORT_API NTSTATUS NTAPI ClassReadDriveCapacity | ( | _In_ PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 2742 of file class.c.
Referenced by ClassDeviceControl(), ClasspDeviceGetLBAStatusWorker(), ClasspDeviceLBProvisioningProperty(), ClasspDeviceTrimProcess(), DetermineMediaType(), DiskInitFdo(), and USBFlopGetMediaTypes().
SCSIPORT_API VOID NTAPI ClassReleaseChildLock | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 12019 of file class.c.
Referenced by ClassAddChild(), ClassRemoveChild(), and ClassRetrieveDeviceRelations().
SCSIPORT_API VOID NTAPI ClassReleaseQueue | ( | _In_ PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 11589 of file class.c.
Referenced by ClassAsynchronousCompletion(), ClassIoComplete(), ClassIoCompleteAssociated(), DiskInfoExceptionComplete(), and TransferPktComplete().
SCSIPORT_API VOID NTAPI ClassReleaseRemoveLock | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
PIRP | Tag | ||
) |
SCSIPORT_API VOID NTAPI ClassResetMediaChangeTimer | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 1804 of file autorun.c.
Referenced by ClasspMediaChangeDetectionCompletion().
VOID NTAPI ClassSendDeviceIoControlSynchronous | ( | _In_ ULONG | IoControlCode, |
_In_ PDEVICE_OBJECT | TargetDeviceObject, | ||
_Inout_updates_opt_(_Inexpressible_(max(InputBufferLength, OutputBufferLength))) PVOID | Buffer, | ||
_In_ ULONG | InputBufferLength, | ||
_In_ ULONG | OutputBufferLength, | ||
_In_ BOOLEAN | InternalDeviceIoControl, | ||
_Out_ PIO_STATUS_BLOCK | IoStatus | ||
) |
Definition at line 11065 of file class.c.
Referenced by ClasspGetHwFirmwareInfo(), ClasspSendEnableIdlePowerIoctl(), and DiskIoctlSmartGetVersion().
SCSIPORT_API NTSTATUS NTAPI ClassSendIrpSynchronous | ( | _In_ PDEVICE_OBJECT | TargetDeviceObject, |
_In_ PIRP | Irp | ||
) |
Definition at line 11373 of file class.c.
Referenced by ClassForwardIrpSynchronous(), and ClassSendDeviceIoControlSynchronous().
SCSIPORT_API NTSTATUS NTAPI ClassSendSrbAsynchronous | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_Inout_ PSCSI_REQUEST_BLOCK | Srb, | ||
_In_ PIRP | Irp, | ||
_In_reads_bytes_opt_(BufferLength) __drv_aliasesMem PVOID | BufferAddress, | ||
_In_ ULONG | BufferLength, | ||
_In_ BOOLEAN | WriteToDevice | ||
) |
SCSIPORT_API NTSTATUS NTAPI ClassSendSrbSynchronous | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_Inout_ PSCSI_REQUEST_BLOCK | Srb, | ||
_In_reads_bytes_opt_(BufferLength) PVOID | BufferAddress, | ||
_In_ ULONG | BufferLength, | ||
_In_ BOOLEAN | WriteToDevice | ||
) |
Definition at line 4042 of file class.c.
Referenced by ClassGetLBProvisioningLogPage(), ClasspCleanupProtectedLocks(), ClasspDeviceGetBlockDeviceCharacteristicsVPDPage(), ClasspDeviceGetBlockLimitsVPDPage(), ClasspDeviceGetLBProvisioningVPDPage(), ClasspEjectionControl(), ClasspGetBlockDeviceTokenLimitsInfo(), ClasspGetInquiryVpdSupportInfo(), ClasspWriteCacheProperty(), ClassReadCapacity16(), DetermineMediaType(), DeviceProcessDsmTrimRequest(), DiskFlushDispatch(), DiskIoctlGetMediaTypesEx(), DiskIoctlIsWritable(), DiskIoctlReassignBlocks(), DiskIoctlReassignBlocksEx(), DiskIoctlVerifyThread(), DiskModeSelect(), DiskShutdownFlush(), FormatMedia(), GetLBAStatus(), USBFlopFormatTracks(), and USBFlopGetMediaTypes().
VOID NTAPI ClassSendStartUnit | ( | _In_ PDEVICE_OBJECT | DeviceObject | ) |
Definition at line 3071 of file class.c.
Referenced by ClassInterpretSenseInfo().
SCSIPORT_API NTSTATUS NTAPI ClassSpinDownPowerHandler | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_In_ PIRP | Irp | ||
) |
Referenced by ClassStopUnitPowerHandler(), and DriverEntry().
SCSIPORT_API VOID NTAPI ClassSplitRequest | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_In_ PIRP | Irp, | ||
_In_ ULONG | MaximumBytes | ||
) |
Definition at line 61 of file obsolete.c.
Definition at line 2048 of file power.c.
SCSIPORT_API NTSTATUS NTAPI ClassWmiCompleteRequest | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_Inout_ PIRP | Irp, | ||
_In_ NTSTATUS | Status, | ||
_In_ ULONG | BufferUsed, | ||
_In_ CCHAR | PriorityBoost | ||
) |
Definition at line 1009 of file classwmi.c.
Referenced by ClassQueryInternalDataBlock(), ClassSystemControl(), DiskFdoExecuteWmiMethod(), DiskFdoQueryWmiDataBlock(), DiskFdoSetWmiDataBlock(), DiskFdoSetWmiDataItem(), and DiskWmiFunctionControl().
_In_z_ PCCHAR _In_ PDEVICE_OBJECT _In_ BOOLEAN _Outptr_result_nullonfailure_ _At_ * DeviceObject | ( | Mem | ) |
|
static |
Definition at line 1475 of file classpnp.h.
FORCEINLINE UCHAR GET_FDO_EXTENSON_SENSE_DATA_LENGTH | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 1437 of file classpnp.h.
Referenced by _Success_(), ClasspBuildRequestEx(), ClasspPowerDownCompletion(), ClasspPowerUpCompletion(), and FREE_PORT_ALLOCATED_SENSE_BUFFER_EX().
|
static |
Definition at line 1464 of file classpnp.h.
Definition at line 1182 of file classpnp.h.
Definition at line 1275 of file classpnp.h.
Referenced by ClasspInitializePolling().
Definition at line 721 of file classpnp.h.
Referenced by _IRQL_requires_max_(), BlTblFindEntry(), CallbackFunction(), CmiCallRegisteredCallbacks(), DeviceTableCompare(), DriverEntry(), DrvEvaluateStmObject(), ExDoCallBack(), ExNotifyCallback(), FileTableCompareWithSameAttributes(), FileTableCompareWithSubsetAttributes(), ScsiPortInitialize(), and StorPortInitialize().
Definition at line 420 of file classpnp.h.
Referenced by ClassQueryInternalDataBlock(), DiskFdoQueryWmiDataBlock(), and InPortQueryWmiDataBlock().
Definition at line 429 of file classpnp.h.
_In_ PDEVICE_CAPABILITIES Capabilities |
Definition at line 392 of file classpnp.h.
IO_COMPLETION_ROUTINE ClassSignalCompletion |
Definition at line 1330 of file classpnp.h.
Referenced by ClasspCreateClose(), ClasspInitializeGesn(), and ClassSendIrpSynchronous().
Definition at line 972 of file classpnp.h.
Definition at line 438 of file classpnp.h.
Definition at line 1160 of file classpnp.h.
_In_ CLASSPNP_SCAN_FOR_SPECIAL_INFO DeviceList[] |
Definition at line 1501 of file classpnp.h.
Definition at line 1229 of file classpnp.h.
Definition at line 1230 of file classpnp.h.
Referenced by AtaCommand(), AtaCommand48(), AtaInit(), AtapiChipInit(), AtapiDmaDone(), AtapiDmaInit(), AtapiDmaSetup(), AtapiHwInitializeChanger(), AtapiInterrupt__(), AtapiReadChipConfig(), AtapiSendCommand(), AtapiSoftReset(), AtapiStartIo__(), AtaSetTransferMode(), BuildAhciInternalSrb(), DiskGenerateDeviceName(), FdcFdoQueryBusRelations(), FdoEnumerateDevices(), HalpFindMatchingDebuggingDevice(), IdeMediaStatus(), IdentifyDevice(), IdeReadWrite(), IdeSendCommand(), IdeSendSmartCommand(), IdeVerify(), InstallBootManagerAndBootEntries(), IntCreateRegistryPath(), IntVideoPortAddDeviceMapLink(), IntVideoPortCreateAdapterDeviceObject(), IopComputeHarddiskDerangements(), IopCreateArcNamesCd(), IopCreateArcNamesDisk(), IssueIdentify(), MapError(), PciIdeXPdoCreateDevice(), PciIsDebuggingDevice(), PdoQueryCapabilities(), SelectDevice(), SelectDrive(), SetDriveParameters(), SpiGetPciConfigData(), SysAudioOpenVirtualDevice(), UniAtaAhciAdjustIoFlags(), UniataAhciBeginTransaction(), UniataAhciReadPM(), UniataAhciSendCommand(), UniataAhciSendPIOCommand(), UniataAhciSendPIOCommandDirect(), UniataAhciSetupFIS_H2D(), UniataAhciSetupFIS_H2D_Direct(), UniataAhciSoftReset(), UniataAhciWritePM(), UniataChipDetect(), UniAtaReadLunConfig(), UniataSataEvent(), UniataSataReadPM(), UniataSataSoftReset(), UniataSataWritePM(), UniataSnapAtaRegs(), USBPORT_AddDevice(), USBPORT_CreatePdo(), and VideoPortGetAccessRanges().
Definition at line 460 of file classpnp.h.
Definition at line 1252 of file classpnp.h.
Definition at line 1267 of file classpnp.h.
Definition at line 1430 of file classpnp.h.
Referenced by _IRQL_requires_max_(), and DeviceSendNotification().
_In_ FAILURE_PREDICTION_METHOD FailurePredictionMethod |
Definition at line 1301 of file classpnp.h.
Definition at line 1422 of file classpnp.h.
_In_ CLASSPNP_SCAN_FOR_SPECIAL_INFO _In_ PCLASS_SCAN_FOR_SPECIAL_HANDLER Function |
Definition at line 459 of file classpnp.h.
Definition at line 419 of file classpnp.h.
Referenced by BT958QueryWmiDataBlock(), ClassFindGuid(), ClassFindInternalGuid(), ClassQueryInternalDataBlock(), DiskFdoExecuteWmiMethod(), DiskFdoQueryWmiDataBlock(), DiskFdoSetWmiDataBlock(), DiskFdoSetWmiDataItem(), DiskWmiFunctionControl(), FreeBT_QueryWmiDataBlock(), FreeBT_SetWmiDataBlock(), FreeBT_SetWmiDataItem(), and InPortQueryWmiDataBlock().
_In_ BUS_QUERY_ID_TYPE _In_ PUNICODE_STRING IdString |
Definition at line 375 of file classpnp.h.
Referenced by ClassGetPdoId().
_In_ BUS_QUERY_ID_TYPE IdType |
Definition at line 374 of file classpnp.h.
Referenced by ClassGetPdoId(), GetDeviceId(), GreenQueryId(), HalpQueryIdFdo(), HalpQueryIdPdo(), PdoQueryId(), SerenumPdoQueryId(), USBH_PdoQueryId(), and USBPORT_PdoPnP().
_In_ PVOID _In_ PCLASS_INIT_DATA InitializationData |
Definition at line 722 of file classpnp.h.
Referenced by _IRQL_requires_max_(), and DriverEntry().
Definition at line 1251 of file classpnp.h.
Referenced by _IRQL_requires_max_(), BT958QueryWmiDataBlock(), ClassSystemControl(), FreeBT_QueryWmiDataBlock(), and InPortQueryWmiDataBlock().
Definition at line 485 of file classpnp.h.
Referenced by ClassInterpretSenseInfo(), and InterpretSenseInfoWithoutHistory().
Definition at line 350 of file classpnp.h.
_In_z_ PCCHAR _In_ PDEVICE_OBJECT _In_ BOOLEAN IsFdo |
Definition at line 984 of file classpnp.h.
Referenced by FxDevice::GetDefaultIoTarget(), FxDevice::GetSelfIoTarget(), and FxDevice::SetFilter().
_In_z_ PCCHAR _In_ PDEVICE_OBJECT LowerDeviceObject |
Definition at line 983 of file classpnp.h.
Referenced by DiskFlushDispatch(), IoGetLowerDeviceObject(), StorPortGetDeviceObjects(), StreamClassAddDevice(), and USBSTOR_DispatchSystemControl().
Definition at line 1315 of file classpnp.h.
Referenced by AtapiCallBack__(), AtapiInterrupt__(), AtapiResetController__(), AtapiStartIo__(), DiskOpen(), GetLunByPath(), PortCreatePdo(), PortFdoScanBus(), ScsiPortCompleteRequest(), ScsiPortGetLogicalUnit(), ScsiPortLogError(), ScsiPortNotification(), SpiScanAdapter(), SrbGetLun(), SrbGetPathTargetLun(), and StorPortLogError().
Definition at line 484 of file classpnp.h.
Referenced by ClassInterpretSenseInfo(), InterpretSenseInfoWithoutHistory(), and SenseInfoRequestGetInformation().
Definition at line 405 of file classpnp.h.
Definition at line 404 of file classpnp.h.
Definition at line 1137 of file classpnp.h.
_In_z_ PCCHAR ObjectNameBuffer |
Definition at line 982 of file classpnp.h.
Referenced by WmipCaptureGuidObjectAttributes().
Definition at line 482 of file classpnp.h.
Definition at line 450 of file classpnp.h.
Definition at line 1313 of file classpnp.h.
Referenced by AhciHwResetBus(), AhciProcessIO(), AtapiCallBack__(), AtapiInterrupt__(), AtapiResetController(), AtapiResetController__(), AtapiStartIo__(), BT958HwResetBus(), BuildMechanismStatusSrb(), BuildRequestSenseSrb(), DiskOpen(), GetLunByPath(), ScsiPortCompleteRequest(), ScsiPortGetLogicalUnit(), ScsiPortLogError(), ScsiPortNotification(), SpiScanAdapter(), SrbGetPathId(), SrbGetPathTargetLun(), and StorPortLogError().
_In_ PDEVICE_OBJECT Pdo |
Definition at line 318 of file classpnp.h.
_In_ FAILURE_PREDICTION_METHOD _In_ ULONG PollingPeriod |
Definition at line 1302 of file classpnp.h.
Definition at line 486 of file classpnp.h.
Referenced by InterpretSenseInfoWithoutHistory().
_In_ PSTORAGE_PROPERTY_ID PropertyId |
Definition at line 1159 of file classpnp.h.
Definition at line 403 of file classpnp.h.
Referenced by DiskFdoQueryWmiRegInfo(), DiskFdoQueryWmiRegInfoEx(), FreeBT_QueryWmiRegInfo(), and InPortQueryWmiRegInfo().
Definition at line 1122 of file classpnp.h.
Definition at line 1343 of file classpnp.h.
_In_opt_ PIRP _In_ PSCSI_REQUEST_BLOCK _In_ UCHAR _In_ ULONG _In_ ULONG _In_opt_ SRB_HISTORY* RequestHistory |
Definition at line 487 of file classpnp.h.
Referenced by CompressSrbHistoryData(), and ValidateSrbHistoryDataPresumptions().
Definition at line 312 of file classpnp.h.
Referenced by AcpiHwSetMode(), BiosBootstrapLoader(), BootLoaderRemovableDiskPage(), CmdSetExitCode(), ConvertNtPathToWin32Path(), DeviceErrorHandlerForHitachiGD2000(), DeviceErrorHandlerForMmc(), DiskFdoProcessError(), DiskIoctlGetMediaTypesEx(), DiskModeSelect(), DosStartProcess32(), EnumProcessAndPrint(), ExpAddTagForBigPages(), CZipExtract::Extract(), ImmFreeLayout(), InputList_RemoveByLang(), KbdSendCommandToMouse(), KdbpTryGetCharKeyboard(), KdbpTryGetCharSerial(), MmAccessFault(), MyDeleteFile(), NtUserDisableThreadIme(), PrepareAndDoCopyThread(), QuerySubstedDrive(), ScsiFlopProcessError(), SenseInfoInterpretByAdditionalSenseCode(), SenseInfoInterpretBySenseKey(), SenseInfoInterpretBySrbStatus(), SenseInfoInterpretRefineByIoControl(), SenseInfoInterpretRefineByScsiCommand(), SetupDeleteFile(), SHChangeNotify(), Defragment::Start(), USBH_SyncGetHubDescriptor(), VolumeDeleteMountPoints(), and WCacheRaiseIoError().
Definition at line 310 of file classpnp.h.
Definition at line 1373 of file classpnp.h.
_In_opt_ PIRP _In_ PSCSI_REQUEST_BLOCK _In_ UCHAR _In_ ULONG _In_ ULONG _In_opt_ SRB_HISTORY _Out_ NTSTATUS* Status |
Definition at line 311 of file classpnp.h.
Definition at line 1402 of file classpnp.h.
Definition at line 1314 of file classpnp.h.
Referenced by AtapiCallBack__(), AtapiHwInitializeChanger(), AtapiInterrupt__(), AtapiResetController__(), AtapiStartIo__(), BuildMechanismStatusSrb(), BuildRequestSenseSrb(), DiskOpen(), GetLunByPath(), ScsiPortCompleteRequest(), ScsiPortGetLogicalUnit(), ScsiPortLogError(), ScsiPortNotification(), SpiScanAdapter(), SrbGetPathTargetLun(), SrbGetTargetId(), and StorPortLogError().
Definition at line 334 of file classpnp.h.
Definition at line 1312 of file classpnp.h.
Referenced by TiWriteErrorLog().
Definition at line 1374 of file classpnp.h.