mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[HALX86] Partly implement HalCalculateScatterGatherListSize
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user