/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | pic8259.c | 24 int install_irq_handler ( irq_t irq, segoff_t *handler, in install_irq_handler() argument 27 segoff_t *irq_vector = IRQ_VECTOR ( irq ); in install_irq_handler() 28 *previously_enabled = irq_enabled ( irq ); in install_irq_handler() 30 if ( irq > IRQ_MAX ) { in install_irq_handler() 37 if ( *previously_enabled ) disable_irq ( irq ); in install_irq_handler() 39 handler->segment, handler->offset, irq, in install_irq_handler() 45 if ( *previously_enabled ) enable_irq ( irq ); in install_irq_handler() 55 int remove_irq_handler ( irq_t irq, segoff_t *handler, in remove_irq_handler() argument 58 segoff_t *irq_vector = IRQ_VECTOR ( irq ); in remove_irq_handler() 60 if ( irq > IRQ_MAX ) { in remove_irq_handler() [all …]
|
H A D | pic8259.h | 82 int install_irq_handler ( irq_t irq, segoff_t *handler, 85 int remove_irq_handler ( irq_t irq, segoff_t *handler, 88 int install_undi_irq_handler ( irq_t irq, segoff_t ); 89 int remove_undi_irq_handler ( irq_t irq ); 90 int undi_irq_triggered ( irq_t irq ); 91 void send_specific_eoi ( irq_t irq );
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | evtchn.c | 177 #define IRQ_IS_CPUPOKE(irq) (ipi_info[XC_CPUPOKE_PIL].mi_irq == (irq)) argument 366 alloc_irq_evtchn(int irq, int index, int evtchn, int cpu) in alloc_irq_evtchn() argument 368 irq_info_t *irqp = &irq_info[irq]; in alloc_irq_evtchn() 384 evtchn_to_irq[evtchn] = irq; in alloc_irq_evtchn() 400 int irq; in alloc_irq() local 406 for (irq = 0; irq < NR_IRQS; irq++) { in alloc_irq() 407 if (irq_info[irq].ii_type == IRQT_UNBOUND) in alloc_irq() 411 if (irq == NR_IRQS) in alloc_irq() 414 irqp = &irq_info[irq]; in alloc_irq() 422 alloc_irq_evtchn(irq, index, evtchn, cpu); in alloc_irq() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | pci_irq.c | 60 #define IRQ_PERMITTED(irq) (((1U << (irq)) & PERMITTED_IRQS) != 0) argument 118 pci_irq_reserve(int irq) in pci_irq_reserve() argument 121 assert(irq >= 0 && irq < NIRQ_COUNTS); in pci_irq_reserve() 123 assert(irq_counts[irq] == 0 || irq_counts[irq] == IRQ_DISABLED); in pci_irq_reserve() 124 irq_counts[irq] = IRQ_DISABLED; in pci_irq_reserve() 128 pci_irq_use(int irq) in pci_irq_use() argument 131 assert(irq >= 0 && irq < NIRQ_COUNTS); in pci_irq_use() 133 assert(irq_counts[irq] != IRQ_DISABLED); in pci_irq_use() 134 irq_counts[irq]++; in pci_irq_use() 206 int best_count, best_irq, best_pin, irq, pin; in pirq_alloc_pin() local [all …]
|
H A D | pctestdev.c | 93 struct inout_port debugexit, ioport, irq; in pctestdev_init() local 138 irq.name = IRQ_NAME; in pctestdev_init() 139 irq.port = IRQ_BASE; in pctestdev_init() 140 irq.size = pincount; in pctestdev_init() 141 irq.flags = IOPORT_F_INOUT; in pctestdev_init() 142 irq.handler = pctestdev_irq_io; in pctestdev_init() 143 irq.arg = NULL; in pctestdev_init() 153 err = register_inout(&irq); in pctestdev_init() 166 (void)unregister_inout(&irq); in pctestdev_init() 238 int irq; in pctestdev_irq_io() local [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/ |
H A D | apic.c | 277 apic_xlate_vector_by_irq(uchar_t irq) in apic_xlate_vector_by_irq() argument 279 if (apic_irq_table[irq] == NULL) in apic_xlate_vector_by_irq() 282 return (apic_irq_table[irq]->airq_vector); in apic_xlate_vector_by_irq() 387 int irq = apic_get_ipivect(ipl, -1); in apic_init_intr() local 389 ASSERT(irq != -1); in apic_init_intr() 391 apic_irq_table[irq]->airq_vector; in apic_init_intr() 395 "apic pcint", irq, NULL, NULL, NULL, NULL); in apic_init_intr() 423 int irq = apic_get_ipivect(ipl, -1); in apic_init_intr() local 425 ASSERT(irq != -1); in apic_init_intr() 426 apic_errvect = apic_irq_table[irq]->airq_vector; in apic_init_intr() [all …]
|
H A D | apic_regops.c | 85 void apic_send_directed_EOI(uint32_t irq); 124 apic_send_EOI(uint32_t irq) in apic_send_EOI() argument 134 apic_send_directed_EOI(uint32_t irq) in apic_send_directed_EOI() argument 150 apic_irq = apic_irq_table[irq]; in apic_send_directed_EOI()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_locking.c | 46 irq, enumerator 60 [irq] = "irq", in get_lock_name() 190 {"_raw_read_lock_irqsave", LOCK, irq, RETURN_VAL, ret_any}, 192 {"_raw_read_unlock_irqrestore", RESTORE, irq, 1, ret_any}, 199 {"_raw_write_lock_irqsave", LOCK, irq, RETURN_VAL, ret_any}, 201 {"_raw_write_unlock_irqrestore", RESTORE, irq, 1, ret_any}, 203 {"__raw_write_unlock_irqrestore", RESTORE, irq, 1, ret_any}, 284 {"raw_local_irq_disable", LOCK, irq, NO_ARG, ret_any}, 285 {"raw_local_irq_enable", UNLOCK, irq, NO_ARG, ret_any}, 286 {"spin_lock_irq", LOCK, irq, NO_ARG, ret_any}, [all …]
|
/illumos-gate/usr/src/cmd/mdb/i86xpv/modules/xpv_psm/ |
H A D | xpv_psm.c | 128 virq_type(int irq) in virq_type() argument 133 if (virq_tbl[i].mi_irq == irq) in virq_type() 158 irq_type(int irq, int extended) in irq_type() argument 160 switch (irq_tbl[irq].ii_type) { in irq_type() 167 return (virq_type(irq)); in irq_type() 185 irq_ipl(int irq) in irq_ipl() argument 189 if (irq_tbl[irq].ii_u2.ipl != 0) in irq_ipl() 190 return (irq_tbl[irq].ii_u2.ipl); in irq_ipl() 193 if (ipi_tbl[i].mi_irq == irq) { in irq_ipl() 271 print_bus(int irq) in print_bus() argument [all …]
|
/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | psm_common.h | 59 typedef void (*intr_exit_fn_t)(int prev_ipl, int irq); 77 uchar_t irq; member 97 #define ELCR_LEVEL(elcrval, irq) (elcrval & (0x1 << irq)) argument 98 #define ELCR_EDGE(elcrval, irq) ((elcrval & (0x1 << irq)) == 0) argument 117 extern int acpi_set_irq_resource(acpi_psm_lnk_t *acpipsmlnkp, int irq); 122 extern int acpi_irqlist_find_irq(acpi_irqlist_t *irqlistp, int irq,
|
H A D | apic.h | 498 #define IRQINDEX(irq) ((irq) & 0xFF) /* Mask to get irq from virtual irq */ argument 771 extern void apic_intr_exit(int ipl, int irq); 772 extern void x2apic_intr_exit(int ipl, int irq); 782 extern uchar_t apic_allocate_vector(int ipl, int irq, int pri); 784 extern int apic_allocate_irq(int irq); 785 extern uint32_t apic_bind_intr(dev_info_t *dip, int irq, uchar_t ioapicid, 808 extern int apic_setup_io_intr(void *p, int irq, boolean_t deferred); 813 extern uchar_t apic_modify_vector(uchar_t vector, int irq);
|
/illumos-gate/usr/src/uts/i86xpv/io/psm/ |
H A D | xpv_uppc.c | 466 int32_t irq; in xen_uppc_acpi_irq_configure() local 511 irq = irqlistp->irqs[i]; in xen_uppc_acpi_irq_configure() 513 if ((irq > MAX_ISA_IRQ) || in xen_uppc_acpi_irq_configure() 515 (irq == 0)) in xen_uppc_acpi_irq_configure() 518 if (xen_uppc_reserved_irqlist[irq]) in xen_uppc_acpi_irq_configure() 521 if (xen_uppc_irq_shared_table[irq] == 0) { in xen_uppc_acpi_irq_configure() 522 chosen_irq = irq; in xen_uppc_acpi_irq_configure() 525 (irq == cur_irq)) { in xen_uppc_acpi_irq_configure() 531 if ((xen_uppc_irq_shared_table[irq] < min_share) || in xen_uppc_acpi_irq_configure() 532 ((xen_uppc_irq_shared_table[irq] == min_share) && in xen_uppc_acpi_irq_configure() [all …]
|
H A D | xpv_psm.c | 130 xen_psm_bind_intr(int irq) in xen_psm_bind_intr() argument 138 if (irq <= APIC_MAX_VECTOR) in xen_psm_bind_intr() 139 irqptr = apic_irq_table[irq]; in xen_psm_bind_intr() 354 xen_psm_acquire_irq(int irq) in xen_psm_acquire_irq() argument 366 cpuid = ec_block_irq(irq); in xen_psm_acquire_irq() 782 xen_psm_rebind_irq(int irq) in xen_psm_rebind_irq() argument 788 newcpu = xen_psm_bind_intr(irq); in xen_psm_rebind_irq() 795 ec_set_irq_affinity(irq, ncpu); in xen_psm_rebind_irq() 796 if (irq <= APIC_MAX_VECTOR) { in xen_psm_rebind_irq() 797 irqptr = apic_irq_table[irq]; in xen_psm_rebind_irq() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/psm/ |
H A D | uppc.c | 709 int32_t irq; in uppc_acpi_irq_configure() local 753 irq = irqlistp->irqs[i]; in uppc_acpi_irq_configure() 755 if ((irq > MAX_ISA_IRQ) || in uppc_acpi_irq_configure() 757 (irq == 0)) in uppc_acpi_irq_configure() 760 if (uppc_reserved_irqlist[irq]) in uppc_acpi_irq_configure() 763 if (uppc_irq_shared_table[irq] == 0) { in uppc_acpi_irq_configure() 764 chosen_irq = irq; in uppc_acpi_irq_configure() 766 if (!(uppc_prefer_crs) || (irq == cur_irq)) { in uppc_acpi_irq_configure() 772 if ((uppc_irq_shared_table[irq] < min_share) || in uppc_acpi_irq_configure() 773 ((uppc_irq_shared_table[irq] == min_share) && in uppc_acpi_irq_configure() [all …]
|
H A D | psm_common.c | 454 acpi_set_irq_resource(acpi_psm_lnk_t *acpipsmlnkp, int irq) in acpi_set_irq_resource() argument 516 srsp->Data.Irq.Interrupts[0] = (uint8_t)irq; in acpi_set_irq_resource() 520 srsp->Data.ExtendedIrq.Interrupts[0] = irq; in acpi_set_irq_resource() 592 int irq; in acpi_get_current_irq_resource() local 614 irq = -1; in acpi_get_current_irq_resource() 618 if (irq > 0) { in acpi_get_current_irq_resource() 636 irq = rp->Data.Irq.Interrupts[0]; in acpi_get_current_irq_resource() 639 if (irq > 0) { in acpi_get_current_irq_resource() 657 irq = rp->Data.ExtendedIrq.Interrupts[0]; in acpi_get_current_irq_resource() 664 *pci_irqp = irq; in acpi_get_current_irq_resource() [all …]
|
/illumos-gate/usr/src/cmd/mdb/i86xpv/modules/xpv_uppc/ |
H A D | xpv_uppc.c | 119 virq_type(int irq) in virq_type() argument 124 if (virq_tbl[i].mi_irq == irq) in virq_type() 147 irq_type(int irq, int extended) in irq_type() argument 149 switch (irq_tbl[irq].ii_type) { in irq_type() 156 return (virq_type(irq)); in irq_type() 362 int irq = evtchn_tbl[i]; in evtchn_dump() local 364 if (irq == INVALID_IRQ) { in evtchn_dump() 374 mdb_printf("%-14s", irq_type(irq, 1)); in evtchn_dump() 378 mdb_printf("%-4d", irq); in evtchn_dump() 380 mdb_printf("%6d/%-2d ", irq_tbl[irq].ii_u2.ipl, in evtchn_dump() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/io/ |
H A D | vatpic.c | 443 vatpic_set_irqstate(struct vm *vm, int irq, enum irqstate irqstate) in vatpic_set_irqstate() argument 449 if (irq < 0 || irq > 15) in vatpic_set_irqstate() 453 atpic = &vatpic->atpic[irq >> 3]; in vatpic_set_irqstate() 461 err = vatpic_set_pinstate(vatpic, irq, true); in vatpic_set_irqstate() 464 err = vatpic_set_pinstate(vatpic, irq, false); in vatpic_set_irqstate() 467 err = vatpic_set_pinstate(vatpic, irq, true); in vatpic_set_irqstate() 469 err = vatpic_set_pinstate(vatpic, irq, false); in vatpic_set_irqstate() 481 vatpic_assert_irq(struct vm *vm, int irq) in vatpic_assert_irq() argument 483 return (vatpic_set_irqstate(vm, irq, IRQSTATE_ASSERT)); in vatpic_assert_irq() 487 vatpic_deassert_irq(struct vm *vm, int irq) in vatpic_deassert_irq() argument [all …]
|
H A D | vioapic.c | 186 vioapic_set_irqstate(struct vm *vm, int irq, enum irqstate irqstate) in vioapic_set_irqstate() argument 191 if (irq < 0 || irq >= REDIR_ENTRIES) in vioapic_set_irqstate() 199 err = vioapic_set_pinstate(vioapic, irq, true); in vioapic_set_irqstate() 202 err = vioapic_set_pinstate(vioapic, irq, false); in vioapic_set_irqstate() 205 err = vioapic_set_pinstate(vioapic, irq, true); in vioapic_set_irqstate() 207 err = vioapic_set_pinstate(vioapic, irq, false); in vioapic_set_irqstate() 219 vioapic_assert_irq(struct vm *vm, int irq) in vioapic_assert_irq() argument 222 return (vioapic_set_irqstate(vm, irq, IRQSTATE_ASSERT)); in vioapic_assert_irq() 226 vioapic_deassert_irq(struct vm *vm, int irq) in vioapic_deassert_irq() argument 229 return (vioapic_set_irqstate(vm, irq, IRQSTATE_DEASSERT)); in vioapic_deassert_irq() [all …]
|
H A D | vatpic.h | 47 int vatpic_assert_irq(struct vm *vm, int irq); 48 int vatpic_deassert_irq(struct vm *vm, int irq); 49 int vatpic_pulse_irq(struct vm *vm, int irq); 50 int vatpic_set_irq_trigger(struct vm *vm, int irq,
|
H A D | vioapic.h | 51 int vioapic_assert_irq(struct vm *vm, int irq); 52 int vioapic_deassert_irq(struct vm *vm, int irq); 53 int vioapic_pulse_irq(struct vm *vm, int irq);
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | mp_platform_common.c | 102 void apic_record_rdt_entry(apic_irq_t *irqptr, int irq); 128 uchar_t acpi_find_ioapic(int irq); 268 int32_t irq; member 1469 acpi_find_ioapic(int irq) in acpi_find_ioapic() argument 1474 if (irq >= apic_io_vectbase[i] && irq <= apic_io_vectend[i]) in acpi_find_ioapic() 1663 apic_allocate_irq(int irq) in apic_allocate_irq() argument 1667 if ((freeirq = apic_find_free_irq(irq, (APIC_RESV_IRQ - 1))) == -1) { in apic_allocate_irq() 1669 (irq - 1))) == -1) { in apic_allocate_irq() 1730 apic_record_rdt_entry(apic_irq_t *irqptr, int irq) in apic_record_rdt_entry() argument 1739 "irq = 0x%x dip = 0x%p vector = 0x%x\n", intr_index, irq, in apic_record_rdt_entry() [all …]
|
/illumos-gate/usr/src/uts/i86xpv/sys/ |
H A D | evtchn_impl.h | 109 #define IRQ_TO_PIRQ(irq) ((irq) - PIRQ_BASE) argument 112 #define IRQ_TO_DYNIRQ(irq) ((irq) - DYNIRQ_BASE) argument 162 extern void ec_unbind_irq(int irq);
|
/illumos-gate/usr/src/cmd/bhyve/amd64/ |
H A D | atkbdc.c | 108 int irq; member 117 int irq; member 143 vm_isa_pulse_irq(sc->ctx, sc->kbd.irq, sc->kbd.irq); in atkbdc_assert_kbd_intr() 152 vm_isa_pulse_irq(sc->ctx, sc->aux.irq, sc->aux.irq); in atkbdc_assert_aux_intr() 542 sc->kbd.irq = KBD_DEV_IRQ; in atkbdc_init() 545 sc->aux.irq = AUX_DEV_IRQ; in atkbdc_init()
|
H A D | pci_lpc.c | 78 int irq; member 200 assert(sc->irq >= 0); in lpc_uart_intr_assert() 202 vm_isa_pulse_irq(lpc_bridge->pi_vmctx, sc->irq, sc->irq); in lpc_uart_intr_assert() 283 if (uart_legacy_alloc(unit, &sc->iobase, &sc->irq) != 0) { in lpc_init() 288 pci_irq_reserve(sc->irq); in lpc_init() 440 dsdt_fixed_irq(sc->irq); in pci_lpc_uart_dsdt()
|
/illumos-gate/usr/src/uts/intel/io/acpica/ |
H A D | acpi_enum.c | 87 add_interrupt(intrs_t *intrs, int irq) in add_interrupt() argument 91 if (intrs->i_intrs[i] == irq) in add_interrupt() 121 intrs->i_intrs[intrs->i_num++] = irq; in add_interrupt() 182 uint8_t irq = resource_ptr->Data.Irq.Interrupts[i]; in parse_resources_irq() local 184 add_interrupt(intrs, irq); in parse_resources_irq() 185 add_interrupt(&used_interrupts, irq); in parse_resources_irq() 189 __func__, i, irq); in parse_resources_irq() 200 uint32_t irq = resource_ptr->Data.ExtendedIrq.Interrupts[i]; in parse_resources_extended_irq() local 208 if (irq > INT32_MAX) { in parse_resources_extended_irq() 212 __func__, irq); in parse_resources_extended_irq() [all …]
|