mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 01:03:08 +00:00
[USBUHCI_NEW] Bring-in the USB UHCI miniport driver created by Vadim Galyant. (#245)
This commit is contained in:
parent
69a040d275
commit
a1a65e940a
9 changed files with 3824 additions and 0 deletions
49
drivers/usb/usbuhci_new/dbg_uhci.h
Normal file
49
drivers/usb/usbuhci_new/dbg_uhci.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
#ifndef DBG_UHCI_H__
|
||||
#define DBG_UHCI_H__
|
||||
|
||||
#if DBG
|
||||
|
||||
#ifndef NDEBUG_UHCI_TRACE
|
||||
#define DPRINT_UHCI(fmt, ...) do { \
|
||||
if (DbgPrint("(%s:%d) " fmt, __RELFILE__, __LINE__, ##__VA_ARGS__)) \
|
||||
DbgPrint("(%s:%d) DbgPrint() failed!\n", __RELFILE__, __LINE__); \
|
||||
} while (0)
|
||||
#else
|
||||
#if defined(_MSC_VER)
|
||||
#define DPRINT_UHCI __noop
|
||||
#else
|
||||
#define DPRINT_UHCI(...) do {if(0) {DbgPrint(__VA_ARGS__);}} while(0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef NDEBUG_UHCI_IMPLEMENT
|
||||
|
||||
#define DPRINT_IMPL(fmt, ...) do { \
|
||||
if (DbgPrint("(%s:%d) " fmt, __RELFILE__, __LINE__, ##__VA_ARGS__)) \
|
||||
DbgPrint("(%s:%d) DbgPrint() failed!\n", __RELFILE__, __LINE__); \
|
||||
} while (0)
|
||||
|
||||
#else
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define DPRINT_IMPL __noop
|
||||
#else
|
||||
#define DPRINT_IMPL(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#else /* not DBG */
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define DPRINT_UHCI __noop
|
||||
#define DPRINT_IMPL __noop
|
||||
#else
|
||||
#define DPRINT_UHCI(...) do {if(0) {DbgPrint(__VA_ARGS__);}} while(0)
|
||||
#define DPRINT_IMPL(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
#endif /* not DBG */
|
||||
|
||||
#endif /* DBG_UHCI_H__ */
|
Loading…
Add table
Add a link
Reference in a new issue