From f682f032e51a3730779918251c43e1f0587d5df6 Mon Sep 17 00:00:00 2001 From: sigsegv7 Date: Thu, 14 Sep 2023 03:42:24 -0400 Subject: kernel/amd64: Improve docs Signed-off-by: sigsegv7 --- sys/arch/amd64/ioapic.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sys/arch') diff --git a/sys/arch/amd64/ioapic.c b/sys/arch/amd64/ioapic.c index cc232cf..6c283ac 100644 --- a/sys/arch/amd64/ioapic.c +++ b/sys/arch/amd64/ioapic.c @@ -103,6 +103,8 @@ ioapic_write_redentry(const union ioapic_redentry *entry, uint8_t index) /* * Mask I/O APIC pin with "raw" pin number * (Global System Interrupt) + * + * @gsi: Global System Interrupt number */ void ioapic_gsi_mask(uint8_t gsi) @@ -117,6 +119,8 @@ ioapic_gsi_mask(uint8_t gsi) /* * Unmask I/O APIC pin with "raw" pin number * (Global System Interrupt) + * + * @gsi: Global System Interrupt number */ void ioapic_gsi_unmask(uint8_t gsi) @@ -128,6 +132,11 @@ ioapic_gsi_unmask(uint8_t gsi) ioapic_write_redentry(&redentry, gsi); } +/* + * Masks I/O APIC pin via IRQ number + * + * @irq: Interrupt Request number + */ void ioapic_irq_mask(uint8_t irq) { @@ -137,6 +146,11 @@ ioapic_irq_mask(uint8_t irq) ioapic_gsi_mask(gsi); } +/* + * Unmasks I/O APIC pin via IRQ number + * + * @irq: Interrupt Request number + */ void ioapic_irq_unmask(uint8_t irq) { -- cgit v1.2.3