Source code of Windows XP (NT5)
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.

150 lines
2.5 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=atapikd.c \
  20. util.c \
  21. kdext.cpp \
  22. help.c \
  23. atapikd.rc
  24. UMTYPE=windows
  25. DLLDEF=$(O)\atapikd.def
  26. TARGETLIBS=$(SDK_LIB_PATH)\kernel32.lib \
  27. $(SDK_LIB_PATH)\dbgeng.lib
  28. DLLENTRY=_DllMainCRTStartup
  29. #
  30. # enable ACPI IDE Control Method
  31. #
  32. C_DEFINES=$(C_DEFINES) -DACPI_CONTROL_METHOD_SUPPORT
  33. #
  34. # keep track of time spent on the first bus scan
  35. #
  36. #C_DEFINES=$(C_DEFINES) -DIDE_MEASURE_BUSSCAN_SPEED
  37. #
  38. # check for irps being completed more than once
  39. #
  40. C_DEFINES=$(C_DEFINES) -DIDE_MULTIPLE_IRP_COMPLETE_REQUESTS_CHECK
  41. #
  42. # always use acpi _STM if available
  43. #
  44. C_DEFINES=$(C_DEFINES) -DALWAYS_USE_APCI_IF_AVAILABLE
  45. #
  46. # always do legacy detection
  47. #
  48. #C_DEFINES=$(C_DEFINES) -DALWAYS_DO_LEGACY_DETECTION
  49. #
  50. # DEBUG:
  51. #
  52. # periodically fails BmSetup
  53. #
  54. #C_DEFINES=$(C_DEFINES) -DFAKE_BMSETUP_FAILURE=50
  55. #
  56. # WMI support
  57. #
  58. C_DEFINES=$(C_DEFINES) -DIDEPORT_WMI_SUPPORT
  59. #
  60. # rescan ide bus if we get an dma error
  61. #
  62. #C_DEFINES=$(C_DEFINES) -DBUS_CHECK_ON_DMA_ERROR
  63. #
  64. # always verify device if it can really do DMA
  65. #
  66. #C_DEFINES=$(C_DEFINES) -DALWAYS_VERIFY_DMA
  67. #
  68. # fake totally broken dma device
  69. #
  70. #C_DEFINES=$(C_DEFINES) -DFAKE_BROKEN_DMA_DEVICE
  71. #
  72. # Use a timer DPC to check for empty channel
  73. #
  74. C_DEFINES=$(C_DEFINES) -DDPC_FOR_EMPTY_CHANNEL
  75. #
  76. # IOCTL_DISK_GET_DRIVE_GEOMETRY supported
  77. #
  78. #C_DEFINES=$(C_DEFINES) -DGET_DISK_GEOMETRY_DEFINED
  79. #
  80. # Support DVD commands for IDE devices
  81. #
  82. #C_DEFINES=$(C_DEFINES) -DIDE_CPQ_BM
  83. #
  84. # support timelog
  85. #
  86. #C_DEFINES=$(C_DEFINES) -DENABLE_TIME_LOG
  87. #
  88. # support timelog
  89. #
  90. C_DEFINES=$(C_DEFINES) -DENABLE_SMARTLOG_SUPPORT
  91. #
  92. # support command log
  93. #
  94. C_DEFINES=$(C_DEFINES) -DENABLE_COMMAND_LOG
  95. #
  96. # enable native mode support
  97. #
  98. #C_DEFINES=$(C_DEFINES) -DENABLE_NATIVE_MODE
  99. #
  100. # simulate different error conditions
  101. # DO NOT ENABLE THIS. Under construction
  102. #
  103. #C_DEFINES=$(C_DEFINES) -DENABLE_ATAPI_VERIFIER
  104. #
  105. # log DEADMEAT reason
  106. #
  107. C_DEFINES=$(C_DEFINES) -DLOG_DEADMEAT_EVENT
  108. #
  109. # sync device relations
  110. #
  111. #C_DEFINES=$(C_DEFINES) -DSYNC_DEVICE_RELATIONS
  112. #
  113. # bus trace
  114. #
  115. #C_DEFINES=$(C_DEFINES) -DIDE_BUS_TRACE