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.

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