/* * Copyright 2019, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(DATA61_BSD) */ procedure Clock { include ; int init_clock(clk_id_t clk_id); int set_gate_mode(clock_gate_t gate, clock_gate_mode_t mode); freq_t get_freq(clk_id_t clk_id); freq_t set_freq(clk_id_t clk_id, freq_t hz); int register_child(clk_id_t parent, clk_id_t child); };