mirror of https://gitee.com/openkylin/linux.git
drm/nouveau/fifo: version the dma channel class struct
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
503b0f1cd6
commit
a7c6e75eb2
|
@ -118,7 +118,7 @@ nv04_fifo_chan_ctor(struct nouveau_object *parent,
|
|||
{
|
||||
struct nv04_fifo_priv *priv = (void *)engine;
|
||||
struct nv04_fifo_chan *chan;
|
||||
struct nv_channel_dma_class *args = data;
|
||||
struct nv03_channel_dma_class *args = data;
|
||||
int ret;
|
||||
|
||||
if (size < sizeof(*args))
|
||||
|
|
|
@ -61,7 +61,7 @@ nv10_fifo_chan_ctor(struct nouveau_object *parent,
|
|||
{
|
||||
struct nv04_fifo_priv *priv = (void *)engine;
|
||||
struct nv04_fifo_chan *chan;
|
||||
struct nv_channel_dma_class *args = data;
|
||||
struct nv03_channel_dma_class *args = data;
|
||||
int ret;
|
||||
|
||||
if (size < sizeof(*args))
|
||||
|
|
|
@ -66,7 +66,7 @@ nv17_fifo_chan_ctor(struct nouveau_object *parent,
|
|||
{
|
||||
struct nv04_fifo_priv *priv = (void *)engine;
|
||||
struct nv04_fifo_chan *chan;
|
||||
struct nv_channel_dma_class *args = data;
|
||||
struct nv03_channel_dma_class *args = data;
|
||||
int ret;
|
||||
|
||||
if (size < sizeof(*args))
|
||||
|
|
|
@ -184,7 +184,7 @@ nv40_fifo_chan_ctor(struct nouveau_object *parent,
|
|||
{
|
||||
struct nv04_fifo_priv *priv = (void *)engine;
|
||||
struct nv04_fifo_chan *chan;
|
||||
struct nv_channel_dma_class *args = data;
|
||||
struct nv03_channel_dma_class *args = data;
|
||||
int ret;
|
||||
|
||||
if (size < sizeof(*args))
|
||||
|
|
|
@ -57,7 +57,7 @@ struct nv_dma_class {
|
|||
* 406e: NV40_CHANNEL_DMA
|
||||
*/
|
||||
|
||||
struct nv_channel_dma_class {
|
||||
struct nv03_channel_dma_class {
|
||||
u32 pushbuf;
|
||||
u32 pad0;
|
||||
u64 offset;
|
||||
|
|
|
@ -223,7 +223,7 @@ nouveau_channel_dma(struct nouveau_drm *drm, struct nouveau_cli *cli,
|
|||
{
|
||||
static const u16 oclasses[] = { 0x406e, 0x176e, 0x006e, 0x006b, 0 };
|
||||
const u16 *oclass = oclasses;
|
||||
struct nv_channel_dma_class args;
|
||||
struct nv03_channel_dma_class args;
|
||||
struct nouveau_channel *chan;
|
||||
int ret;
|
||||
|
||||
|
|
Loading…
Reference in New Issue