diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-01-15 06:34:22 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-01-15 10:50:28 +1000 |
commit | 7e1659cc3b33e8765ea155b4b46d8e658d5277d2 (patch) | |
tree | dc527304552f553596bfca37553b100ae92f46b2 /drivers/gpu/drm/nouveau/nvkm/falcon/qmgr.h | |
parent | drm/nouveau/flcn: add printk macros (diff) | |
download | linux-dev-7e1659cc3b33e8765ea155b4b46d8e658d5277d2.tar.xz linux-dev-7e1659cc3b33e8765ea155b4b46d8e658d5277d2.zip |
drm/nouveau/flcn: split msgqueue into multiple pieces
To make things clearer while modifying the interfaces, split msgqueue into
Queue Manager, Command Queue, and Message Queue.
There should be no code changes here, these will be done incrementally.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/falcon/qmgr.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/falcon/qmgr.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/falcon/qmgr.h b/drivers/gpu/drm/nouveau/nvkm/falcon/qmgr.h new file mode 100644 index 000000000000..db00c5ee6124 --- /dev/null +++ b/drivers/gpu/drm/nouveau/nvkm/falcon/qmgr.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: MIT */ +#ifndef __NVKM_FALCON_QMGR_H__ +#define __NVKM_FALCON_QMGR_H__ +#include <core/falcon.h> +#include "msgqueue.h" + +#define HDR_SIZE sizeof(struct nvkm_msgqueue_hdr) +#define QUEUE_ALIGNMENT 4 +/* max size of the messages we can receive */ +#define MSG_BUF_SIZE 128 + +struct nvkm_msgqueue_seq *msgqueue_seq_acquire(struct nvkm_msgqueue *); +void msgqueue_seq_release(struct nvkm_msgqueue *, struct nvkm_msgqueue_seq *); +#endif |