Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
irq.h File Reference

OpenRISC public interrupt handling. More...

#include <openrisc/openriscregs.h>

Go to the source code of this file.

Macros

#define SPR_SR_IRQ_MASK   (SPR_SR_IEE | SPR_SR_TEE)
#define OR1K_PIC_NUM_INTERRUPTS   32
#define CONFIG_NUM_IRQS   OR1K_PIC_NUM_INTERRUPTS
#define arch_irq_enable(irq)
#define arch_irq_disable(irq)
#define arch_irq_is_enabled(irq)

Functions

static ALWAYS_INLINE unsigned int arch_irq_lock (void)
static ALWAYS_INLINE void arch_irq_unlock (unsigned int key)
static ALWAYS_INLINE bool arch_irq_unlocked (unsigned int key)
static ALWAYS_INLINE void openrisc_irq_enable (unsigned int irq)
 Enable interrupt on OpenRISC core.
static ALWAYS_INLINE void openrisc_irq_disable (unsigned int irq)
 Disable interrupt on OpenRISC core.
static ALWAYS_INLINE int openrisc_irq_is_enabled (unsigned int irq)

Detailed Description

OpenRISC public interrupt handling.

Macro Definition Documentation

◆ arch_irq_disable

#define arch_irq_disable ( irq)
Value:
static ALWAYS_INLINE void openrisc_irq_disable(unsigned int irq)
Disable interrupt on OpenRISC core.
Definition irq.h:106

◆ arch_irq_enable

#define arch_irq_enable ( irq)
Value:
static ALWAYS_INLINE void openrisc_irq_enable(unsigned int irq)
Enable interrupt on OpenRISC core.
Definition irq.h:93

◆ arch_irq_is_enabled

#define arch_irq_is_enabled ( irq)
Value:
static ALWAYS_INLINE int openrisc_irq_is_enabled(unsigned int irq)
Definition irq.h:114

◆ CONFIG_NUM_IRQS

#define CONFIG_NUM_IRQS   OR1K_PIC_NUM_INTERRUPTS

◆ OR1K_PIC_NUM_INTERRUPTS

#define OR1K_PIC_NUM_INTERRUPTS   32

◆ SPR_SR_IRQ_MASK

#define SPR_SR_IRQ_MASK   (SPR_SR_IEE | SPR_SR_TEE)

Function Documentation

◆ arch_irq_lock()

ALWAYS_INLINE unsigned int arch_irq_lock ( void )
static

◆ arch_irq_unlock()

ALWAYS_INLINE void arch_irq_unlock ( unsigned int key)
static

◆ arch_irq_unlocked()

ALWAYS_INLINE bool arch_irq_unlocked ( unsigned int key)
static

◆ openrisc_irq_disable()

ALWAYS_INLINE void openrisc_irq_disable ( unsigned int irq)
static

Disable interrupt on OpenRISC core.

Parameters
irqInterrupt to be disabled.

◆ openrisc_irq_enable()

ALWAYS_INLINE void openrisc_irq_enable ( unsigned int irq)
static

Enable interrupt on OpenRISC core.

Parameters
irqInterrupt to be enabled.

◆ openrisc_irq_is_enabled()

ALWAYS_INLINE int openrisc_irq_is_enabled ( unsigned int irq)
static