#include "fdc.h"
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
Definition at line 13 of file fdc.c.
◆ DriverEntry()
Definition at line 179 of file fdc.c.
181{
182 DPRINT(
"FDC: DriverEntry()\n");
183
186
189
192
194}
static NTSTATUS NTAPI FdcClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
static NTSTATUS NTAPI FdcPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
static VOID NTAPI FdcDriverUnload(IN PDRIVER_OBJECT DriverObject)
static NTSTATUS NTAPI FdcPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
static NTSTATUS NTAPI FdcCreate(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
static NTSTATUS NTAPI FdcAddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT Pdo)
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
◆ FdcAddDevice()
Definition at line 25 of file fdc.c.
28{
32
33 DPRINT(
"FdcAddDevice()\n");
34
37
38
47 {
50
53
54 DeviceExtension->
Pdo =
Pdo;
55
58 {
59 DPRINT1(
"IoAttachDeviceToDeviceStackSafe() failed with status 0x%08lx\n",
Status);
62 }
63
64
67
68 Fdo->Flags &= ~DO_DEVICE_INITIALIZING;
69 }
70
72}
#define FILE_DEVICE_SECURE_OPEN
#define NT_SUCCESS(StatCode)
struct _FDO_DEVICE_EXTENSION * PFDO_DEVICE_EXTENSION
NTSTATUS NTAPI IoCreateDevice(IN PDRIVER_OBJECT DriverObject, IN ULONG DeviceExtensionSize, IN PUNICODE_STRING DeviceName, IN DEVICE_TYPE DeviceType, IN ULONG DeviceCharacteristics, IN BOOLEAN Exclusive, OUT PDEVICE_OBJECT *DeviceObject)
NTSTATUS NTAPI IoAttachDeviceToDeviceStackSafe(IN PDEVICE_OBJECT SourceDevice, IN PDEVICE_OBJECT TargetDevice, IN OUT PDEVICE_OBJECT *AttachedToDeviceObject)
VOID NTAPI IoDeleteDevice(IN PDEVICE_OBJECT DeviceObject)
#define FILE_DEVICE_CONTROLLER
PDEVICE_OBJECT DeviceObject
PDEVICE_OBJECT LowerDevice
COMMON_DEVICE_EXTENSION Common
#define RtlZeroMemory(Destination, Length)
_Must_inspect_result_ _In_ WDFDEVICE Fdo
WDF_EXTERN_C_START typedef _Must_inspect_result_ _In_ WDFDRIVER _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ PDEVICE_OBJECT _In_opt_ PDEVICE_OBJECT _In_opt_ PDEVICE_OBJECT Pdo
Referenced by DriverEntry().
◆ FdcClose()
Definition at line 104 of file fdc.c.
106{
108
110 Irp->IoStatus.Information = 0;
111
113
115}
#define IoCompleteRequest
Referenced by DriverEntry().
◆ FdcCreate()
◆ FdcDriverUnload()
◆ FdcPnp()
Definition at line 121 of file fdc.c.
123{
125
128 {
131 }
132 else
133 {
136 }
137}
NTSTATUS NTAPI FdcPdoPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
NTSTATUS NTAPI FdcFdoPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
_In_ PDEVICE_OBJECT DeviceObject
Referenced by DriverEntry().
◆ FdcPower()
Definition at line 143 of file fdc.c.
145{
149
151
153
155 {
159 }
160 else
161 {
163 {
167 break;
168 }
173 }
174}
static PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(PIRP Irp)
_In_ PIO_STACK_LOCATION IrpSp
#define IoSkipCurrentIrpStackLocation(Irp)
VOID NTAPI PoStartNextPowerIrp(IN PIRP Irp)
#define IRP_MN_QUERY_POWER
Referenced by DriverEntry().
◆ ControllerCount
ULONG ControllerCount = 0 |