2019-06-20 00:13:43 +00:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
2015-01-14 02:34:00 +00:00
|
|
|
#ifndef __NVKM_SW_NV50_H__
|
|
|
|
#define __NVKM_SW_NV50_H__
|
2015-08-20 04:54:18 +00:00
|
|
|
#define nv50_sw_chan(p) container_of((p), struct nv50_sw_chan, base)
|
2015-08-20 04:54:18 +00:00
|
|
|
#include "priv.h"
|
|
|
|
#include "chan.h"
|
|
|
|
#include "nvsw.h"
|
2015-01-14 04:11:21 +00:00
|
|
|
#include <core/notify.h>
|
2015-01-14 02:34:00 +00:00
|
|
|
|
|
|
|
struct nv50_sw_chan {
|
2015-01-14 05:32:15 +00:00
|
|
|
struct nvkm_sw_chan base;
|
2015-01-14 02:34:00 +00:00
|
|
|
struct {
|
|
|
|
struct nvkm_notify notify[4];
|
|
|
|
u32 ctxdma;
|
|
|
|
u64 offset;
|
|
|
|
u32 value;
|
|
|
|
} vblank;
|
|
|
|
};
|
|
|
|
|
2015-08-20 04:54:19 +00:00
|
|
|
void *nv50_sw_chan_dtor(struct nvkm_sw_chan *);
|
2015-01-14 02:34:00 +00:00
|
|
|
#endif
|