Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
Loading...
Searching...
No Matches

Overview

Structs and Enums used by the driver.

Typedefs

typedef int(* irq_handler_t) (void)
 Standard Interrupt Handler Function Pointer.

Enumerations

enum  cpu_irq_t { IRQ_SOFTWARE = MIE_MSIE , IRQ_TIMER = MIE_MTIE , IRQ_EXTERNAL = MIE_MEIE }
 CPU Interrupt Type (Standard RISC-V MIE bits). More...

Variables

int(* interrupt_vector_table [64])(void)
 Global Interrupt Vector Table.

Typedef Documentation

◆ irq_handler_t

typedef int(* irq_handler_t) (void)

#include <irq.h>

Standard Interrupt Handler Function Pointer.

Returns
0 on success, non-zero on error.

Definition at line 82 of file irq.h.

Enumeration Type Documentation

◆ cpu_irq_t

enum cpu_irq_t

#include <irq.h>

CPU Interrupt Type (Standard RISC-V MIE bits).

Note
These values correspond directly to the bits in the mie CSR.
Enumerator
IRQ_SOFTWARE 
IRQ_TIMER 
IRQ_EXTERNAL 

Definition at line 95 of file irq.h.

Variable Documentation

◆ interrupt_vector_table

int(* interrupt_vector_table[64])(void) ( void )
extern

#include <irq.h>

Global Interrupt Vector Table.

Note
This table resides in RAM (if remapped) to allow dynamic registration of ISRs. It is typically indexed by the PLIC Interrupt ID.

Definition at line 20 of file mtrap.c.