mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-14 02:01:56 +00:00
Replace the existing Apache 2.0 boilerplate header with an SPDX tag throughout the zephyr code tree. This patch was generated via a script run over the master branch. Also updated doc/porting/application.rst that had a dependency on line numbers in a literal include. Manually updated subsys/logging/sys_log.c that had a malformed header in the original file. Also cleanup several cases that already had a SPDX tag and we either got a duplicate or missed updating. Jira: ZEP-1457 Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef __INC_SYS_APIC_H
|
|
#define __INC_SYS_APIC_H
|
|
|
|
#include <drivers/ioapic.h>
|
|
#include <drivers/loapic.h>
|
|
|
|
#define _IRQ_TRIGGER_EDGE IOAPIC_EDGE
|
|
#define _IRQ_TRIGGER_LEVEL IOAPIC_LEVEL
|
|
|
|
#define _IRQ_POLARITY_HIGH IOAPIC_HIGH
|
|
#define _IRQ_POLARITY_LOW IOAPIC_LOW
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
#define LOAPIC_IRQ_BASE CONFIG_IOAPIC_NUM_RTES
|
|
#define LOAPIC_IRQ_COUNT 6 /* Default to LOAPIC_TIMER to LOAPIC_ERROR */
|
|
|
|
/* irq_controller.h interface */
|
|
void __irq_controller_irq_config(unsigned int vector, unsigned int irq,
|
|
uint32_t flags);
|
|
|
|
int __irq_controller_isr_vector_get(void);
|
|
|
|
#else /* _ASMLANGUAGE */
|
|
|
|
#if CONFIG_EOI_FORWARDING_BUG
|
|
.macro __irq_controller_eoi
|
|
call _lakemont_eoi
|
|
.endm
|
|
#else
|
|
.macro __irq_controller_eoi
|
|
xorl %eax, %eax /* zeroes eax */
|
|
loapic_eoi_reg = (CONFIG_LOAPIC_BASE_ADDRESS + LOAPIC_EOI)
|
|
movl %eax, loapic_eoi_reg /* tell LOAPIC the IRQ is handled */
|
|
.endm
|
|
#endif /* CONFIG_EOI_FORMWARDING_BUG */
|
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
#endif /* __INC_SYS_APIC_H */
|