Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / arm / linux-boot-if.h
blobc85f33b2c51919a7500f0de4f89a83988b2fb465
1 /*
2 * hw/arm/linux-boot-if.h : interface for devices which need to behave
3 * specially for direct boot of an ARM Linux kernel
4 */
6 #ifndef HW_ARM_LINUX_BOOT_IF_H
7 #define HW_ARM_LINUX_BOOT_IF_H
9 #include "qom/object.h"
11 #define TYPE_ARM_LINUX_BOOT_IF "arm-linux-boot-if"
12 typedef struct ARMLinuxBootIfClass ARMLinuxBootIfClass;
13 DECLARE_CLASS_CHECKERS(ARMLinuxBootIfClass, ARM_LINUX_BOOT_IF,
14 TYPE_ARM_LINUX_BOOT_IF)
15 #define ARM_LINUX_BOOT_IF(obj) \
16 INTERFACE_CHECK(ARMLinuxBootIf, (obj), TYPE_ARM_LINUX_BOOT_IF)
18 typedef struct ARMLinuxBootIf ARMLinuxBootIf;
20 struct ARMLinuxBootIfClass {
21 /*< private >*/
22 InterfaceClass parent_class;
24 /*< public >*/
25 /** arm_linux_init: configure the device for a direct boot
26 * of an ARM Linux kernel (so that device reset puts it into
27 * the state the kernel expects after firmware initialization,
28 * rather than the true hardware reset state). This callback is
29 * called once after machine construction is complete (before the
30 * first system reset).
32 * @obj: the object implementing this interface
33 * @secure_boot: true if we are booting Secure, false for NonSecure
34 * (or for a CPU which doesn't support TrustZone)
36 void (*arm_linux_init)(ARMLinuxBootIf *obj, bool secure_boot);
39 #endif