diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-08-05 02:52:42 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-08-05 02:52:42 +0200 |
commit | 0894a1e7664504312a9cdfc826eef89030aaaa1b (patch) | |
tree | 51e37e46d7862437583dbe02e6ebf03997a664be /code/fe310/drivers/plic_driver.h | |
parent | dff71bc297b744856e303ad9a175de92c9acae0d (diff) |
new directory sructure for fe310 fw
Diffstat (limited to 'code/fe310/drivers/plic_driver.h')
-rw-r--r-- | code/fe310/drivers/plic_driver.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/code/fe310/drivers/plic_driver.h b/code/fe310/drivers/plic_driver.h deleted file mode 100644 index 98b2bdd..0000000 --- a/code/fe310/drivers/plic_driver.h +++ /dev/null @@ -1,51 +0,0 @@ -// See LICENSE file for licence details - -#ifndef _PLIC_DRIVER_H_ -#define _PLIC_DRIVER_H_ - - -__BEGIN_DECLS - -#include "platform.h" - -typedef struct __plic_instance_t -{ - uintptr_t base_addr; - - uint32_t num_sources; - uint32_t num_priorities; - -} plic_instance_t; - -typedef uint32_t plic_source; -typedef uint32_t plic_priority; -typedef uint32_t plic_threshold; - -void PLIC_init ( - plic_instance_t * this_plic, - uintptr_t base_addr, - uint32_t num_sources, - uint32_t num_priorities - ); - -void PLIC_set_threshold (plic_instance_t * this_plic, - plic_threshold threshold); - -void PLIC_enable_interrupt (plic_instance_t * this_plic, - plic_source source); - -void PLIC_disable_interrupt (plic_instance_t * this_plic, - plic_source source); - -void PLIC_set_priority (plic_instance_t * this_plic, - plic_source source, - plic_priority priority); - -plic_source PLIC_claim_interrupt(plic_instance_t * this_plic); - -void PLIC_complete_interrupt(plic_instance_t * this_plic, - plic_source source); - -__END_DECLS - -#endif |