qemu/hw/intc
Anthony Liguori c04d6cfa3f xics: rename types to be sane and follow coding style
Basically, in HW the layout of the interrupt network is:

     - One ICP per processor thread (the "presenter"). This contains the
    registers to fetch a pending interrupt (ack), EOI, and control the
    processor priority.

     - One ICS per logical source of interrupts (ie, one per PCI host
    bridge, and a few others here or there). This contains the per-interrupt
    source configuration (target processor(s), priority, mask) and the
    per-interrupt internal state.

    Under PAPR, there is a single "virtual" ICS ... somewhat (it's a bit
    oddball what pHyp does here, arguably there are two but we can ignore
    that distinction). There is no register level access. A pair of firmware
    (RTAS) calls is used to configure each virtual interrupt.

    So our model here is somewhat the same. We have one ICS in the emulated
    XICS which arguably *is* the emulated XICS, there's no point making it a
    separate "device", that would just be gross, and each VCPU has an
    associated ICP.

Yet we call the "XICS" struct icp_state and then the ICPs
'struct icp_server_state'.  It's particularly confusing when all of the
functions have xics_prefixes yet take *icp arguments.

Rename:

  struct icp_state -> XICSState
  struct icp_server_state -> ICPState
  struct ics_state -> ICSState
  struct ics_irq_state -> ICSIRQState

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-id: 1374175984-8930-12-git-send-email-aliguori@us.ibm.com
[aik: added ics_resend() on post_load]
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-07-29 10:37:09 -05:00
..
apic_common.c
apic.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
arm_gic_common.c
arm_gic_kvm.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
arm_gic.c intc/arm_gic: Build arm_gic only once 2013-07-09 21:33:02 +02:00
armv7m_nvic.c cpu: Replace cpu_single_env with CPUState current_cpu 2013-07-09 21:20:28 +02:00
etraxfs_pic.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
exynos4210_combiner.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
exynos4210_gic.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
gic_internal.h
grlib_irqmp.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
heathrow_pic.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
i8259_common.c
i8259.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
imx_avic.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
ioapic_common.c ioapic: Use QOM realize for ioapic 2013-07-23 00:37:35 +02:00
ioapic.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
lm32_pic.c
Makefile.objs pseries: move interrupt controllers to hw/intc/ 2013-07-11 18:51:23 +02:00
omap_intc.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
openpic_kvm.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
openpic.c intc/openpic: Build openpic only once 2013-07-09 21:33:02 +02:00
pl190.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
puv3_intc.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
realview_gic.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
sh_intc.c cpu: Make first_cpu and next_cpu CPUState 2013-07-09 21:32:54 +02:00
slavio_intctl.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00
xics.c xics: rename types to be sane and follow coding style 2013-07-29 10:37:09 -05:00
xilinx_intc.c hw/i*: pass owner to memory_region_init* functions 2013-07-04 17:42:48 +02:00