1 /* Copyright 2018 SiFive, Inc */
2 /* SPDX-License-Identifier: Apache-2.0 */
4 #ifndef METAL__DRIVERS__RISCV_CLINT0_H
5 #define METAL__DRIVERS__RISCV_CLINT0_H
7 #include <metal/compiler.h>
8 #include <metal/drivers/riscv_cpu.h>
10 struct __metal_driver_vtable_riscv_clint0 {
11 struct metal_interrupt_vtable clint_vtable;
14 __METAL_DECLARE_VTABLE(__metal_driver_vtable_riscv_clint0)
16 #define __METAL_MACHINE_MACROS
17 #include <metal/machine.h>
18 struct __metal_driver_riscv_clint0 {
19 struct metal_interrupt controller;
22 #undef __METAL_MACHINE_MACROS