diff options
author | Mikko Perttunen <mperttunen@nvidia.com> | 2022-05-16 11:52:51 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-06-01 12:50:42 +0300 |
commit | 597b89d30b42dcc8e6b262e6876b42dde66f97f0 (patch) | |
tree | 869a22d9070a1e34988262d9aabc7c0446555128 /include/linux/host1x_context_bus.h | |
parent | cb7e1abc2c73633e1eefa168ab2dad6e838899c9 (diff) | |
download | linux-597b89d30b42dcc8e6b262e6876b42dde66f97f0.tar.xz |
gpu: host1x: Add context bus
The context bus is a "dummy" bus that contains struct devices that
correspond to IOMMU contexts assigned through Host1x to processes.
Even when host1x itself is built as a module, the bus is registered
in built-in code so that the built-in ARM SMMU driver is able to
reference it.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/linux/host1x_context_bus.h')
-rw-r--r-- | include/linux/host1x_context_bus.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/host1x_context_bus.h b/include/linux/host1x_context_bus.h new file mode 100644 index 000000000000..72462737a6db --- /dev/null +++ b/include/linux/host1x_context_bus.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (c) 2021, NVIDIA Corporation. All rights reserved. + */ + +#ifndef __LINUX_HOST1X_CONTEXT_BUS_H +#define __LINUX_HOST1X_CONTEXT_BUS_H + +#include <linux/device.h> + +#ifdef CONFIG_TEGRA_HOST1X_CONTEXT_BUS +extern struct bus_type host1x_context_device_bus_type; +#endif + +#endif |