ReactOS 0.4.15-dev-8093-g3285f69
vfddbg.h
Go to the documentation of this file.
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
16extern "C" {
17#endif // __cplusplus
18
20GetStatusName(
22
24GetMajorFuncName(
25 UCHAR major_code);
26
28GetIoControlName(
29 ULONG ctrl_code);
30
31#ifdef VFD_PNP
32
34GetPnpIrpName(
35 ULONG minor_code);
36
38GetPowerIrpName(
39 ULONG minor_code);
40
42GetSystemIrpName(
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
69extern 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_
LONG NTSTATUS
Definition: precomp.h:26
Definition: ps.c:97
const char * PCSTR
Definition: typedefs.h:52
uint32_t ULONG
Definition: typedefs.h:59
unsigned char UCHAR
Definition: xmlstorage.h:181