]>
git.ipfire.org Git - thirdparty/kernel/linux.git/blob - drivers/gpu/drm/nouveau/include/nvkm/core/event.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NVKM_EVENT_H__
3 #define __NVKM_EVENT_H__
9 const struct nvkm_event_func
*func
;
16 struct list_head list
;
20 struct nvkm_event_func
{
21 int (*ctor
)(struct nvkm_object
*, void *data
, u32 size
,
22 struct nvkm_notify
*);
23 void (*send
)(void *data
, u32 size
, struct nvkm_notify
*);
24 void (*init
)(struct nvkm_event
*, int type
, int index
);
25 void (*fini
)(struct nvkm_event
*, int type
, int index
);
28 int nvkm_event_init(const struct nvkm_event_func
*func
, int types_nr
,
29 int index_nr
, struct nvkm_event
*);
30 void nvkm_event_fini(struct nvkm_event
*);
31 void nvkm_event_get(struct nvkm_event
*, u32 types
, int index
);
32 void nvkm_event_put(struct nvkm_event
*, u32 types
, int index
);
33 void nvkm_event_send(struct nvkm_event
*, u32 types
, int index
,
34 void *data
, u32 size
);