1#ifndef APIC_H 2#define APIC_H 3 4#include "qemu-common.h" 5 6/* apic.c */ 7void apic_deliver_irq(uint8_t dest, uint8_t dest_mode, uint8_t delivery_mode, 8 uint8_t vector_num, uint8_t trigger_mode); 9int apic_accept_pic_intr(DeviceState *s); 10void apic_deliver_pic_intr(DeviceState *s, int level); 11void apic_deliver_nmi(DeviceState *d); 12int apic_get_interrupt(DeviceState *s); 13void apic_reset_irq_delivered(void); 14int apic_get_irq_delivered(void); 15void cpu_set_apic_base(DeviceState *s, uint64_t val); 16uint64_t cpu_get_apic_base(DeviceState *s); 17void cpu_set_apic_tpr(DeviceState *s, uint8_t val); 18uint8_t cpu_get_apic_tpr(DeviceState *s); 19void apic_init_reset(DeviceState *s); 20void apic_sipi(DeviceState *s); 21void apic_handle_tpr_access_report(DeviceState *d, target_ulong ip, 22 TPRAccess access); 23void apic_poll_irq(DeviceState *d); 24void apic_designate_bsp(DeviceState *d); 25 26/* pc.c */ 27DeviceState *cpu_get_current_apic(void); 28 29/* cpu.c */ 30bool cpu_is_bsp(X86CPU *cpu); 31 32#endif 33