boot/efi/dtb: implement interrupt controller detection
Change-Id: I045a94c5bcb7c16297bc6fdd1fa2981e5b3f3a62 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4756 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
09a8f74d70
commit
354655e136
@@ -11,6 +11,7 @@
|
||||
|
||||
|
||||
#include <util/FixedWidthPointer.h>
|
||||
#include <boot/interrupt_controller.h>
|
||||
#include <boot/uart.h>
|
||||
|
||||
|
||||
@@ -41,6 +42,7 @@ typedef struct {
|
||||
FixedWidthPointer<void> fdt;
|
||||
|
||||
uart_info uart;
|
||||
intc_info interrupt_controller;
|
||||
} _PACKED arch_kernel_args;
|
||||
|
||||
#endif /* KERNEL_ARCH_ARM_KERNEL_ARGS_H */
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* 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"
|
||||
|
||||
|
||||
typedef struct {
|
||||
char kind[32];
|
||||
addr_range regs1;
|
||||
addr_range regs2;
|
||||
} __attribute__((packed)) intc_info;
|
||||
|
||||
|
||||
#endif /* KERNEL_BOOT_INTERRUPT_CONTROLLER_H */
|
||||
Reference in New Issue
Block a user