summaryrefslogtreecommitdiffstats
path: root/drivers/platform/tegra/rtcpu/device-group.h
blob: 4db9d41544a2d3e1374ac726b38fe373f5acca65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (c) 2017-2018, NVIDIA CORPORATION.  All rights reserved.
 *
 * NVIDIA CORPORATION and its licensors retain all intellectual property
 * and proprietary rights in and to this software, related documentation
 * and any modifications thereto.  Any use, reproduction, disclosure or
 * distribution of this software and related documentation without an express
 * license agreement from NVIDIA CORPORATION is strictly prohibited.
 */

#ifndef INCLUDE_DEVICE_GROUP_H
#define INCLUDE_DEVICE_GROUP_H

struct device;
struct platform_device;

struct camrtc_device_group *camrtc_device_group_get(
	struct device *dev,
	const char *property_name,
	const char *names_property_name);

struct platform_device *camrtc_device_get_byname(
	struct camrtc_device_group *grp,
	const char *device_name);

int camrtc_device_group_busy(const struct camrtc_device_group *grp);
void camrtc_device_group_idle(const struct camrtc_device_group *grp);
void camrtc_device_group_reset(const struct camrtc_device_group *grp);

#endif /* INCLUDE_DEVICE_GROUP_H */