2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: Parallel Port Function Driver
4 * PURPOSE: Parport driver header
11 #include <ndk/haltypes.h>
27 typedef struct _COMMON_DEVICE_EXTENSION
30 DEVICE_STATE PnpState
;
31 } COMMON_DEVICE_EXTENSION
, *PCOMMON_DEVICE_EXTENSION
;
33 typedef struct _FDO_DEVICE_EXTENSION
35 COMMON_DEVICE_EXTENSION Common
;
38 PDEVICE_OBJECT LowerDevice
;
40 ULONG ParallelPortNumber
;
46 PKINTERRUPT Interrupt
;
48 } FDO_DEVICE_EXTENSION
, *PFDO_DEVICE_EXTENSION
;
50 typedef struct _PDO_DEVICE_EXTENSION
52 COMMON_DEVICE_EXTENSION Common
;
54 } PDO_DEVICE_EXTENSION
, *PPDO_DEVICE_EXTENSION
;
59 DRIVER_ADD_DEVICE AddDevice
;
63 FdoCreate(IN PDEVICE_OBJECT DeviceObject
,
68 FdoClose(IN PDEVICE_OBJECT DeviceObject
,
73 FdoCleanup(IN PDEVICE_OBJECT DeviceObject
,
78 FdoWrite(IN PDEVICE_OBJECT DeviceObject
,
83 FdoPnp(IN PDEVICE_OBJECT DeviceObject
,
88 FdoPower(IN PDEVICE_OBJECT DeviceObject
,
95 ForwardIrpAndWait(IN PDEVICE_OBJECT DeviceObject
,
98 DRIVER_DISPATCH ForwardIrpAndForget
;
101 GetUserBuffer(IN PIRP Irp
);
103 //KSERVICE_ROUTINE ParportInterruptService;
110 PdoCreate(IN PDEVICE_OBJECT DeviceObject
,
115 PdoClose(IN PDEVICE_OBJECT DeviceObject
,
120 PdoCleanup(IN PDEVICE_OBJECT DeviceObject
,
125 PdoWrite(IN PDEVICE_OBJECT DeviceObject
,
130 PdoPnp(IN PDEVICE_OBJECT DeviceObject
,
135 PdoPower(IN PDEVICE_OBJECT DeviceObject
,
138 #endif /* _PARPORT_PCH_ */