]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/gpu/host1x/channel.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (c) 2010-2013, NVIDIA Corporation.
8 #ifndef __HOST1X_CHANNEL_H
9 #define __HOST1X_CHANNEL_H
12 #include <linux/kref.h>
17 struct host1x_channel
;
19 struct host1x_channel_list
{
20 struct host1x_channel
*channels
;
21 unsigned long *allocated_channels
;
24 struct host1x_channel
{
27 struct mutex submitlock
;
29 struct host1x_client
*client
;
31 struct host1x_cdma cdma
;
34 /* channel list operations */
35 int host1x_channel_list_init(struct host1x_channel_list
*chlist
,
36 unsigned int num_channels
);
37 void host1x_channel_list_free(struct host1x_channel_list
*chlist
);
38 struct host1x_channel
*host1x_channel_get_index(struct host1x
*host
,