mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[HALX86] Partly implement HalCalculateScatterGatherListSize
This commit is contained in:
parent
05d52aba2b
commit
eb283043d5
1 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue