]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - drivers/gpu/drm/nouveau/include/nvkm/core/notify.h
1 #ifndef __NVKM_NOTIFY_H__
2 #define __NVKM_NOTIFY_H__
7 struct nvkm_event
*event
;
9 #define NVKM_NOTIFY_USER 0
10 #define NVKM_NOTIFY_WORK 1
13 #define NVKM_NOTIFY_DROP 0
14 #define NVKM_NOTIFY_KEEP 1
15 int (*func
)(struct nvkm_notify
*);
17 /* set by nvkm_event ctor */
22 struct work_struct work
;
23 /* this is const for a *very* good reason - the data might be on the
24 * stack from an irq handler. if you're not core/notify.c then you
25 * should probably think twice before casting it away...
30 int nvkm_notify_init(struct nvkm_object
*, struct nvkm_event
*,
31 int (*func
)(struct nvkm_notify
*), bool work
,
32 void *data
, u32 size
, u32 reply
,
33 struct nvkm_notify
*);
34 void nvkm_notify_fini(struct nvkm_notify
*);
35 void nvkm_notify_get(struct nvkm_notify
*);
36 void nvkm_notify_put(struct nvkm_notify
*);
37 void nvkm_notify_send(struct nvkm_notify
*, void *data
, u32 size
);