Skip to content

Commit

Permalink
Windows Release win-10.0.17763.1 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbarb authored Mar 24, 2019
1 parent e56019d commit 168a37f
Show file tree
Hide file tree
Showing 321 changed files with 146,308 additions and 2,329 deletions.
4 changes: 4 additions & 0 deletions src/framework/kmdf/inc/private/fx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ extern "C" {
#include "wdfdevicepri.h"
#include "wdfiotargetpri.h"
#include "wdfcx.h"
#include "wdftriage.h"
#include "wdfldr.h"

#include <FxDynamicsWrapper.h>
Expand All @@ -52,6 +53,9 @@ extern "C" {
#include "wdf115.h"
#include "wdf117.h"
#include "wdf119.h"
#include "wdf121.h"
#include "wdf123.h"
#include "wdf125.h"
}

#define KMDF_ONLY_CODE_PATH_ASSERT()
Expand Down
3 changes: 0 additions & 3 deletions src/framework/kmdf/inc/private/fxdmatransactionpacket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,12 @@ class FxDmaPacketTransaction : public FxDmaTransactionBase {
GetTransferContext(),
m_MapRegistersNeeded,
m_Flags,
#pragma prefast(suppress: __WARNING_CLASS_MISMATCH_NONE, "This warning requires a wrapper class for the DRIVER_CONTROL type.")
_AdapterControl,
this,
NULL
);
}
else {
#pragma prefast(suppress:__WARNING_PASSING_FUNCTION_UNEXPECTED_NULL, "_AdapterControl does not actually use the IRP parameter.");
_AdapterControl(m_DmaEnabler->m_FDO,
NULL,
GetMapRegisterBase(),
Expand All @@ -388,7 +386,6 @@ class FxDmaPacketTransaction : public FxDmaTransactionBase {
AllocateAdapterChannel(m_AdapterInfo->AdapterObject,
m_DmaEnabler->m_FDO,
m_MapRegistersNeeded,
#pragma prefast(suppress: __WARNING_CLASS_MISMATCH_NONE, "This warning requires a wrapper class for the DRIVER_CONTROL type.")
_AdapterControl,
this);
}
Expand Down
273 changes: 272 additions & 1 deletion src/framework/kmdf/inc/private/fxdynamics.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Module Name: FxDynamics.h
#ifndef _FXDYNAMICS_H_
#define _FXDYNAMICS_H_

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _WDFFUNCTIONS {

Expand Down Expand Up @@ -467,15 +470,108 @@ typedef struct _WDFFUNCTIONS {
PFN_WDFCXDEVICEINITSETPNPPOWEREVENTCALLBACKS pfnWdfCxDeviceInitSetPnpPowerEventCallbacks;
PFN_WDFFILEOBJECTGETINITIATORPROCESSID pfnWdfFileObjectGetInitiatorProcessId;
PFN_WDFREQUESTGETREQUESTORPROCESSID pfnWdfRequestGetRequestorProcessId;
PFN_WDFDEVICERETRIEVECOMPANIONTARGET pfnWdfDeviceRetrieveCompanionTarget;
PFN_WDFCOMPANIONTARGETSENDTASKSYNCHRONOUSLY pfnWdfCompanionTargetSendTaskSynchronously;
PFN_WDFCOMPANIONTARGETWDMGETCOMPANIONPROCESS pfnWdfCompanionTargetWdmGetCompanionProcess;
PFN_WDFDRIVEROPENPERSISTENTSTATEREGISTRYKEY pfnWdfDriverOpenPersistentStateRegistryKey;
PFN_WDFDRIVERERRORREPORTAPIMISSING pfnWdfDriverErrorReportApiMissing;

} WDFFUNCTIONS, *PWDFFUNCTIONS;


typedef struct _WDFSTRUCTURES {

size_t SIZE_WDF_CHILD_ADDRESS_DESCRIPTION_HEADER;
size_t SIZE_WDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER;
size_t SIZE_WDF_CHILD_LIST_CONFIG;
size_t SIZE_WDF_CHILD_LIST_ITERATOR;
size_t SIZE_WDF_CHILD_RETRIEVE_INFO;
size_t SIZE_WDF_CLASS_BIND_INFO;
size_t SIZE_WDF_CLASS_BIND_INFO2;
size_t SIZE_WDF_CLASS_EXTENSION_DESCRIPTOR;
size_t SIZE_WDF_CLASS_LIBRARY_INFO;
size_t SIZE_WDF_CLASS_VERSION;
size_t SIZE_WDF_COMMON_BUFFER_CONFIG;
size_t SIZE_WDF_CUSTOM_TYPE_CONTEXT;
size_t SIZE_WDF_DEVICE_PNP_CAPABILITIES;
size_t SIZE_WDF_DEVICE_PNP_NOTIFICATION_DATA;
size_t SIZE_WDF_DEVICE_POWER_CAPABILITIES;
size_t SIZE_WDF_DEVICE_POWER_NOTIFICATION_DATA;
size_t SIZE_WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS;
size_t SIZE_WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA;
size_t SIZE_WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS;
size_t SIZE_WDF_DEVICE_PROPERTY_DATA;
size_t SIZE_WDF_DEVICE_STATE;
size_t SIZE_WDF_DMA_ENABLER_CONFIG;
size_t SIZE_WDF_DMA_SYSTEM_PROFILE_CONFIG;
size_t SIZE_WDF_DPC_CONFIG;
size_t SIZE_WDF_DRIVER_CONFIG;
size_t SIZE_WDF_DRIVER_GLOBALS;
size_t SIZE_WDF_DRIVER_VERSION_AVAILABLE_PARAMS;
size_t SIZE_WDF_FDO_EVENT_CALLBACKS;
size_t SIZE_WDF_FILEOBJECT_CONFIG;
size_t SIZE_WDF_INTERRUPT_CONFIG;
size_t SIZE_WDF_INTERRUPT_EXTENDED_POLICY;
size_t SIZE_WDF_INTERRUPT_INFO;
size_t SIZE_WDF_IO_FORWARD_PROGRESS_RESERVED_POLICY_SETTINGS;
size_t SIZE_WDF_IO_QUEUE_CONFIG;
size_t SIZE_WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY;
size_t SIZE_WDF_IO_TARGET_OPEN_PARAMS;
size_t SIZE_WDF_IO_TYPE_CONFIG;
size_t SIZE_WDF_MEMORY_DESCRIPTOR;
size_t SIZE_WDF_OBJECT_ATTRIBUTES;
size_t SIZE_WDF_OBJECT_CONTEXT_TYPE_INFO;
size_t SIZE_WDF_PDO_EVENT_CALLBACKS;
size_t SIZE_WDF_PNPPOWER_EVENT_CALLBACKS;
size_t SIZE_WDF_POWER_FRAMEWORK_SETTINGS;
size_t SIZE_WDF_POWER_POLICY_EVENT_CALLBACKS;
size_t SIZE_WDF_POWER_ROUTINE_TIMED_OUT_DATA;
size_t SIZE_WDF_QUERY_INTERFACE_CONFIG;
size_t SIZE_WDF_QUEUE_FATAL_ERROR_DATA;
size_t SIZE_WDF_REMOVE_LOCK_OPTIONS;
size_t SIZE_WDF_REQUEST_COMPLETION_PARAMS;
size_t SIZE_WDF_REQUEST_FATAL_ERROR_INFORMATION_LENGTH_MISMATCH_DATA;
size_t SIZE_WDF_REQUEST_FORWARD_OPTIONS;
size_t SIZE_WDF_REQUEST_PARAMETERS;
size_t SIZE_WDF_REQUEST_REUSE_PARAMS;
size_t SIZE_WDF_REQUEST_SEND_OPTIONS;
size_t SIZE_WDF_TASK_SEND_OPTIONS;
size_t SIZE_WDF_TIMER_CONFIG;
size_t SIZE_WDF_TRIAGE_INFO;
size_t SIZE_WDF_USB_CONTINUOUS_READER_CONFIG;
size_t SIZE_WDF_USB_DEVICE_CREATE_CONFIG;
size_t SIZE_WDF_USB_DEVICE_INFORMATION;
size_t SIZE_WDF_USB_DEVICE_SELECT_CONFIG_PARAMS;
size_t SIZE_WDF_USB_INTERFACE_SELECT_SETTING_PARAMS;
size_t SIZE_WDF_USB_INTERFACE_SETTING_PAIR;
size_t SIZE_WDF_USB_PIPE_INFORMATION;
size_t SIZE_WDF_USB_REQUEST_COMPLETION_PARAMS;
size_t SIZE_WDF_WMI_INSTANCE_CONFIG;
size_t SIZE_WDF_WMI_PROVIDER_CONFIG;
size_t SIZE_WDF_WORKITEM_CONFIG;
size_t SIZE_WDFCONTEXT_TRIAGE_INFO;
size_t SIZE_WDFCONTEXTTYPE_TRIAGE_INFO;
size_t SIZE_WDFCX_FILEOBJECT_CONFIG;
size_t SIZE_WDFCX_PNPPOWER_EVENT_CALLBACKS;
size_t SIZE_WDFDEVICE_TRIAGE_INFO;
size_t SIZE_WDFFWDPROGRESS_TRIAGE_INFO;
size_t SIZE_WDFIRP_TRIAGE_INFO;
size_t SIZE_WDFIRPQUEUE_TRIAGE_INFO;
size_t SIZE_WDFMEMORY_OFFSET;
size_t SIZE_WDFOBJECT_TRIAGE_INFO;
size_t SIZE_WDFQUEUE_TRIAGE_INFO;
size_t SIZE_WDFREQUEST_TRIAGE_INFO;

} WDFSTRUCTURES, *PWDFSTRUCTURES;


typedef struct _WDFVERSION {

ULONG Size;
ULONG FuncCount;
WDFFUNCTIONS Functions;
ULONG StructCount;
WDFSTRUCTURES Structures;

} WDFVERSION, *PWDFVERSION;

Expand Down Expand Up @@ -806,6 +902,40 @@ WDFEXPORT(WdfCommonBufferGetLength)(
WDFCOMMONBUFFER CommonBuffer
);

_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
WDFEXPORT(WdfCompanionTargetSendTaskSynchronously)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
WDFCOMPANIONTARGET CompanionTarget,
_In_
USHORT TaskQueueIdentifier,
_In_
ULONG TaskOperationCode,
_In_opt_
PWDF_MEMORY_DESCRIPTOR InputBuffer,
_In_opt_
PWDF_MEMORY_DESCRIPTOR OutputBuffer,
_In_opt_
PWDF_TASK_SEND_OPTIONS TaskOptions,
_Out_
PULONG_PTR BytesReturned
);

_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
PEPROCESS
WDFEXPORT(WdfCompanionTargetWdmGetCompanionProcess)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
WDFCOMPANIONTARGET CompanionTarget
);

_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
Expand Down Expand Up @@ -2022,6 +2152,19 @@ WDFEXPORT(WdfDeviceAssignProperty)(
PVOID Data
);

_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
WDFEXPORT(WdfDeviceRetrieveCompanionTarget)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
WDFDEVICE Device,
_Out_
WDFCOMPANIONTARGET* CompanionTarget
);

