add the common pc IRQTYPE definitions, and copy them for both the 32bit and 64bit...
[AROS.git] / arch / all-pc / kernel / apic_msi.c
blob044f66e1b5ff1352dbaeecc79b913a120e828674
1 /*
2 Copyright © 2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/kernel.h>
7 #include <aros/libcall.h>
8 #include <proto/exec.h>
10 #include <kernel_base.h>
11 #include <kernel_cpu.h>
12 #include <kernel_debug.h>
13 #include <kernel_interrupts.h>
14 #include <kernel_objects.h>
16 #define D(x)
18 ULONG core_APIC_AllocMSI()
20 D(bug("[APIC:MSI] %s()\n"));
21 return (ULONG)-1;
24 void core_APIC_RegisterMSI(void *handle)
26 struct IntrNode *msihandle = (struct IntrNode *)handle;
28 D(bug("[APIC:MSI] %s: MSI Handler @ 0x%p\n", msihandle));
29 if (msihandle->in_nr >= APIC_MSI_BASE)