ReactOS 0.4.15-dev-8621-g4b051b9
|
Go to the source code of this file.
Macros | |
#define | UNIATA_SATA_RESET_ENABLE TRUE |
#define | UNIATA_SATA_FAST_ENABLE FALSE |
#define | UNIATA_SATA_DO_CONNECT TRUE |
#define | UNIATA_SATA_IGNORE_CONNECT FALSE |
#define | UNIATA_SATA_EVENT_ATTACH 0x01 |
#define | UNIATA_SATA_EVENT_DETACH 0x02 |
#define | UniataAhciReadHostPort4(deviceExtension, io_port_ndx) AtapiReadPortEx4(NULL, (ULONGIO_PTR)&((deviceExtension)->BaseIoAHCI_0), io_port_ndx) |
#define | UniataAhciWriteHostPort4(deviceExtension, io_port_ndx, data) AtapiWritePortEx4(NULL, (ULONGIO_PTR)&((deviceExtension)->BaseIoAHCI_0), io_port_ndx, data) |
#define UniataAhciReadHostPort4 | ( | deviceExtension, | |
io_port_ndx | |||
) | AtapiReadPortEx4(NULL, (ULONGIO_PTR)&((deviceExtension)->BaseIoAHCI_0), io_port_ndx) |
#define UniataAhciWriteHostPort4 | ( | deviceExtension, | |
io_port_ndx, | |||
data | |||
) | AtapiWritePortEx4(NULL, (ULONGIO_PTR)&((deviceExtension)->BaseIoAHCI_0), io_port_ndx, data) |
PSCSI_REQUEST_BLOCK NTAPI BuildAhciInternalSrb | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | DeviceNumber, | ||
IN ULONG | lChannel, | ||
IN PUCHAR | Buffer = NULL , |
||
IN ULONG | Length = 0 |
||
) |
Definition at line 2644 of file id_sata.cpp.
Referenced by UniataAhciSendPIOCommand().
BOOLEAN NTAPI UniataAhciAbortOperation | ( | IN PHW_CHANNEL | chan | ) |
Definition at line 1765 of file id_sata.cpp.
Referenced by AtapiInterrupt__(), IdeSendCommand(), UniataAhciEndTransaction(), and UniataAhciSoftReset().
__inline USHORT UniAtaAhciAdjustIoFlags | ( | IN UCHAR | command, |
IN USHORT | ahci_flags, | ||
IN ULONG | fis_size, | ||
IN ULONG | DeviceNumber | ||
) |
Definition at line 357 of file id_sata.h.
Referenced by AtapiSendCommand(), IdeReadWrite(), UniataAhciSendCommand(), UniataAhciSendPIOCommand(), and UniataAhciSendPIOCommandDirect().
UCHAR NTAPI UniataAhciBeginTransaction | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
IN ULONG | DeviceNumber, | ||
IN PSCSI_REQUEST_BLOCK | Srb | ||
) |
Definition at line 2171 of file id_sata.cpp.
Referenced by AtapiSendCommand(), IdeReadWrite(), UniataAhciSendPIOCommand(), and UniataAhciSendPIOCommandDirect().
__inline BOOLEAN UniataAhciChanImplemented | ( | IN PHW_DEVICE_EXTENSION | deviceExtension, |
IN ULONG | c | ||
) |
Definition at line 415 of file id_sata.h.
Referenced by AtapiCheckInterrupt__(), AtapiEnableInterrupts(), AtapiHwInitialize__(), AtapiResetController__(), AtapiStartIo__(), and UniataAhciInit().
BOOLEAN NTAPI UniataAhciCLO | ( | IN PHW_CHANNEL | chan | ) |
Definition at line 2102 of file id_sata.cpp.
Referenced by UniataAhciAbortOperation().
BOOLEAN NTAPI UniataAhciDetect | ( | IN PVOID | HwDeviceExtension, |
IN PPCI_COMMON_CONFIG | pciData, | ||
IN OUT PPORT_CONFIGURATION_INFORMATION | ConfigInfo | ||
) |
Definition at line 890 of file id_sata.cpp.
Referenced by UniataChipDetect().
UCHAR NTAPI UniataAhciEndTransaction | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
IN ULONG | DeviceNumber, | ||
IN PSCSI_REQUEST_BLOCK | Srb | ||
) |
Definition at line 2294 of file id_sata.cpp.
Referenced by AtapiInterrupt__(), UniataAhciSendPIOCommand(), and UniataAhciSendPIOCommandDirect().
ULONG NTAPI UniataAhciHardReset | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
OUT PULONG | signature | ||
) |
Definition at line 1880 of file id_sata.cpp.
Referenced by UniataAhciReset().
Definition at line 645 of file id_sata.cpp.
Referenced by AtapiChipInit().
__inline ULONG UniataAhciReadChannelPort4 | ( | IN PHW_CHANNEL | chan, |
IN ULONG | io_port_ndx | ||
) |
Definition at line 290 of file id_sata.h.
Referenced by AtapiSendCommand(), UniataAhciBeginTransaction(), UniataAhciCLO(), UniataAhciEndTransaction(), UniataAhciHardReset(), UniataAhciResume(), UniataAhciSnapAtaRegs(), UniataAhciSoftReset(), UniataAhciStart(), UniataAhciStartFR(), UniataAhciStatus(), UniataAhciStop(), UniataAhciStopFR(), UniataAhciWaitCommandReady(), UniataAhciWaitReady(), UniataAhciWritePM(), and UniataAnybodyHome().
BOOLEAN NTAPI UniataAhciReadPM | ( | IN PHW_CHANNEL | chan, |
IN ULONG | DeviceNumber, | ||
IN ULONG | Reg, | ||
OUT PULONG | result | ||
) |
Definition at line 2491 of file id_sata.cpp.
Referenced by UniataSataReadPM().
Definition at line 1925 of file id_sata.cpp.
Referenced by AtapiChipInit(), and AtapiResetController__().
VOID NTAPI UniataAhciResume | ( | IN PHW_CHANNEL | chan | ) |
Definition at line 2390 of file id_sata.cpp.
Referenced by UniataAhciInit().
UCHAR NTAPI UniataAhciSendCommand | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
IN ULONG | DeviceNumber, | ||
IN USHORT | ahci_flags, | ||
IN ULONG | timeout | ||
) |
Definition at line 1496 of file id_sata.cpp.
Referenced by UniataAhciReadPM(), UniataAhciSoftReset(), and UniataAhciWritePM().
UCHAR NTAPI UniataAhciSendPIOCommand | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
IN ULONG | DeviceNumber, | ||
IN PSCSI_REQUEST_BLOCK | Srb, | ||
IN PUCHAR | data, | ||
IN ULONG | length, | ||
IN UCHAR | command, | ||
IN ULONGLONG | lba, | ||
IN USHORT | count, | ||
IN USHORT | feature, | ||
IN USHORT | ahci_flags, | ||
IN ULONG | flags, | ||
IN ULONG | timeout | ||
) |
Definition at line 1538 of file id_sata.cpp.
Referenced by AtaCommand(), AtaCommand48(), and IssueIdentify().
UCHAR NTAPI UniataAhciSendPIOCommandDirect | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
IN ULONG | DeviceNumber, | ||
IN PSCSI_REQUEST_BLOCK | Srb, | ||
IN PIDEREGS_EX | regs, | ||
IN ULONG | wait_flags, | ||
IN ULONG | timeout | ||
) |
Definition at line 1655 of file id_sata.cpp.
Referenced by IdeSendCommand().
Definition at line 2611 of file id_sata.cpp.
Referenced by AtapiSendCommand(), AtapiSetupLunPtrs(), and IdeReadWrite().
ULONG NTAPI UniataAhciSetupFIS_H2D | ( | IN PHW_DEVICE_EXTENSION | deviceExtension, |
IN ULONG | DeviceNumber, | ||
IN ULONG | lChannel, | ||
OUT PUCHAR | fis, | ||
IN UCHAR | command, | ||
IN ULONGLONG | lba, | ||
IN USHORT | count, | ||
IN USHORT | feature | ||
) |
Definition at line 1241 of file id_sata.cpp.
Referenced by AtapiSendCommand(), IdeReadWrite(), and UniataAhciSendPIOCommand().
VOID NTAPI UniataAhciSnapAtaRegs | ( | IN PHW_CHANNEL | chan, |
IN ULONG | DeviceNumber, | ||
IN OUT PIDEREGS_EX | regs | ||
) |
Definition at line 1216 of file id_sata.cpp.
Referenced by UniataSnapAtaRegs().
ULONG NTAPI UniataAhciSoftReset | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
IN ULONG | DeviceNumber | ||
) |
Definition at line 1787 of file id_sata.cpp.
Referenced by AtapiSoftReset(), CheckDevice(), UniataAhciReset(), and UniataSataSoftReset().
VOID NTAPI UniataAhciStart | ( | IN PHW_CHANNEL | chan | ) |
Definition at line 2071 of file id_sata.cpp.
Referenced by UniataAhciAbortOperation(), UniataAhciHardReset(), and UniataAhciResume().
VOID NTAPI UniataAhciStartFR | ( | IN PHW_CHANNEL | chan | ) |
Definition at line 2024 of file id_sata.cpp.
Referenced by UniataAhciAbortOperation(), and UniataAhciResume().
UCHAR NTAPI UniataAhciStatus | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
IN ULONG | DeviceNumber | ||
) |
Definition at line 1131 of file id_sata.cpp.
Referenced by AtapiCheckInterrupt__(), AtapiInterrupt__(), UniataAhciSendPIOCommand(), and UniataAhciSendPIOCommandDirect().
BOOLEAN NTAPI UniataAhciStop | ( | IN PHW_CHANNEL | chan | ) |
Definition at line 2140 of file id_sata.cpp.
Referenced by UniataAhciAbortOperation(), and UniataAhciHardReset().
BOOLEAN NTAPI UniataAhciStopFR | ( | IN PHW_CHANNEL | chan | ) |
Definition at line 2042 of file id_sata.cpp.
Referenced by UniataAhciAbortOperation().
Definition at line 345 of file id_sata.h.
Referenced by UniataAhciReadPM(), and UniataAhciSoftReset().
Definition at line 1434 of file id_sata.cpp.
Referenced by AtapiCheckInterrupt__(), AtapiInterrupt__(), UniataAhciSendCommand(), UniataAhciSendPIOCommand(), and UniataAhciSendPIOCommandDirect().
Definition at line 1853 of file id_sata.cpp.
Referenced by AtapiCheckInterrupt__(), UniataAhciHardReset(), and UniataAhciSoftReset().
__inline VOID UniataAhciWriteChannelPort4 | ( | IN PHW_CHANNEL | chan, |
IN ULONG | io_port_ndx, | ||
IN ULONG | data | ||
) |
Definition at line 302 of file id_sata.h.
Referenced by AtapiDisableInterrupts(), AtapiEnableInterrupts(), UniataAhciBeginTransaction(), UniataAhciCLO(), UniataAhciReset(), UniataAhciResume(), UniataAhciSendCommand(), UniataAhciStart(), UniataAhciStartFR(), UniataAhciStatus(), UniataAhciStop(), UniataAhciStopFR(), and UniataAhciWaitCommandReady().
UCHAR NTAPI UniataAhciWritePM | ( | IN PHW_CHANNEL | chan, |
IN ULONG | DeviceNumber, | ||
IN ULONG | Reg, | ||
IN ULONG | value | ||
) |
Definition at line 2547 of file id_sata.cpp.
Referenced by UniataSataWritePM().
__inline BOOLEAN UniataIsSATARangeAvailable | ( | IN PHW_DEVICE_EXTENSION | deviceExtension, |
IN ULONG | lChannel | ||
) |
Definition at line 91 of file id_sata.h.
Referenced by AtaCommand48(), AtapiCheckInterrupt__(), AtapiDmaInit(), AtapiInterrupt__(), AtapiResetController__(), CheckDevice(), IssueIdentify(), UniataAnybodyHome(), UniataIsIdle(), UniataSataClearErr(), UniataSataConnect(), UniataSataEvent(), and UniataSataPhyEnable().
BOOLEAN NTAPI UniataSataClearErr | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
IN BOOLEAN | do_connect, | ||
IN ULONG | pm_port = 0 |
||
) |
Definition at line 186 of file id_sata.cpp.
Referenced by AtapiCheckInterrupt__(), AtapiInterrupt__(), AtapiResetController__(), AtapiSoftReset(), and CheckDevice().
UCHAR NTAPI UniataSataConnect | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
IN ULONG | pm_port = 0 |
||
) |
Definition at line 44 of file id_sata.cpp.
Referenced by UniataSataEvent(), and UniataSataPhyEnable().
BOOLEAN NTAPI UniataSataEvent | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
IN ULONG | Action, | ||
IN ULONG | pm_port = 0 |
||
) |
Definition at line 233 of file id_sata.cpp.
Referenced by AtapiCheckInterrupt__(), UniataAhciStatus(), and UniataSataClearErr().
UCHAR NTAPI UniataSataPhyEnable | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | lChannel, | ||
IN ULONG | pm_port = 0 , |
||
IN BOOLEAN | doReset = UNIATA_SATA_FAST_ENABLE |
||
) |
Definition at line 124 of file id_sata.cpp.
Referenced by AtapiResetController__(), CheckDevice(), UniataAhciHardReset(), and UniataSataIdentifyPM().
Definition at line 270 of file id_sata.cpp.
Referenced by AtapiCheckInterrupt__(), UniataAhciReadPM(), UniataAnybodyHome(), UniataSataClearErr(), UniataSataConnect(), and UniataSataPhyEnable().
VOID NTAPI UniataSataWritePort4 | ( | IN PHW_CHANNEL | chan, |
IN ULONG | io_port_ndx, | ||
IN ULONG | data, | ||
IN ULONG | pm_port = 0 |
||
) |
Definition at line 357 of file id_sata.cpp.
Referenced by AtapiChipInit(), UniataAhciWritePM(), UniataSataClearErr(), UniataSataConnect(), and UniataSataPhyEnable().