_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
WDFIOTARGET
Expand Down Expand Up @@ -2624,6 +2767,40 @@ WDFEXPORT(WdfDriverIsVersionAvailable)(
PWDF_DRIVER_VERSION_AVAILABLE_PARAMS VersionAvailableParams
);

_Must_inspect_result_
_IRQL_requires_max_(DISPATCH_LEVEL + 1)
WDFAPI
NTSTATUS
WDFEXPORT(WdfDriverErrorReportApiMissing)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
WDFDRIVER Driver,
_In_opt_
PCWSTR FrameworkExtensionName,
_In_
ULONG ApiIndex,
_In_
BOOLEAN DoesApiReturnNtstatus
);

_Must_inspect_result_
_IRQL_requires_max_(PASSIVE_LEVEL)
WDFAPI
NTSTATUS
WDFEXPORT(WdfDriverOpenPersistentStateRegistryKey)(
_In_
PWDF_DRIVER_GLOBALS DriverGlobals,
_In_
WDFDRIVER Driver,
_In_
ACCESS_MASK DesiredAccess,
_In_opt_
PWDF_OBJECT_ATTRIBUTES KeyAttributes,
_Out_
WDFKEY* Key
);

_IRQL_requires_max_(DISPATCH_LEVEL)
WDFAPI
PDEVICE_OBJECT
Expand Down Expand Up @@ -6540,6 +6717,8 @@ WDFEXPORT(WdfWorkItemFlush)(
);


