mirror of
https://github.com/reactos/reactos.git
synced 2025-05-13 14:20:31 +00:00
[HALX86][PCIX] Statically link HALx86 and PCIX to the arbiter library. (#2471)
This commit is contained in:
parent
374f2b4d98
commit
ef2323a146
4 changed files with 41 additions and 5 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
include_directories(
|
||||||
|
${REACTOS_SOURCE_DIR}/sdk/lib/drivers/arbiter)
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
arb/ar_busno.c
|
arb/ar_busno.c
|
||||||
|
@ -41,6 +43,7 @@ add_library(pcix MODULE
|
||||||
pci.rc)
|
pci.rc)
|
||||||
|
|
||||||
set_module_type(pcix kernelmodedriver)
|
set_module_type(pcix kernelmodedriver)
|
||||||
|
target_link_libraries(pcix arbiter)
|
||||||
add_importlibs(pcix ntoskrnl hal)
|
add_importlibs(pcix ntoskrnl hal)
|
||||||
add_pch(pcix pci.h SOURCE)
|
add_pch(pcix pci.h SOURCE)
|
||||||
add_dependencies(pcix pciclass)
|
add_dependencies(pcix pciclass)
|
||||||
|
|
|
@ -34,11 +34,38 @@ NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
arbusno_Initializer(IN PVOID Instance)
|
arbusno_Initializer(IN PVOID Instance)
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(Instance);
|
PPCI_ARBITER_INSTANCE Arbiter = Instance;
|
||||||
|
PPCI_FDO_EXTENSION FdoExtension;
|
||||||
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
PAGED_CODE();
|
||||||
|
|
||||||
|
RtlZeroMemory(&Arbiter->CommonInstance, sizeof(Arbiter->CommonInstance));
|
||||||
|
|
||||||
|
FdoExtension = Arbiter->BusFdoExtension;
|
||||||
|
|
||||||
/* Not yet implemented */
|
/* Not yet implemented */
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
//while (TRUE);
|
|
||||||
return STATUS_SUCCESS;
|
#if 0
|
||||||
|
Arbiter->CommonInstance.UnpackRequirement = arbusno_UnpackRequirement;
|
||||||
|
Arbiter->CommonInstance.PackResource = arbusno_PackResource;
|
||||||
|
Arbiter->CommonInstance.UnpackResource = arbusno_UnpackResource;
|
||||||
|
Arbiter->CommonInstance.ScoreRequirement = arbusno_ScoreRequirement;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Status = ArbInitializeArbiterInstance(&Arbiter->CommonInstance,
|
||||||
|
FdoExtension->FunctionalDeviceObject,
|
||||||
|
CmResourceTypeBusNumber,
|
||||||
|
Arbiter->InstanceName,
|
||||||
|
L"Pci",
|
||||||
|
NULL);
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
DPRINT1("arbusno_Initializer: init arbiter return %X", Status);
|
||||||
|
}
|
||||||
|
|
||||||
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include <ndk/halfuncs.h>
|
#include <ndk/halfuncs.h>
|
||||||
#include <ndk/rtlfuncs.h>
|
#include <ndk/rtlfuncs.h>
|
||||||
#include <ndk/vffuncs.h>
|
#include <ndk/vffuncs.h>
|
||||||
|
#include <arbiter.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
// Tag used in all pool allocations (Pci Bus)
|
// Tag used in all pool allocations (Pci Bus)
|
||||||
|
@ -402,7 +403,7 @@ typedef struct PCI_ARBITER_INSTANCE
|
||||||
PPCI_INTERFACE Interface;
|
PPCI_INTERFACE Interface;
|
||||||
PPCI_FDO_EXTENSION BusFdoExtension;
|
PPCI_FDO_EXTENSION BusFdoExtension;
|
||||||
WCHAR InstanceName[24];
|
WCHAR InstanceName[24];
|
||||||
//ARBITER_INSTANCE CommonInstance; FIXME: Need Arbiter Headers
|
ARBITER_INSTANCE CommonInstance;
|
||||||
} PCI_ARBITER_INSTANCE, *PPCI_ARBITER_INSTANCE;
|
} PCI_ARBITER_INSTANCE, *PPCI_ARBITER_INSTANCE;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -32,7 +32,12 @@ function(add_hal _halname)
|
||||||
target_link_libraries(${_halname} ${_haldata_LIBS})
|
target_link_libraries(${_halname} ${_haldata_LIBS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (${_halname} STREQUAL "hal")
|
||||||
|
target_link_libraries(${_halname} libcntpr arbiter)
|
||||||
|
else()
|
||||||
target_link_libraries(${_halname} libcntpr)
|
target_link_libraries(${_halname} libcntpr)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_importlibs(${_halname} ntoskrnl)
|
add_importlibs(${_halname} ntoskrnl)
|
||||||
#add_pch(${_halname} include/hal.h)
|
#add_pch(${_halname} include/hal.h)
|
||||||
add_dependencies(${_halname} psdk asm)
|
add_dependencies(${_halname} psdk asm)
|
||||||
|
|
Loading…
Reference in a new issue