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.

156 lines
2.5 KiB

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