1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13#pragma once
14
15#include <sel4/types.h>
16#include <allocman/properties.h>
17#include <vka/cspacepath_t.h>
18
19struct allocman;
20
21typedef struct cspace_interface {
22    int (*alloc)(struct allocman *alloc, void *cookie, cspacepath_t *path);
23    void (*free)(struct allocman *alloc, void *cookie, const cspacepath_t *path);
24    cspacepath_t (*make_path)(void *cookie, seL4_CPtr slot);
25    struct allocman_properties properties;
26    void *cspace;
27} cspace_interface_t;
28
29