Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.0 KiB

  1. typedef enum{
  2. SoftPciAlways = 0x00000000,
  3. SoftPciDialog = 0x00000001, // Dialog Box manipulation
  4. SoftPciTree = 0x00000002, // Tree manipulation Prints
  5. SoftPciDevice = 0x00000004, // SoftPCI Device and Bridge prints
  6. SoftPciDeviceVerbose = 0x00000008, // Verbose device output
  7. SoftPciInstall = 0x00000010, // Installation specific prints
  8. SoftPciHotPlug = 0x00000020, // Hotplug specific prints
  9. SoftPciCmData = 0x00000040, // CmUtil.c prints
  10. SoftPciProperty = 0x00000080, // Devprop.c prints
  11. SoftPciScript = 0x00000100, // Script file related prints
  12. SoftPciMainWndMsg = 0x01000000, // Display Window Message to MainWnd Message Pump
  13. SoftPciTreeWndMsg = 0x02000000, // Display Window Message to TreeWnd Message Pump
  14. SoftPciNewDevMsg = 0x04000000, // Display Window Message to NewDevDlg Message Pump
  15. SoftPciDevPropMsg = 0x08000000, // Display Window Message to DevPropDlg Message Pump
  16. SoftPciNoPrepend = 0x10000000
  17. }SOFTPCI_DEBUGLEVEL;
  18. #if DBG
  19. VOID
  20. SoftPCI_DebugDumpConfig(
  21. IN PPCI_COMMON_CONFIG Config
  22. );
  23. extern SOFTPCI_DEBUGLEVEL g_SoftPCIDebugLevel;
  24. #define SOFTPCI_DEBUG_BUFFER_SIZE 256
  25. #define SoftPCI_Debug SoftPCI_DebugPrint
  26. #define SOFTPCI_ASSERT( exp ) \
  27. ((!(exp)) ? \
  28. (SoftPCI_Assert( #exp, __FILE__, __LINE__, NULL ),FALSE) : \
  29. TRUE)
  30. #define SOFTPCI_ASSERTMSG( msg, exp ) \
  31. ((!(exp)) ? \
  32. (SoftPCI_Assert( #exp, __FILE__, __LINE__, msg ),FALSE) : \
  33. TRUE)
  34. VOID
  35. SoftPCI_DebugPrint(
  36. SOFTPCI_DEBUGLEVEL DebugLevel,
  37. PWCHAR DebugMessage,
  38. ...
  39. );
  40. VOID
  41. SoftPCI_Assert(
  42. IN CONST CHAR* FailedAssertion,
  43. IN CONST CHAR* FileName,
  44. IN ULONG LineNumber,
  45. IN CONST CHAR* Message OPTIONAL
  46. );
  47. #else
  48. #define SOFTPCI_ASSERT(exp) ((void) 0)
  49. #define SOFTPCI_ASSERTMSG(msg, exp) ((void) 0)
  50. #define SoftPCI_Debug
  51. #endif