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.

152 lines
2.6 KiB

  1. !IF 0
  2. Copyright (C) Microsoft Corporation, 1999 - 1999
  3. Module Name:
  4. sources.
  5. !ENDIF
  6. TARGETNAME=atapikd
  7. TARGETPATH=obj
  8. TARGETTYPE=DYNLINK
  9. USE_MSVCRT=1
  10. USE_LIBCMT=1
  11. C_DEFINES=$(C_DEFINES) -D_NTSYSTEM_
  12. INCLUDES=..\..\inc; \
  13. ..\..\ide\inc; \
  14. ..\..\ide\atapi;\
  15. $(BASE_INC_PATH); \
  16. $(DDK_INC_PATH); \
  17. $(DDK_INC_PATH)\wdm
  18. MSC_WARNING_LEVEL=/W3 /WX
  19. SOURCES=\
  20. atapikd.c \
  21. atapikd.rc \
  22. crash.cpp \
  23. help.c \
  24. kdext.cpp \
  25. util.c
  26. UMTYPE=windows
  27. DLLDEF=$(O)\atapikd.def
  28. TARGETLIBS=$(SDK_LIB_PATH)\kernel32.lib \
  29. $(SDK_LIB_PATH)\dbgeng.lib
  30. DLLENTRY=_DllMainCRTStartup
  31. #
  32. # enable ACPI IDE Control Method
  33. #
  34. C_DEFINES=$(C_DEFINES) -DACPI_CONTROL_METHOD_SUPPORT
  35. #
  36. # keep track of time spent on the first bus scan
  37. #
  38. #C_DEFINES=$(C_DEFINES) -DIDE_MEASURE_BUSSCAN_SPEED
  39. #
  40. # check for irps being completed more than once
  41. #
  42. C_DEFINES=$(C_DEFINES) -DIDE_MULTIPLE_IRP_COMPLETE_REQUESTS_CHECK
  43. #
  44. # always use acpi _STM if available
  45. #
  46. C_DEFINES=$(C_DEFINES) -DALWAYS_USE_APCI_IF_AVAILABLE
  47. #
  48. # always do legacy detection
  49. #
  50. #C_DEFINES=$(C_DEFINES) -DALWAYS_DO_LEGACY_DETECTION
  51. #
  52. # DEBUG:
  53. #
  54. # periodically fails BmSetup
  55. #
  56. #C_DEFINES=$(C_DEFINES) -DFAKE_BMSETUP_FAILURE=50
  57. #
  58. # WMI support
  59. #
  60. C_DEFINES=$(C_DEFINES) -DIDEPORT_WMI_SUPPORT
  61. #
  62. # rescan ide bus if we get an dma error
  63. #
  64. #C_DEFINES=$(C_DEFINES) -DBUS_CHECK_ON_DMA_ERROR
  65. #
  66. # always verify device if it can really do DMA
  67. #
  68. #C_DEFINES=$(C_DEFINES) -DALWAYS_VERIFY_DMA
  69. #
  70. # fake totally broken dma device
  71. #
  72. #C_DEFINES=$(C_DEFINES) -DFAKE_BROKEN_DMA_DEVICE
  73. #
  74. # Use a timer DPC to check for empty channel
  75. #
  76. C_DEFINES=$(C_DEFINES) -DDPC_FOR_EMPTY_CHANNEL
  77. #
  78. # IOCTL_DISK_GET_DRIVE_GEOMETRY supported
  79. #
  80. #C_DEFINES=$(C_DEFINES) -DGET_DISK_GEOMETRY_DEFINED
  81. #
  82. # Support DVD commands for IDE devices
  83. #
  84. #C_DEFINES=$(C_DEFINES) -DIDE_CPQ_BM
  85. #
  86. # support timelog
  87. #
  88. #C_DEFINES=$(C_DEFINES) -DENABLE_TIME_LOG
  89. #
  90. # support timelog
  91. #
  92. C_DEFINES=$(C_DEFINES) -DENABLE_SMARTLOG_SUPPORT
  93. #
  94. # support command log
  95. #
  96. C_DEFINES=$(C_DEFINES) -DENABLE_COMMAND_LOG
  97. #
  98. # enable native mode support
  99. #
  100. #C_DEFINES=$(C_DEFINES) -DENABLE_NATIVE_MODE
  101. #
  102. # simulate different error conditions
  103. # DO NOT ENABLE THIS. Under construction
  104. #
  105. #C_DEFINES=$(C_DEFINES) -DENABLE_ATAPI_VERIFIER
  106. #
  107. # log DEADMEAT reason
  108. #
  109. C_DEFINES=$(C_DEFINES) -DLOG_DEADMEAT_EVENT
  110. #
  111. # sync device relations
  112. #
  113. #C_DEFINES=$(C_DEFINES) -DSYNC_DEVICE_RELATIONS
  114. #
  115. # bus trace
  116. #
  117. #C_DEFINES=$(C_DEFINES) -DIDE_BUS_TRACE