ovni/src/emu/model_cpu.h
Rodrigo Arias ddbb7dd9f4 Add include-what-you-use
Adds forwards declarations in headers and includes all headers in
sources, even if they are found by transitive includes.
2023-03-24 12:08:45 +00:00

27 lines
610 B
C

/* Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC)
* SPDX-License-Identifier: GPL-3.0-or-later */
#ifndef MODEL_CPU_H
#define MODEL_CPU_H
#include <stddef.h>
#include "common.h"
struct emu;
struct model_cpu_spec {
size_t size;
const struct model_chan_spec *chan;
const struct model_spec *model;
};
struct model_cpu {
const struct model_cpu_spec *spec;
struct bay *bay;
struct track *track;
};
USE_RET int model_cpu_create(struct emu *emu, const struct model_cpu_spec *spec);
USE_RET int model_cpu_connect(struct emu *emu, const struct model_cpu_spec *spec);
#endif /* MODEL_CPU_H */