mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 14:18:41 +00:00
![Pierre Schweitzer](/assets/img/avatar_default.png)
floppy drives in ReactOS and mount images on them. Only the cmd got imported. The GUI interface may come later on. Note that, as for vcdrom, the driver is left disabled and you need to explicitely start it through vfd command line interface. CORE-14090
80 lines
1.2 KiB
C
80 lines
1.2 KiB
C
/*
|
|
vfddbg.h
|
|
|
|
Virtual Floppy Drive for Windows NT platform
|
|
Kernel mode driver: debug functions header
|
|
|
|
Copyright (C) 2003-2005 Ken Kato
|
|
*/
|
|
|
|
#ifndef _VFDDBG_H_
|
|
#define _VFDDBG_H_
|
|
|
|
#if DBG
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif // __cplusplus
|
|
|
|
PCSTR
|
|
GetStatusName(
|
|
NTSTATUS status);
|
|
|
|
PCSTR
|
|
GetMajorFuncName(
|
|
UCHAR major_code);
|
|
|
|
PCSTR
|
|
GetIoControlName(
|
|
ULONG ctrl_code);
|
|
|
|
#ifdef VFD_PNP
|
|
|
|
PCSTR
|
|
GetPnpIrpName(
|
|
ULONG minor_code);
|
|
|
|
PCSTR
|
|
GetPowerIrpName(
|
|
ULONG minor_code);
|
|
|
|
PCSTR
|
|
GetSystemIrpName(
|
|
ULONG minor_code);
|
|
|
|
#endif // VFD_PNP
|
|
|
|
//
|
|
// Debug Trace Level Flags
|
|
//
|
|
#define VFDERR 0x00000000
|
|
#define VFDWARN 0x00000001
|
|
#define VFDINFO 0x00000003
|
|
|
|
#define VFDDEV 0x00000004
|
|
#define VFDDRV 0x00000008
|
|
#define VFDRDWR 0x00000010
|
|
#define VFDIMG 0x00000020
|
|
#define VFDLINK 0x00000040
|
|
#define VFDFMT 0x00000080
|
|
#define VFDCTL 0x00000100
|
|
#define VFDMNT 0x00000200
|
|
#define VFDPNP 0x00000400
|
|
|
|
#define VFDTRACE(LEVEL,STRING) \
|
|
if ((TraceFlags & (LEVEL)) == (LEVEL)) { \
|
|
DbgPrint STRING; \
|
|
}
|
|
|
|
extern ULONG TraceFlags;
|
|
|
|
#else // DBG
|
|
#define VFDTRACE(LEVEL,STRING)
|
|
#endif // DBG
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif // __cplusplus
|
|
|
|
#endif // _VFDDBG_H_
|