extern WDFVERSION WdfVersion;

#ifdef FX_DYNAMICS_GENERATE_TABLE

WDFVERSION WdfVersion = {
Expand Down Expand Up @@ -6994,10 +7173,102 @@ WDFVERSION WdfVersion = {
WDFEXPORT(WdfCxDeviceInitSetPnpPowerEventCallbacks),
WDFEXPORT(WdfFileObjectGetInitiatorProcessId),
WDFEXPORT(WdfRequestGetRequestorProcessId),
}
WDFEXPORT(WdfDeviceRetrieveCompanionTarget),
WDFEXPORT(WdfCompanionTargetSendTaskSynchronously),
WDFEXPORT(WdfCompanionTargetWdmGetCompanionProcess),
WDFEXPORT(WdfDriverOpenPersistentStateRegistryKey),
WDFEXPORT(WdfDriverErrorReportApiMissing),
},
sizeof(WDFSTRUCTURES)/sizeof(size_t),
{
sizeof(WDF_CHILD_ADDRESS_DESCRIPTION_HEADER),
sizeof(WDF_CHILD_IDENTIFICATION_DESCRIPTION_HEADER),
sizeof(WDF_CHILD_LIST_CONFIG),
sizeof(WDF_CHILD_LIST_ITERATOR),
sizeof(WDF_CHILD_RETRIEVE_INFO),
sizeof(WDF_CLASS_BIND_INFO),
sizeof(WDF_CLASS_BIND_INFO2),
sizeof(WDF_CLASS_EXTENSION_DESCRIPTOR),
sizeof(WDF_CLASS_LIBRARY_INFO),
sizeof(WDF_CLASS_VERSION),
sizeof(WDF_COMMON_BUFFER_CONFIG),
sizeof(WDF_CUSTOM_TYPE_CONTEXT),
sizeof(WDF_DEVICE_PNP_CAPABILITIES),
sizeof(WDF_DEVICE_PNP_NOTIFICATION_DATA),
sizeof(WDF_DEVICE_POWER_CAPABILITIES),
sizeof(WDF_DEVICE_POWER_NOTIFICATION_DATA),
sizeof(WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS),
sizeof(WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA),
sizeof(WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS),
sizeof(WDF_DEVICE_PROPERTY_DATA),
sizeof(WDF_DEVICE_STATE),
sizeof(WDF_DMA_ENABLER_CONFIG),
sizeof(WDF_DMA_SYSTEM_PROFILE_CONFIG),
sizeof(WDF_DPC_CONFIG),
sizeof(WDF_DRIVER_CONFIG),
sizeof(WDF_DRIVER_GLOBALS),
sizeof(WDF_DRIVER_VERSION_AVAILABLE_PARAMS),
sizeof(WDF_FDO_EVENT_CALLBACKS),
sizeof(WDF_FILEOBJECT_CONFIG),
sizeof(WDF_INTERRUPT_CONFIG),
sizeof(WDF_INTERRUPT_EXTENDED_POLICY),
sizeof(WDF_INTERRUPT_INFO),
sizeof(WDF_IO_FORWARD_PROGRESS_RESERVED_POLICY_SETTINGS),
sizeof(WDF_IO_QUEUE_CONFIG),
sizeof(WDF_IO_QUEUE_FORWARD_PROGRESS_POLICY),
sizeof(WDF_IO_TARGET_OPEN_PARAMS),
sizeof(WDF_IO_TYPE_CONFIG),
sizeof(WDF_MEMORY_DESCRIPTOR),
sizeof(WDF_OBJECT_ATTRIBUTES),
sizeof(WDF_OBJECT_CONTEXT_TYPE_INFO),
sizeof(WDF_PDO_EVENT_CALLBACKS),
sizeof(WDF_PNPPOWER_EVENT_CALLBACKS),
sizeof(WDF_POWER_FRAMEWORK_SETTINGS),
sizeof(WDF_POWER_POLICY_EVENT_CALLBACKS),
sizeof(WDF_POWER_ROUTINE_TIMED_OUT_DATA),
sizeof(WDF_QUERY_INTERFACE_CONFIG),
sizeof(WDF_QUEUE_FATAL_ERROR_DATA),
sizeof(WDF_REMOVE_LOCK_OPTIONS),
sizeof(WDF_REQUEST_COMPLETION_PARAMS),
sizeof(WDF_REQUEST_FATAL_ERROR_INFORMATION_LENGTH_MISMATCH_DATA),
sizeof(WDF_REQUEST_FORWARD_OPTIONS),
sizeof(WDF_REQUEST_PARAMETERS),
sizeof(WDF_REQUEST_REUSE_PARAMS),
sizeof(WDF_REQUEST_SEND_OPTIONS),
sizeof(WDF_TASK_SEND_OPTIONS),
sizeof(WDF_TIMER_CONFIG),
sizeof(WDF_TRIAGE_INFO),
sizeof(WDF_USB_CONTINUOUS_READER_CONFIG),
sizeof(WDF_USB_DEVICE_CREATE_CONFIG),
sizeof(WDF_USB_DEVICE_INFORMATION),
sizeof(WDF_USB_DEVICE_SELECT_CONFIG_PARAMS),
sizeof(WDF_USB_INTERFACE_SELECT_SETTING_PARAMS),
sizeof(WDF_USB_INTERFACE_SETTING_PAIR),
sizeof(WDF_USB_PIPE_INFORMATION),
sizeof(WDF_USB_REQUEST_COMPLETION_PARAMS),
sizeof(WDF_WMI_INSTANCE_CONFIG),
sizeof(WDF_WMI_PROVIDER_CONFIG),
sizeof(WDF_WORKITEM_CONFIG),
sizeof(WDFCONTEXT_TRIAGE_INFO),
sizeof(WDFCONTEXTTYPE_TRIAGE_INFO),
sizeof(WDFCX_FILEOBJECT_CONFIG),
sizeof(WDFCX_PNPPOWER_EVENT_CALLBACKS),
sizeof(WDFDEVICE_TRIAGE_INFO),
sizeof(WDFFWDPROGRESS_TRIAGE_INFO),
sizeof(WDFIRP_TRIAGE_INFO),
sizeof(WDFIRPQUEUE_TRIAGE_INFO),
sizeof(WDFMEMORY_OFFSET),
sizeof(WDFOBJECT_TRIAGE_INFO),
sizeof(WDFQUEUE_TRIAGE_INFO),
sizeof(WDFREQUEST_TRIAGE_INFO),
},
};

#endif // FX_DYNAMICS_GENERATE_TABLE

#ifdef __cplusplus
} // extern "C"
#endif

#endif // _FXDYNAMICS_H_

Loading

0 comments on commit 168a37f

Please sign in to comment.