#include <pcmcia.h>
#include <debug.h>
Go to the source code of this file.
◆ DriverEntry()
Definition at line 224 of file pcmcia.c.
226{
229
231
232 DPRINT1(
"PCMCIA: DriverEntry\n");
233
239
242
244
248
250 L"Pcmcia\\Parameters",
255 {
256
258 }
259
260 DPRINT(
"PCMCIA: Ioctl interface %s\n",
262
264}
#define NT_SUCCESS(StatCode)
NTSYSAPI NTSTATUS WINAPI RtlQueryRegistryValues(ULONG, PCWSTR, PRTL_QUERY_REGISTRY_TABLE, PVOID, PVOID)
_In_ PCWSTR _Inout_ _At_ QueryTable _Pre_unknown_ PRTL_QUERY_REGISTRY_TABLE QueryTable
#define RTL_QUERY_REGISTRY_REQUIRED
#define RTL_QUERY_REGISTRY_DIRECT
#define RTL_REGISTRY_SERVICES
#define UNREFERENCED_PARAMETER(P)
DRIVER_DISPATCH PcmciaPlugPlay
DRIVER_DISPATCH PcmciaDeviceControl
DRIVER_DISPATCH PcmciaPower
DRIVER_UNLOAD PcmciaUnload
DRIVER_ADD_DEVICE PcmciaAddDevice
DRIVER_DISPATCH PcmciaCreateClose
#define IRP_MJ_DEVICE_CONTROL
#define RtlZeroMemory(Destination, Length)
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
◆ PcmciaAddDevice()
Definition at line 184 of file pcmcia.c.
186{
190
191 DPRINT(
"PCMCIA: AddDevice\n");
192
194 sizeof(*FdoExt),
202
203 FdoExt =
Fdo->DeviceExtension;
204
206
209
213
216
217 Fdo->Flags &= ~DO_DEVICE_INITIALIZING;
218
220}
PDEVICE_OBJECT PhysicalDeviceObject
#define FILE_DEVICE_SECURE_OPEN
#define InitializeListHead(ListHead)
#define KeInitializeSpinLock(sl)
PDEVICE_OBJECT NTAPI IoAttachDeviceToDeviceStack(IN PDEVICE_OBJECT SourceDevice, IN PDEVICE_OBJECT TargetDevice)
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)
#define FILE_DEVICE_BUS_EXTENDER
PCMCIA_DEVICE_STATE State
PCMCIA_COMMON_EXTENSION Common
LIST_ENTRY ChildDeviceList
_Must_inspect_result_ _In_ WDFDEVICE Fdo
◆ PcmciaCreateClose()
Definition at line 20 of file pcmcia.c.
22{
24
26 Irp->IoStatus.Information = 0;
27
28 DPRINT(
"PCMCIA: Create/Close\n");
29
31
33}
#define IoCompleteRequest
_In_ PDEVICE_OBJECT DeviceObject
◆ PcmciaDeviceControl()
Definition at line 39 of file pcmcia.c.
41{
44
46
47 DPRINT(
"PCMCIA: DeviceIoControl\n");
48
49 Irp->IoStatus.Information = 0;
50
52 {
53 default:
56 }
57
59
61
63}
static PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(PIRP Irp)
#define STATUS_NOT_SUPPORTED
_In_ PIO_STACK_LOCATION IrpSp
struct _IO_STACK_LOCATION::@1579::@1580 DeviceIoControl
union _IO_STACK_LOCATION::@1579 Parameters
◆ PcmciaPlugPlay()
Definition at line 79 of file pcmcia.c.
81{
83
86 {
89 }
90 else
91 {
94 }
95}
NTSTATUS NTAPI PcmciaFdoPlugPlay(PPCMCIA_FDO_EXTENSION FdoExt, PIRP Irp)
NTSTATUS NTAPI PcmciaPdoPlugPlay(PPCMCIA_PDO_EXTENSION PdoExt, PIRP Irp)
◆ PcmciaPower()
Definition at line 101 of file pcmcia.c.
103{
107
109 {
111
112 DPRINT(
"PCMCIA: IRP_MN_QUERY_POWER\n");
114 break;
115
117 DPRINT(
"PCMCIA: IRP_MN_POWER_SEQUENCE\n");
122 break;
123
125
126 DPRINT(
"PCMCIA: IRP_MN_WAIT_WAKE\n");
128 break;
129
131 DPRINT(
"PCMCIA: IRP_MN_SET_POWER\n");
133 {
135
137 }
138 else
139 {
141
142
145
148
151
152
155 else
157 }
158
159
163 break;
164
165 default:
169 break;
170 }
171
173 Irp->IoStatus.Information = 0;
174
176
178}
POWER_STATE NTAPI PoSetPowerState(IN PDEVICE_OBJECT DeviceObject, IN POWER_STATE_TYPE Type, IN POWER_STATE State)
NTSTATUS NTAPI PcmciaPdoSetPowerState(PPCMCIA_PDO_EXTENSION PdoExt)
struct _IO_STACK_LOCATION::@3978::@4014 Power
PPOWER_SEQUENCE PowerSequence
POWER_SEQUENCE PowerSequence
SYSTEM_POWER_STATE SystemPowerState
DEVICE_POWER_STATE DevicePowerState
#define RtlCopyMemory(Destination, Source, Length)
#define STATUS_INVALID_DEVICE_REQUEST
#define IRP_MN_POWER_SEQUENCE
_In_ SYSTEM_POWER_STATE SystemPowerState
#define IRP_MN_QUERY_POWER
◆ PcmciaUnload()
◆ IoctlEnabled
◆ PcmciaAddDevice
DRIVER_ADD_DEVICE PcmciaAddDevice |
◆ PcmciaCreateClose
◆ PcmciaDeviceControl
◆ PcmciaPlugPlay
◆ PcmciaPower
◆ PcmciaUnload
DRIVER_UNLOAD PcmciaUnload |