revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-pc / kernel / ioapic.h
blobd36ede2e988a7da33280c54c1c4bda1c4d906d33
1 #ifndef KERNEL_IOAPIC_H
2 #define KERNEL_IOAPIC_H
3 /*
4 Copyright © 2017, The AROS Development Team. All rights reserved.
5 $Id$
7 Desc: Generic AROS IOAPIC definitions.
8 Lang: english
9 */
11 #include <asm/cpu.h>
13 #include "apic.h"
15 #define IOAPICREG_ID 0x0
16 #define IOAPICREG_VER 0x1
17 #define IOAPICREG_ARB 0x2
18 #define IOAPICREG_REDTBLBASE 0x10
20 struct IOAPICCfgData
22 APTR ioapic_Base;
23 ULONG ioapic_Flags;
24 apicid_t ioapic_ID;
25 UBYTE ioapic_Ver;
26 UBYTE ioapic_IRQCount;
27 UBYTE ioapic_GSI;
28 UQUAD *ioapic_RouteTable;
31 #define IOAPICF_ENABLED (1 << 1)
33 struct IOAPICData
35 ULONG ioapic_count;
36 struct IOAPICCfgData ioapics[0]; /* Per-IOAPIC data */
39 extern struct IntrController IOAPICInt_IntrController;
41 #endif /* !KERNEL_IOAPIC_H */