ReactOS  0.4.13-dev-257-gfabbd7c
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 
21 typedef enum
22 {
28 } DEVICE_STATE;
29 
30 typedef struct _COMMON_DEVICE_EXTENSION
31 {
32  BOOLEAN IsFDO;
35 
36 typedef struct _FDO_DEVICE_EXTENSION
37 {
39 
42 
45 
47 
49 
52 
54 
55 typedef struct _PDO_DEVICE_EXTENSION
56 {
58 
60 
63 
65 
67 
68 #define PARPORT_TAG 'trpP'
69 
70 /* fdo.c */
71 
72 DRIVER_ADD_DEVICE AddDevice;
73 
75 NTAPI
77  IN PIRP Irp);
78 
80 NTAPI
82  IN PIRP Irp);
83 
85 NTAPI
87  IN PIRP Irp);
88 
90 NTAPI
92  IN PIRP Irp);
93 
95 NTAPI
97  IN PIRP Irp);
98 
100 NTAPI
102  IN PIRP Irp);
103 
104 NTSTATUS
105 NTAPI
107  IN PIRP Irp);
108 
109 
110 /* misc.c */
111 
112 NTSTATUS
114  IN PIRP Irp);
115 
117 
118 PVOID
120 
121 //KSERVICE_ROUTINE ParportInterruptService;
122 
123 
124 /* pdo.c */
125 
126 NTSTATUS
127 NTAPI
129  IN PIRP Irp);
130 
131 NTSTATUS
132 NTAPI
134  IN PIRP Irp);
135 
136 NTSTATUS
137 NTAPI
139  IN PIRP Irp);
140 
141 NTSTATUS
142 NTAPI
144  IN PIRP Irp);
145 
146 NTSTATUS
147 NTAPI
149  IN PIRP Irp);
150 
151 NTSTATUS
152 NTAPI
154  IN PIRP Irp);
155 
156 NTSTATUS
157 NTAPI
159  IN PIRP Irp);
160 
161 #endif /* _PARPORT_PCH_ */
DEVICE_STATE
Definition: i8042prt.h:14
NTSTATUS NTAPI FdoPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:505
#define IN
Definition: typedefs.h:38
PKINTERRUPT Interrupt
Definition: parport.h:51
NTSTATUS NTAPI PdoWrite(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:95
DEVICE_STATE
Definition: parport.h:21
_In_ PIRP Irp
Definition: csq.h:116
DRIVER_ADD_DEVICE AddDevice
Definition: parport.h:72
NTSTATUS NTAPI FdoWrite(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:491
LONG NTSTATUS
Definition: precomp.h:26
struct _COMMON_DEVICE_EXTENSION COMMON_DEVICE_EXTENSION
NTSTATUS NTAPI PdoClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:47
NTSTATUS NTAPI FdoCreate(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:409
PDEVICE_OBJECT AttachedRawPdo
Definition: parport.h:43
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
NTSTATUS ForwardIrpAndWait(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:32
unsigned char BOOLEAN
struct _FDO_DEVICE_EXTENSION * PFDO_DEVICE_EXTENSION
COMMON_DEVICE_EXTENSION Common
Definition: pci.h:55
PVOID GetUserBuffer(IN PIRP Irp)
Definition: misc.c:76
NTSTATUS NTAPI FdoPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:600
PDEVICE_OBJECT AttachedFdo
Definition: parport.h:59
NTSTATUS NTAPI PdoCleanup(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:67
struct _FDO_DEVICE_EXTENSION FDO_DEVICE_EXTENSION
NTSTATUS NTAPI PdoCreate(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:14
DRIVER_DISPATCH ForwardIrpAndForget
Definition: parport.h:116
NTSTATUS NTAPI FdoRead(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:477
DRIVER_DISPATCH(nfs41_FsdDispatch)
COMMON_DEVICE_EXTENSION Common
Definition: pci.h:80
NTSTATUS NTAPI FdoCleanup(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:462
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1560
NTSTATUS NTAPI PdoRead(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:81
struct _PDO_DEVICE_EXTENSION * PPDO_DEVICE_EXTENSION
struct _COMMON_DEVICE_EXTENSION * PCOMMON_DEVICE_EXTENSION
struct _PDO_DEVICE_EXTENSION PDO_DEVICE_EXTENSION
DEVICE_STATE PnpState
Definition: parport.h:33
PDEVICE_OBJECT Pdo
Definition: i8042prt.h:128
unsigned int ULONG
Definition: retypes.h:1
PDEVICE_OBJECT LowerDevice
Definition: i8042prt.h:130
NTSTATUS NTAPI PdoPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:175
PDEVICE_OBJECT AttachedPdo[2]
Definition: parport.h:44
NTSTATUS NTAPI FdoClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:442
NTSTATUS NTAPI PdoPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:161