1 /* Copyright 2018 SiFive, Inc */
2 /* SPDX-License-Identifier: Apache-2.0 */
4 #ifndef METAL__DRIVERS__SIFIVE_FE310_G000_PRCI_H
5 #define METAL__DRIVERS__SIFIVE_FE310_G000_PRCI_H
7 #include <metal/compiler.h>
10 struct __metal_driver_sifive_fe310_g000_prci;
12 struct __metal_driver_vtable_sifive_fe310_g000_prci {
13 long (*get_reg)(const struct __metal_driver_sifive_fe310_g000_prci *, long offset);
14 long (*set_reg)(const struct __metal_driver_sifive_fe310_g000_prci *, long offset, long value);
17 __METAL_DECLARE_VTABLE(__metal_driver_vtable_sifive_fe310_g000_prci)
19 struct __metal_driver_sifive_fe310_g000_prci {
20 const struct __metal_driver_vtable_sifive_fe310_g000_prci *vtable;