1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2 /* Copyright 2018-2019 Qiang Yu <yuq825@gmail.com> */
7 #include <linux/xarray.h>
8 #include <linux/sched.h>
10 #include "lima_device.h"
14 struct lima_device
*dev
;
15 struct lima_sched_context context
[lima_pipe_num
];
19 char pname
[TASK_COMM_LEN
];
25 struct xarray handles
;
28 int lima_ctx_create(struct lima_device
*dev
, struct lima_ctx_mgr
*mgr
, u32
*id
);
29 int lima_ctx_free(struct lima_ctx_mgr
*mgr
, u32 id
);
30 struct lima_ctx
*lima_ctx_get(struct lima_ctx_mgr
*mgr
, u32 id
);
31 void lima_ctx_put(struct lima_ctx
*ctx
);
32 void lima_ctx_mgr_init(struct lima_ctx_mgr
*mgr
);
33 void lima_ctx_mgr_fini(struct lima_ctx_mgr
*mgr
);