linux-aio: Allow reads beyond the end of growable images
[qemu.git] / hw / apic.h
bloba5c910fe0acff88409b4f74ea54a36792431c519
1 #ifndef APIC_H
2 #define APIC_H
4 #include "qemu-common.h"
6 /* apic.c */
7 void apic_deliver_irq(uint8_t dest, uint8_t dest_mode, uint8_t delivery_mode,
8 uint8_t vector_num, uint8_t trigger_mode);
9 int apic_accept_pic_intr(DeviceState *s);
10 void apic_deliver_pic_intr(DeviceState *s, int level);
11 int apic_get_interrupt(DeviceState *s);
12 void apic_reset_irq_delivered(void);
13 int apic_get_irq_delivered(void);
14 void cpu_set_apic_base(DeviceState *s, uint64_t val);
15 uint64_t cpu_get_apic_base(DeviceState *s);
16 void cpu_set_apic_tpr(DeviceState *s, uint8_t val);
17 uint8_t cpu_get_apic_tpr(DeviceState *s);
18 void apic_init_reset(DeviceState *s);
19 void apic_sipi(DeviceState *s);
21 /* pc.c */
22 int cpu_is_bsp(CPUState *env);
23 DeviceState *cpu_get_current_apic(void);
25 #endif