Lines Matching +full:library +full:- +full:sel
2 * IOAPIC emulation logic - common bits of emulated and KVM kernel model
4 * Copyright (c) 2004-2005 Fabrice Bellard
8 * This library is free software; you can redistribute it and/or
13 * This library is distributed in the hope that it will be useful,
19 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
41 if (level != s->irq_level[irq]) { in ioapic_stat_update_irq()
42 s->irq_level[irq] = level; in ioapic_stat_update_irq()
44 s->irq_count[irq]++; in ioapic_stat_update_irq()
55 *irq_counts = s->irq_count; in ioapic_get_statistics()
65 g_string_append_printf(buf, "%-10s ", name); in ioapic_irr_dump()
72 g_string_append_printf(buf, "%-2u ", i); in ioapic_irr_dump()
85 g_string_append_printf(buf, "ioapic0: ver=0x%x id=0x%02x sel=0x%02x", in ioapic_print_redtbl()
86 s->version, s->id, s->ioregsel); in ioapic_print_redtbl()
87 if (s->ioregsel) { in ioapic_print_redtbl()
89 (s->ioregsel - IOAPIC_REG_REDTBL_BASE) >> 1); in ioapic_print_redtbl()
94 uint64_t entry = s->ioredtbl[i]; in ioapic_print_redtbl()
97 g_string_append_printf(buf, " pin %-2u 0x%016"PRIx64" dest=%"PRIx64 in ioapic_print_redtbl()
98 " vec=%-3"PRIu64" %s %-5s %-6s %-6s %s\n", in ioapic_print_redtbl()
104 ? "active-lo" : "active-hi", in ioapic_print_redtbl()
115 ioapic_irr_dump(buf, " IRR", s->irr); in ioapic_print_redtbl()
124 s->id = 0; in ioapic_reset_common()
125 s->ioregsel = 0; in ioapic_reset_common()
126 s->irr = 0; in ioapic_reset_common()
128 s->ioredtbl[i] = 1 << IOAPIC_LVT_MASKED_SHIFT; in ioapic_reset_common()
137 if (info->pre_save) { in ioapic_dispatch_pre_save()
138 info->pre_save(s); in ioapic_dispatch_pre_save()
149 if (info->post_load) { in ioapic_dispatch_post_load()
150 info->post_load(s); in ioapic_dispatch_post_load()
167 info->realize(dev, errp); in ioapic_common_realize()
172 sysbus_init_mmio(SYS_BUS_DEVICE(s), &s->io_memory); in ioapic_common_realize()
193 VMSTATE_UNUSED_V(2, 8), /* to account for qemu-kvm's v2 format */
205 dc->realize = ioapic_common_realize; in ioapic_common_class_init()
206 dc->vmsd = &vmstate_ioapic_common; in ioapic_common_class_init()
207 ic->print_info = ioapic_print_info; in ioapic_common_class_init()
208 ic->get_statistics = ioapic_get_statistics; in ioapic_common_class_init()