SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions
sys-clic.h File Reference
#include <io.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
#include <common.h>
#include <log.h>
#include <reg-clic.h>
#include <reg-ncat.h>
Include dependency graph for sys-clic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  irq_controller
 

Macros

#define CLIC_IRQ_NUM   (186)
 

Typedefs

typedef enum irq_trigger_type irq_trigger_type_t
 
typedef struct irq_controller irq_controller_t
 

Enumerations

enum  irq_trigger_type { IRQ_TRIGGER_TYPE_LEVEL , IRQ_TRIGGER_TYPE_EDGE_RISING , IRQ_TRIGGER_TYPE_EDGE_FALLING , IRQ_TRIGGER_TYPE_EDGE_BOTH }
 

Functions

void do_irq (uint64_t cause)
 Handles the IRQ.
 
int arch_interrupt_init (void)
 Initializes the interrupt mechanism.
 
int arch_interrupt_exit (void)
 Exits the interrupt mechanism.
 

Macro Definition Documentation

◆ CLIC_IRQ_NUM

#define CLIC_IRQ_NUM   (186)

Typedef Documentation

◆ irq_controller_t

◆ irq_trigger_type_t

Enumeration Type Documentation

◆ irq_trigger_type

Enumerator
IRQ_TRIGGER_TYPE_LEVEL 
IRQ_TRIGGER_TYPE_EDGE_RISING 
IRQ_TRIGGER_TYPE_EDGE_FALLING 
IRQ_TRIGGER_TYPE_EDGE_BOTH 

Function Documentation

◆ arch_interrupt_exit()

int arch_interrupt_exit ( void  )

Exits the interrupt mechanism.

Returns
0 on success, or an error code

◆ arch_interrupt_init()

int arch_interrupt_init ( void  )

Initializes the interrupt mechanism.

Returns
0 on success, or an error code

◆ do_irq()

void do_irq ( uint64_t  cause)

Handles the IRQ.