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 <karolyd577@gmail.com> Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
This commit is contained in:
parent
12ae5308f2
commit
fe2bcea730
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "irq_routing_table.h"
|
||||
#include "acpi_irq_routing_table.h"
|
||||
|
||||
#include "acpi.h"
|
||||
|
||||
@ -34,7 +34,11 @@ const char* kACPIPciExpressRootName = "PNP0A08";
|
||||
static const uint8 kMaxPCIFunctionCount = 8;
|
||||
static const uint8 kMaxPCIDeviceCount = 32;
|
||||
// TODO: actually this is mechanism dependent
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
static const uint8 kMaxISAInterrupts = 16;
|
||||
#else
|
||||
static const uint8 kMaxISAInterrupts = 0;
|
||||
#endif
|
||||
|
||||
irq_descriptor::irq_descriptor()
|
||||
:
|
@ -13,6 +13,7 @@ UsePrivateKernelHeaders ;
|
||||
UsePrivateHeaders shared ;
|
||||
UsePrivateHeaders [ FDirName system arch x86 ] ;
|
||||
|
||||
SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ;
|
||||
SEARCH_SOURCE += [ FDirName $(SUBDIR) paging ] ;
|
||||
SEARCH_SOURCE += [ FDirName $(SUBDIR) timers ] ;
|
||||
|
||||
@ -92,7 +93,7 @@ local archGenericSources =
|
||||
arch_vm_translation_map.cpp
|
||||
apic.cpp
|
||||
ioapic.cpp
|
||||
irq_routing_table.cpp
|
||||
acpi_irq_routing_table.cpp
|
||||
msi.cpp
|
||||
pic.cpp
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <int.h>
|
||||
#include <vm/vm.h>
|
||||
|
||||
#include "irq_routing_table.h"
|
||||
#include "acpi_irq_routing_table.h"
|
||||
|
||||
#include <ACPI.h>
|
||||
#include <AutoDeleter.h>
|
||||
|
Loading…
Reference in New Issue
Block a user