mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
Use u32 instead of uint32_t to make the KVM selftests code more concise and more similar to the kernel (since selftests are primarily developed by kernel developers). This commit was generated with the following command: git ls-files tools/testing/selftests/kvm | xargs sed -i 's/uint32_t/u32/g' Then by manually adjusting whitespace to make checkpatch.pl happy. No functional change intended. Signed-off-by: David Matlack <dmatlack@google.com> Link: https://patch.msgid.link/20260420212004.3938325-7-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* ARM Generic Interrupt Controller (GIC) private defines that's only
|
|
* shared among the GIC library code.
|
|
*/
|
|
|
|
#ifndef SELFTEST_KVM_GIC_PRIVATE_H
|
|
#define SELFTEST_KVM_GIC_PRIVATE_H
|
|
|
|
struct gic_common_ops {
|
|
void (*gic_init)(unsigned int nr_cpus);
|
|
void (*gic_cpu_init)(unsigned int cpu);
|
|
void (*gic_irq_enable)(unsigned int intid);
|
|
void (*gic_irq_disable)(unsigned int intid);
|
|
u64 (*gic_read_iar)(void);
|
|
void (*gic_write_eoir)(u32 irq);
|
|
void (*gic_write_dir)(u32 irq);
|
|
void (*gic_set_eoi_split)(bool split);
|
|
void (*gic_set_priority_mask)(u64 mask);
|
|
void (*gic_set_priority)(u32 intid, u32 prio);
|
|
void (*gic_irq_set_active)(u32 intid);
|
|
void (*gic_irq_clear_active)(u32 intid);
|
|
bool (*gic_irq_get_active)(u32 intid);
|
|
void (*gic_irq_set_pending)(u32 intid);
|
|
void (*gic_irq_clear_pending)(u32 intid);
|
|
bool (*gic_irq_get_pending)(u32 intid);
|
|
void (*gic_irq_set_config)(u32 intid, bool is_edge);
|
|
void (*gic_irq_set_group)(u32 intid, bool group);
|
|
};
|
|
|
|
extern const struct gic_common_ops gicv3_ops;
|
|
|
|
#endif /* SELFTEST_KVM_GIC_PRIVATE_H */
|