Skip to content

Commit

Permalink
[dif,rv_plic] Make dif_rv_plic_irq_id_t an alias for dt_irq_t
Browse files Browse the repository at this point in the history
This is for documentation purposes, to make it clear that DT IRQ
IDs are PLIC IRQ IDs.

Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Aug 30, 2024
1 parent 10ce872 commit 41b480d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sw/device/lib/dif/dif_rv_plic.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_base.h"

#include "sw/device/lib/devicetables/dt_api.h"

#include "sw/device/lib/dif/autogen/dif_rv_plic_autogen.h"

#ifdef __cplusplus
Expand Down Expand Up @@ -51,7 +53,7 @@ extern const uint32_t kDifRvPlicMaxPriority;
*
* The value 0 corresponds to "No Interrupt".
*/
typedef uint32_t dif_rv_plic_irq_id_t;
typedef dt_irq_t dif_rv_plic_irq_id_t;

/**
* A PLIC interrupt target.
Expand Down

0 comments on commit 41b480d

Please sign in to comment.