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