qemu/include/hw/i386/apic.h
<<
>>
Prefs
   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_poll_irq(DeviceState *d);
  22void apic_designate_bsp(DeviceState *d, bool bsp);
  23int apic_get_highest_priority_irr(DeviceState *dev);
  24
  25/* pc.c */
  26DeviceState *cpu_get_current_apic(void);
  27
  28#endif
  29