Move irq_routing_table from x86 to generic.
There is nothing really x86-specific there, other platforms use ACPI interrupt routing for PCI too. Change-Id: Ib02e2917902a161c3d79a1049bcd16ba40bb7814 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5277 Reviewed-by: David Karoly <[email protected]> Reviewed-by: Fredrik Holmqvist <[email protected]>
This commit is contained in:
committed by
Fredrik Holmqvist
parent
12ae5308f2
commit
fe2bcea730
+5
-1
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "irq_routing_table.h"
|
#include "acpi_irq_routing_table.h"
|
||||||
|
|
||||||
#include "acpi.h"
|
#include "acpi.h"
|
||||||
|
|
||||||
@@ -34,7 +34,11 @@ const char* kACPIPciExpressRootName = "PNP0A08";
|
|||||||
static const uint8 kMaxPCIFunctionCount = 8;
|
static const uint8 kMaxPCIFunctionCount = 8;
|
||||||
static const uint8 kMaxPCIDeviceCount = 32;
|
static const uint8 kMaxPCIDeviceCount = 32;
|
||||||
// TODO: actually this is mechanism dependent
|
// TODO: actually this is mechanism dependent
|
||||||
|
#if defined(__i386__) || defined(__x86_64__)
|
||||||
static const uint8 kMaxISAInterrupts = 16;
|
static const uint8 kMaxISAInterrupts = 16;
|
||||||
|
#else
|
||||||
|
static const uint8 kMaxISAInterrupts = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
irq_descriptor::irq_descriptor()
|
irq_descriptor::irq_descriptor()
|
||||||
:
|
:
|
||||||
@@ -13,6 +13,7 @@ UsePrivateKernelHeaders ;
|
|||||||
UsePrivateHeaders shared ;
|
UsePrivateHeaders shared ;
|
||||||
UsePrivateHeaders [ FDirName system arch x86 ] ;
|
UsePrivateHeaders [ FDirName system arch x86 ] ;
|
||||||
|
|
||||||
|
SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ;
|
||||||
SEARCH_SOURCE += [ FDirName $(SUBDIR) paging ] ;
|
SEARCH_SOURCE += [ FDirName $(SUBDIR) paging ] ;
|
||||||
SEARCH_SOURCE += [ FDirName $(SUBDIR) timers ] ;
|
SEARCH_SOURCE += [ FDirName $(SUBDIR) timers ] ;
|
||||||
|
|
||||||
@@ -92,7 +93,7 @@ local archGenericSources =
|
|||||||
arch_vm_translation_map.cpp
|
arch_vm_translation_map.cpp
|
||||||
apic.cpp
|
apic.cpp
|
||||||
ioapic.cpp
|
ioapic.cpp
|
||||||
irq_routing_table.cpp
|
acpi_irq_routing_table.cpp
|
||||||
msi.cpp
|
msi.cpp
|
||||||
pic.cpp
|
pic.cpp
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#include <int.h>
|
#include <int.h>
|
||||||
#include <vm/vm.h>
|
#include <vm/vm.h>
|
||||||
|
|
||||||
#include "irq_routing_table.h"
|
#include "acpi_irq_routing_table.h"
|
||||||
|
|
||||||
#include <ACPI.h>
|
#include <ACPI.h>
|
||||||
#include <AutoDeleter.h>
|
#include <AutoDeleter.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user