1 /* $NetBSD: ctrl.h,v 1.3 2021/12/18 23:45:34 riastradh Exp $ */ 2 3 /* SPDX-License-Identifier: MIT */ 4 #ifndef __NVKM_DEVICE_CTRL_H__ 5 #define __NVKM_DEVICE_CTRL_H__ 6 #define nvkm_control(p) container_of((p), struct nvkm_control, object) 7 #include <core/object.h> 8 9 struct nvkm_control { 10 struct nvkm_object object; 11 struct nvkm_device *device; 12 }; 13 14 extern const struct nvkm_device_oclass nvkm_control_oclass; 15 #endif 16