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
163 lines
2.9 KiB
!IF 0
|
|
|
|
Copyright (C) Microsoft Corporation, 1997 - 1999
|
|
|
|
Module Name:
|
|
|
|
sources.
|
|
|
|
!ENDIF
|
|
|
|
TARGETNAME=atapi
|
|
TARGETPATH=obj
|
|
TARGETPATHLIB=$(DDK_LIB_DEST)
|
|
TARGETTYPE=DRIVER
|
|
|
|
|
|
TARGETLIBS=$(PROJECT_ROOT)\storage\port\lib\$(O)\portlib.lib
|
|
INCLUDES=..\..\inc;..\inc;$(BASE_INC_PATH);$(PROJECT_ROOT)\inc
|
|
|
|
#
|
|
# enable ACPI IDE Control Method
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DACPI_CONTROL_METHOD_SUPPORT
|
|
|
|
#
|
|
# keep track of time spent on the first bus scan
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DIDE_MEASURE_BUSSCAN_SPEED
|
|
|
|
#
|
|
# check for irps being completed more than once
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DIDE_MULTIPLE_IRP_COMPLETE_REQUESTS_CHECK
|
|
|
|
#
|
|
# always use acpi _STM if available
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DALWAYS_USE_APCI_IF_AVAILABLE
|
|
|
|
#
|
|
# always do legacy detection
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DALWAYS_DO_LEGACY_DETECTION
|
|
|
|
#
|
|
# DEBUG:
|
|
#
|
|
# periodically fails BmSetup
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DFAKE_BMSETUP_FAILURE=50
|
|
|
|
#
|
|
# WMI support
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DIDEPORT_WMI_SUPPORT
|
|
|
|
#
|
|
# rescan ide bus if we get an dma error
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DBUS_CHECK_ON_DMA_ERROR
|
|
|
|
#
|
|
# always verify device if it can really do DMA
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DALWAYS_VERIFY_DMA
|
|
|
|
#
|
|
# fake totally broken dma device
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DFAKE_BROKEN_DMA_DEVICE
|
|
|
|
#
|
|
# Use a timer DPC to check for empty channel
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DDPC_FOR_EMPTY_CHANNEL
|
|
|
|
#
|
|
# IOCTL_DISK_GET_DRIVE_GEOMETRY supported
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DGET_DISK_GEOMETRY_DEFINED
|
|
|
|
#
|
|
# Enable 48 bit LBA support
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DENABLE_48BIT_LBA
|
|
|
|
#
|
|
# Support DVD commands for IDE devices
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DIDE_CPQ_BM
|
|
|
|
#
|
|
# Support Debug prints for IDE devices
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DENABLE_DBG_PRINT
|
|
|
|
#
|
|
# support timelog
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DENABLE_TIME_LOG
|
|
|
|
#
|
|
# support timelog
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DENABLE_SMARTLOG_SUPPORT
|
|
|
|
#
|
|
# support command log
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DENABLE_COMMAND_LOG
|
|
|
|
#
|
|
# enable native mode support
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DENABLE_NATIVE_MODE
|
|
|
|
#
|
|
# simulate different error conditions
|
|
# DO NOT ENABLE THIS. Under construction
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DENABLE_ATAPI_VERIFIER
|
|
|
|
#
|
|
# log DEADMEAT reason
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DLOG_DEADMEAT_EVENT
|
|
|
|
#
|
|
# sync device relations
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DSYNC_DEVICE_RELATIONS
|
|
|
|
#
|
|
# bus trace
|
|
#
|
|
#C_DEFINES=$(C_DEFINES) -DIDE_BUS_TRACE
|
|
|
|
#
|
|
# log getnextlu caller
|
|
#
|
|
C_DEFINES=$(C_DEFINES) -DLOG_GET_NEXT_CALLER
|
|
|
|
SOURCES= \
|
|
ideport.rc \
|
|
atapi.c \
|
|
atapinit.c \
|
|
chanfdo.c \
|
|
detect.c \
|
|
devpdo.c \
|
|
ide.c \
|
|
init.c \
|
|
internal.c \
|
|
luext.c \
|
|
port.c \
|
|
pdopower.c \
|
|
fdopower.c \
|
|
regutils.c \
|
|
crashdmp.c \
|
|
hack.c\
|
|
idedata.c\
|
|
acpiutil.c\
|
|
passthru.c\
|
|
wmi.c
|