ReactOS 0.4.16-dev-297-gc569aee
parport.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: Parallel Port Function Driver
4 * FILE: drivers/parallel/parport/parport.h
5 * PURPOSE: Parport driver header
6 */
7
8#ifndef _PARPORT_PCH_
9#define _PARPORT_PCH_
10
11#include <ntddk.h>
12#include <ndk/haltypes.h>
13#include <ntddpar.h>
14#include <stdio.h>
15
16#include "hardware.h"
17
18//#define NDEBUG
19#include <debug.h>
20
21typedef enum
22{
29
30typedef struct _COMMON_DEVICE_EXTENSION
31{
35
36typedef struct _FDO_DEVICE_EXTENSION
37{
39
42
45
47
49
52
54
55typedef struct _PDO_DEVICE_EXTENSION
56{
58
60
63
65
67
68#define PARPORT_TAG 'trpP'
69
70/* fdo.c */
71
72DRIVER_ADD_DEVICE AddDevice;
73
77 IN PIRP Irp);
78
82 IN PIRP Irp);
83
87 IN PIRP Irp);
88
92 IN PIRP Irp);
93
97 IN PIRP Irp);
98
100NTAPI
102 IN PIRP Irp);
103
105NTAPI
107 IN PIRP Irp);
108
109
110/* misc.c */
111
113
114PVOID
116
117//KSERVICE_ROUTINE ParportInterruptService;
118
119
120/* pdo.c */
121
123NTAPI
125 IN PIRP Irp);
126
128NTAPI
130 IN PIRP Irp);
131
133NTAPI
135 IN PIRP Irp);
136
138NTAPI
140 IN PIRP Irp);
141
143NTAPI
145 IN PIRP Irp);
146
148NTAPI
150 IN PIRP Irp);
151
153NTAPI
155 IN PIRP Irp);
156
157#endif /* _PARPORT_PCH_ */
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
_In_ PIRP Irp
Definition: csq.h:116
DEVICE_STATE
Definition: i8042prt.h:15
DRIVER_DISPATCH(nfs41_FsdDispatch)
struct _FDO_DEVICE_EXTENSION FDO_DEVICE_EXTENSION
NTSTATUS NTAPI FdoRead(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:477
NTSTATUS NTAPI PdoWrite(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:95
NTSTATUS NTAPI FdoClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:442
struct _FDO_DEVICE_EXTENSION * PFDO_DEVICE_EXTENSION
NTSTATUS NTAPI FdoPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:505
NTSTATUS NTAPI FdoCreate(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:409
NTSTATUS NTAPI FdoPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:607
struct _PDO_DEVICE_EXTENSION PDO_DEVICE_EXTENSION
NTSTATUS NTAPI PdoRead(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:81
struct _PDO_DEVICE_EXTENSION * PPDO_DEVICE_EXTENSION
DEVICE_STATE
Definition: parport.h:22
@ dsSurpriseRemoved
Definition: parport.h:27
@ dsStopped
Definition: parport.h:23
@ dsPaused
Definition: parport.h:25
@ dsStarted
Definition: parport.h:24
@ dsRemoved
Definition: parport.h:26
NTSTATUS NTAPI PdoPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:161
DRIVER_ADD_DEVICE AddDevice
Definition: parport.h:72
NTSTATUS NTAPI PdoCleanup(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:67
NTSTATUS NTAPI PdoCreate(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:14
NTSTATUS NTAPI PdoClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:47
DRIVER_DISPATCH ForwardIrpAndForget
Definition: parport.h:112
struct _COMMON_DEVICE_EXTENSION COMMON_DEVICE_EXTENSION
NTSTATUS NTAPI FdoWrite(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:491
NTSTATUS NTAPI PdoPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:175
PVOID GetUserBuffer(IN PIRP Irp)
Definition: misc.c:32
struct _COMMON_DEVICE_EXTENSION * PCOMMON_DEVICE_EXTENSION
NTSTATUS NTAPI FdoCleanup(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:462
DEVICE_STATE PnpState
Definition: parport.h:33
PDEVICE_OBJECT LowerDevice
Definition: i8042prt.h:130
PDEVICE_OBJECT AttachedPdo[2]
Definition: parport.h:44
PDEVICE_OBJECT AttachedRawPdo
Definition: parport.h:43
COMMON_DEVICE_EXTENSION Common
Definition: pci.h:84
PDEVICE_OBJECT Pdo
Definition: i8042prt.h:128
PKINTERRUPT Interrupt
Definition: parport.h:51
COMMON_DEVICE_EXTENSION Common
Definition: pci.h:59
PDEVICE_OBJECT AttachedFdo
Definition: parport.h:59
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055