Skip to content

Commit

Permalink
drm/nouveau/fifo: version the dma channel class struct
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Oct 3, 2012
1 parent 503b0f1 commit a7c6e75
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/engine/fifo/nv04.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/engine/fifo/nv10.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/engine/fifo/nv17.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/engine/fifo/nv40.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/include/core/class.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a7c6e75

Please sign in to comment.