aboutsummaryrefslogtreecommitdiff
path: root/riscv/dts.h
blob: ec27abc46984765a361c6cc0ac5ebd8fac347c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// See LICENSE for license details.
#ifndef _RISCV_DTS_H
#define _RISCV_DTS_H

#include "processor.h"
#include "mmu.h"
#include <string>

std::string make_dts(size_t insns_per_rtc_tick, size_t cpu_hz,
                     reg_t initrd_start, reg_t initrd_end,
                     std::vector<processor_t*> procs,
                     std::vector<std::pair<reg_t, mem_t*>> mems);

std::string dts_compile(const std::string& dts);

int fdt_parse_clint(void *fdt, unsigned long *clint_addr,
                    const char *compatible);
int fdt_parse_pmp(void *fdt, unsigned long *pmp_num, const char *compatible);
#endif