xref: /openbmc/linux/drivers/gpu/drm/nouveau/nvkm/falcon/priv.h (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1b7019ac5SIlia Mirkin /* SPDX-License-Identifier: MIT */
231214108SAlexandre Courbot #ifndef __NVKM_FALCON_PRIV_H__
331214108SAlexandre Courbot #define __NVKM_FALCON_PRIV_H__
4a128bbfaSBen Skeggs #include <core/falcon.h>
5*f15cde64SBen Skeggs 
6*f15cde64SBen Skeggs static inline int
nvkm_falcon_enable(struct nvkm_falcon * falcon)7*f15cde64SBen Skeggs nvkm_falcon_enable(struct nvkm_falcon *falcon)
8*f15cde64SBen Skeggs {
9*f15cde64SBen Skeggs 	if (falcon->func->enable)
10*f15cde64SBen Skeggs 		return falcon->func->enable(falcon);
11*f15cde64SBen Skeggs 	return 0;
12*f15cde64SBen Skeggs }
1331214108SAlexandre Courbot #endif
14