[HALX86] Partly implement HalCalculateScatterGatherListSize

This commit is contained in:
Hervé Poussineau 2021-11-07 12:17:53 +01:00
parent 05d52aba2b
commit eb283043d5

View file

@ -1173,8 +1173,18 @@ HalCalculateScatterGatherListSize(
OUT PULONG ScatterGatherListSize,
OUT PULONG pNumberOfMapRegisters)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
ULONG NumberOfMapRegisters;
ULONG SgSize;
UNIMPLEMENTED_ONCE;
NumberOfMapRegisters = PAGE_ROUND_UP(Length) >> PAGE_SHIFT;
SgSize = sizeof(SCATTER_GATHER_CONTEXT);
*ScatterGatherListSize = SgSize;
if (pNumberOfMapRegisters) *pNumberOfMapRegisters = NumberOfMapRegisters;
return STATUS_SUCCESS;
}
NTSTATUS