21 600, 383, 240, 180, 120,
30 120, 80, 60, 45, 30, 20, 15
54 SupportedMode &= AllowedModesMask;
67 WARN(
"Device '%s' returned zero cycle time\n", DevExt->FriendlyName);
83 SupportedMode = (1 << (SupportedMode + 1)) - 1;
84 SupportedMode &= AllowedModesMask;
91 DevExt->TransferModeSupportedBitmap |= SupportedMode;
99 CurrentMode = BestMode;
100 DevExt->TransferModeCurrentBitmap |= 1 << CurrentMode;
115 CurrentMode = ((IdentifyData->
ObsoleteWord62 & 0xFF00) >> 16) & 0x7;
116 if (CurrentMode != 0)
121 DevExt->TransferModeCurrentBitmap |= 1 << CurrentMode;
127 SupportedMode &= AllowedModesMask;
128 if (SupportedMode != 0)
130 DevExt->TransferModeSupportedBitmap |= SupportedMode;
138 DevExt->MinimumSingleWordDmaCycleTime =
CycleTime;
154 if (CurrentMode != 0)
159 DevExt->TransferModeCurrentBitmap |= 1 << CurrentMode;
165 SupportedMode &= AllowedModesMask;
166 if (SupportedMode != 0)
168 DevExt->TransferModeSupportedBitmap |= SupportedMode;
186 DevExt->MinimumMultiWordDmaCycleTime =
CycleTime;
206 if (CurrentMode != 0)
211 DevExt->TransferModeCurrentBitmap |= 1 << CurrentMode;
217 SupportedMode &= AllowedModesMask;
218 if (SupportedMode != 0)
220 DevExt->TransferModeSupportedBitmap |= SupportedMode;
229 DevExt->MinimumUltraDmaCycleTime =
CycleTime;
238 INFO(
"CH %lu: Device %u '%s'\n"
239 "Cycle time UDMA[%ld] MWDMA[%ld] SWDMA[%ld] PIO[%ld]\n"
240 "Supported modes 0x%08lX\n"
241 "Active modes 0x%08lX\n"
242 "Selected modes 0x%08lX\n"
244 PortData->PortNumber,
245 DevExt->Device.AtaScsiAddress.TargetId,
246 DevExt->FriendlyName,
247 (
LONG)DevExt->MinimumUltraDmaCycleTime,
248 (
LONG)DevExt->MinimumMultiWordDmaCycleTime,
249 (
LONG)DevExt->MinimumSingleWordDmaCycleTime,
250 (
LONG)DevExt->MinimumPioCycleTime,
251 DevExt->TransferModeSupportedBitmap,
252 DevExt->TransferModeCurrentBitmap,
253 DevExt->TransferModeSelectedBitmap,
254 DevExt->IdentifyDeviceData.Capabilities.IordySupported);
267 if (ForceCompatibleTimings)
287 PortData->SetTransferMode(PortData->ChannelContext,
DeviceList);
296 ULONG AllowedModesMask;
326 Config[
i].FriendlyName = DevExt->FriendlyName;
330 PortData->SetTransferMode(PortData->ChannelContext,
DeviceList);
#define IDE_ACPI_TIMING_MODE_NOT_SUPPORTED
FORCEINLINE ATA_SCSI_ADDRESS AtaMarshallScsiAddress(_In_ ULONG PathId, _In_ ULONG TargetId, _In_ ULONG Lun)
DECLSPEC_NOINLINE_FROM_PAGED PATAPORT_DEVICE_EXTENSION AtaFdoFindDeviceByPath(_In_ PATAPORT_CHANNEL_EXTENSION ChanExt, _In_ ATA_SCSI_ADDRESS AtaScsiAddress, _In_ PVOID ReferenceTag)
#define DEVICE_PNP_STARTED
static VOID AtaTimQueryPioModeSupport(_In_ PATAPORT_DEVICE_EXTENSION DevExt, _In_ ULONG AllowedModesMask)
static VOID AtaTimDumpTimingInfo(_In_ PATAPORT_PORT_DATA PortData, _In_ PATAPORT_DEVICE_EXTENSION DevExt)
static const ULONG AtapModeToCycleTime[]
static VOID AtaTimQuerySwDmaModeSupport(_In_ PATAPORT_DEVICE_EXTENSION DevExt, _In_ ULONG AllowedModesMask)
static VOID AtaTimQueryUDmaModeSupport(_In_ PATAPORT_DEVICE_EXTENSION DevExt, _In_ ULONG AllowedModesMask)
static VOID AtaTimQueryMwDmaModeSupport(_In_ PATAPORT_DEVICE_EXTENSION DevExt, _In_ ULONG AllowedModesMask)
VOID AtaPortSelectTimings(_In_ PATAPORT_PORT_DATA PortData, _In_ BOOLEAN ForceCompatibleTimings)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
unsigned char _BitScanReverse(unsigned long *_Index, unsigned long _Mask)
ULONG MinimumPioCycleTime
ULONG TransferModeSelectedBitmap
ULONG TransferModeCurrentBitmap
IDENTIFY_DEVICE_DATA IdentifyDeviceData
ULONG TransferModeSupportedBitmap
ULONG MinimumSingleWordDmaCycleTime
ATAPORT_IO_CONTEXT Device
ULONG MinimumMultiWordDmaCycleTime
ULONG TransferModeAllowedMask
ULONG TransferModeUserAllowedMask
USHORT RecommendedMWXferCycleTime
USHORT MultiWordDMASupport
USHORT MultiWordDMAActive
USHORT ObsoleteWords51[2]
USHORT MinimumMWXferCycleTime
USHORT TranslationFieldsValid
USHORT MinimumPIOCycleTime
struct _IDENTIFY_DEVICE_DATA::@2045 Capabilities
USHORT MinimumPIOCycleTimeIORDY
#define CONTAINING_RECORD(address, type, field)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_CHILD_LIST_CONFIG Config