Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\acpi\boot.c Create Date:2022-07-28 08:16:18
Last Modify:2020-03-16 21:18:54 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:acpi_pic_sci_set_trigger()* use ELCR to set PIC-mode trigger type for SCI* If a PIC-mode SCI is not recognized or gives spurious IRQ7's* it may require Edge Trigger -- use "acpi_sci=edge"* Port 0x4d0-4d1 are ECLR1 and ECLR2, the Edge/Level Control

Proto:void __init acpi_pic_sci_set_trigger(unsigned int irq, u16 trigger)

Type:void

Parameter:

TypeParameterName
unsigned intirq
u16trigger
573  mask = 1 << irq
577  old = inb(0x4d0) | inb(0x4d1) << 8
584  new = If skip ACPI IRQ initialization Then old Else 0
591  Case trigger == 1
592  new &= ~mask
593  Break
594  Case trigger == 3
595  new |= mask
596  Break
599  If old == new Then Return
602  printk(PREFIX"setting ELCR to %04x (from %04x)\n", new, old)
603  Basic port I/O
604  Basic port I/O