mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:11:55 +00:00
[NTOS][SDK:LIB] Add a Resources Arbiter library, to be used by bus drivers (acpi, pci), kernel and legacy hal (PIC HAL). (#2471)
This commit is contained in:
parent
28e277b65f
commit
374f2b4d98
10 changed files with 470 additions and 4 deletions
41
sdk/lib/drivers/arbiter/arbiter.c
Normal file
41
sdk/lib/drivers/arbiter/arbiter.c
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Kernel
|
||||
* COPYRIGHT: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
||||
* FILE: lib/drivers/arbiter/arbiter.c
|
||||
* PURPOSE: Hardware Resources Arbiter Library
|
||||
* PROGRAMMERS: Copyright 2020 Vadim Galyant <vgal@rambler.ru>
|
||||
*/
|
||||
|
||||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "arbiter.h"
|
||||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
||||
/* DATA **********************************************************************/
|
||||
|
||||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
ArbInitializeArbiterInstance(
|
||||
_Inout_ PARBITER_INSTANCE Arbiter,
|
||||
_In_ PDEVICE_OBJECT BusDeviceObject,
|
||||
_In_ CM_RESOURCE_TYPE ResourceType,
|
||||
_In_ PCWSTR ArbiterName,
|
||||
_In_ PCWSTR OrderName,
|
||||
_In_ PARB_TRANSLATE_ORDERING TranslateOrderingFunction)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
|
||||
DPRINT("ArbInitializeArbiterInstance: Initializing %S Arbiter\n", ArbiterName);
|
||||
UNIMPLEMENTED;
|
||||
|
||||
Status = STATUS_SUCCESS;
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue