2007-09-27 18:37:22 +00:00
|
|
|
#ifndef __UNIATA_SATA__H__
|
|
|
|
#define __UNIATA_SATA__H__
|
|
|
|
|
|
|
|
UCHAR
|
2009-04-06 14:38:21 +00:00
|
|
|
NTAPI
|
2007-09-27 18:37:22 +00:00
|
|
|
UniataSataConnect(
|
|
|
|
IN PVOID HwDeviceExtension,
|
|
|
|
IN ULONG lChannel // logical channel
|
|
|
|
);
|
|
|
|
|
|
|
|
UCHAR
|
2009-04-06 14:38:21 +00:00
|
|
|
NTAPI
|
2007-09-27 18:37:22 +00:00
|
|
|
UniataSataPhyEnable(
|
|
|
|
IN PVOID HwDeviceExtension,
|
|
|
|
IN ULONG lChannel // logical channel
|
|
|
|
);
|
|
|
|
|
|
|
|
#define UNIATA_SATA_DO_CONNECT TRUE
|
|
|
|
#define UNIATA_SATA_IGNORE_CONNECT FALSE
|
|
|
|
|
|
|
|
BOOLEAN
|
2009-04-06 14:38:21 +00:00
|
|
|
NTAPI
|
2007-09-27 18:37:22 +00:00
|
|
|
UniataSataClearErr(
|
|
|
|
IN PVOID HwDeviceExtension,
|
|
|
|
IN ULONG lChannel, // logical channel
|
|
|
|
IN BOOLEAN do_connect
|
|
|
|
);
|
|
|
|
|
|
|
|
#define UNIATA_SATA_EVENT_ATTACH 0x01
|
|
|
|
#define UNIATA_SATA_EVENT_DETACH 0x02
|
|
|
|
|
|
|
|
BOOLEAN
|
2009-04-06 14:38:21 +00:00
|
|
|
NTAPI
|
2007-09-27 18:37:22 +00:00
|
|
|
UniataSataEvent(
|
|
|
|
IN PVOID HwDeviceExtension,
|
|
|
|
IN ULONG lChannel, // logical channel
|
|
|
|
IN ULONG Action
|
|
|
|
);
|
|
|
|
|
2008-03-24 21:35:52 +00:00
|
|
|
#define UniataIsSATARangeAvailable(deviceExtension, lChannel) \
|
|
|
|
((deviceExtension->BaseIoAddressSATA_0.Addr || \
|
|
|
|
deviceExtension->BaseIoAHCI_0.Addr) && \
|
|
|
|
(deviceExtension->chan[lChannel].RegTranslation[IDX_SATA_SStatus].Addr))
|
|
|
|
|
|
|
|
BOOLEAN
|
2009-04-06 14:38:21 +00:00
|
|
|
NTAPI
|
2008-03-24 21:35:52 +00:00
|
|
|
UniataAhciInit(
|
|
|
|
IN PVOID HwDeviceExtension
|
|
|
|
);
|
|
|
|
|
|
|
|
UCHAR
|
2009-04-06 14:38:21 +00:00
|
|
|
NTAPI
|
2008-03-24 21:35:52 +00:00
|
|
|
UniataAhciStatus(
|
|
|
|
IN PVOID HwDeviceExtension,
|
|
|
|
IN ULONG lChannel
|
|
|
|
);
|
|
|
|
|
|
|
|
ULONG
|
2009-04-06 14:38:21 +00:00
|
|
|
NTAPI
|
2008-03-24 21:35:52 +00:00
|
|
|
UniataAhciSetupFIS(
|
|
|
|
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,
|
|
|
|
IN ULONG flags
|
|
|
|
);
|
|
|
|
|
2007-09-28 11:01:10 +00:00
|
|
|
#endif //__UNIATA_SATA__H__
|