mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-26 10:05:57 +00:00
Update reserved function names starting with one underscore, replacing them as follows: '_k_' with 'z_' '_K_' with 'Z_' '_handler_' with 'z_handl_' '_Cstart' with 'z_cstart' '_Swap' with 'z_swap' This renaming is done on both global and those static function names in kernel/include and include/. Other static function names in kernel/ are renamed by removing the leading underscore. Other function names not starting with any prefix listed above are renamed starting with a 'z_' or 'Z_' prefix. Function names starting with two or three leading underscores are not automatcally renamed since these names will collide with the variants with two or three leading underscores. Various generator scripts have also been updated as well as perf, linker and usb files. These are drivers/serial/uart_handlers.c include/linker/kobject-text.ld kernel/include/syscall_handler.h scripts/gen_kobject_list.py scripts/gen_syscall_header.py Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
64 lines
2.0 KiB
C
64 lines
2.0 KiB
C
/* loapic.h - public LOAPIC APIs */
|
|
|
|
/*
|
|
* Copyright (c) 2015 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_INCLUDE_DRIVERS_LOAPIC_H_
|
|
#define ZEPHYR_INCLUDE_DRIVERS_LOAPIC_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Local APIC Register Offset */
|
|
|
|
#define LOAPIC_ID 0x020 /* Local APIC ID Reg */
|
|
#define LOAPIC_VER 0x030 /* Local APIC Version Reg */
|
|
#define LOAPIC_TPR 0x080 /* Task Priority Reg */
|
|
#define LOAPIC_APR 0x090 /* Arbitration Priority Reg */
|
|
#define LOAPIC_PPR 0x0a0 /* Processor Priority Reg */
|
|
#define LOAPIC_EOI 0x0b0 /* EOI Reg */
|
|
#define LOAPIC_LDR 0x0d0 /* Logical Destination Reg */
|
|
#define LOAPIC_DFR 0x0e0 /* Destination Format Reg */
|
|
#define LOAPIC_SVR 0x0f0 /* Spurious Interrupt Reg */
|
|
#define LOAPIC_ISR 0x100 /* In-service Reg */
|
|
#define LOAPIC_TMR 0x180 /* Trigger Mode Reg */
|
|
#define LOAPIC_IRR 0x200 /* Interrupt Request Reg */
|
|
#define LOAPIC_ESR 0x280 /* Error Status Reg */
|
|
#define LOAPIC_ICRLO 0x300 /* Interrupt Command Reg */
|
|
#define LOAPIC_ICRHI 0x310 /* Interrupt Command Reg */
|
|
#define LOAPIC_TIMER 0x320 /* LVT (Timer) */
|
|
#define LOAPIC_THERMAL 0x330 /* LVT (Thermal) */
|
|
#define LOAPIC_PMC 0x340 /* LVT (PMC) */
|
|
#define LOAPIC_LINT0 0x350 /* LVT (LINT0) */
|
|
#define LOAPIC_LINT1 0x360 /* LVT (LINT1) */
|
|
#define LOAPIC_ERROR 0x370 /* LVT (ERROR) */
|
|
#define LOAPIC_TIMER 0x320 /* LVT (Timer) */
|
|
#define LOAPIC_TIMER_ICR 0x380 /* Timer Initial Count Reg */
|
|
#define LOAPIC_TIMER_CCR 0x390 /* Timer Current Count Reg */
|
|
#define LOAPIC_TIMER_CONFIG 0x3e0 /* Timer Divide Config Reg */
|
|
|
|
/* Local APIC Vector Table Bits */
|
|
#define LOAPIC_LVT_MASKED 0x00010000 /* mask */
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
extern void z_loapic_int_vec_set(unsigned int irq, unsigned int vector);
|
|
extern void z_loapic_irq_enable(unsigned int irq);
|
|
extern void z_loapic_irq_disable(unsigned int irq);
|
|
|
|
#if CONFIG_EOI_FORWARDING_BUG
|
|
extern void z_lakemont_eoi(void);
|
|
#endif
|
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZEPHYR_INCLUDE_DRIVERS_LOAPIC_H_ */
|