xref: /reactos/modules/rosapps/drivers/vfd/vfddbg.h (revision 25c7e1a8)
1 /*
2 	vfddbg.h
3 
4 	Virtual Floppy Drive for Windows NT platform
5 	Kernel mode driver: debug functions header
6 
7 	Copyright (C) 2003-2005 Ken Kato
8 */
9 
10 #ifndef _VFDDBG_H_
11 #define _VFDDBG_H_
12 
13 #if DBG
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif	// __cplusplus
18 
19 PCSTR
20 GetStatusName(
21 	NTSTATUS			status);
22 
23 PCSTR
24 GetMajorFuncName(
25 	UCHAR				major_code);
26 
27 PCSTR
28 GetIoControlName(
29 	ULONG				ctrl_code);
30 
31 #ifdef VFD_PNP
32 
33 PCSTR
34 GetPnpIrpName(
35 	ULONG				minor_code);
36 
37 PCSTR
38 GetPowerIrpName(
39 	ULONG				minor_code);
40 
41 PCSTR
42 GetSystemIrpName(
43 	ULONG				minor_code);
44 
45 #endif	// VFD_PNP
46 
47 //
48 //	Debug Trace Level Flags
49 //
50 #define VFDERR			0x00000000
51 #define VFDWARN			0x00000001
52 #define VFDINFO			0x00000003
53 
54 #define VFDDEV			0x00000004
55 #define VFDDRV			0x00000008
56 #define VFDRDWR			0x00000010
57 #define VFDIMG			0x00000020
58 #define VFDLINK			0x00000040
59 #define VFDFMT			0x00000080
60 #define VFDCTL			0x00000100
61 #define VFDMNT			0x00000200
62 #define VFDPNP			0x00000400
63 
64 #define VFDTRACE(LEVEL,STRING)					\
65 	if ((TraceFlags & (LEVEL)) == (LEVEL)) {	\
66 		DbgPrint STRING;						\
67 	}
68 
69 extern ULONG TraceFlags;
70 
71 #else	// DBG
72 #define VFDTRACE(LEVEL,STRING)
73 #endif	// DBG
74 
75 #ifdef __cplusplus
76 }
77 #endif	// __cplusplus
78 
79 #endif	// _VFDDBG_H_
80