2021-12-03 14:08:57 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2021 Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef KERNEL_BOOT_INTERRUPT_CONTROLLER_H
|
|
|
|
#define KERNEL_BOOT_INTERRUPT_CONTROLLER_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <boot/addr_range.h>
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
|
|
|
|
#define INTC_KIND_GICV1 "gicv1"
|
|
|
|
#define INTC_KIND_GICV2 "gicv2"
|
|
|
|
#define INTC_KIND_OMAP3 "omap3"
|
|
|
|
#define INTC_KIND_PXA "pxa"
|
2022-03-14 23:47:05 +03:00
|
|
|
#define INTC_KIND_SUN4I "sun4i"
|
2021-12-03 14:08:57 +03:00
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char kind[32];
|
|
|
|
addr_range regs1;
|
|
|
|
addr_range regs2;
|
|
|
|
} __attribute__((packed)) intc_info;
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* KERNEL_BOOT_INTERRUPT_CONTROLLER_H */
|