提交 c98b8194 编写于 作者: I Ilia Mirkin 提交者: Ben Skeggs

drm/nouveau: remove duplicate copy of nv44_graph_class

Signed-off-by: NIlia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 ef7d64e5
#ifndef __NV40_GRAPH_H__ #ifndef __NV40_GRAPH_H__
#define __NV40_GRAPH_H__ #define __NV40_GRAPH_H__
#include <core/device.h>
#include <core/gpuobj.h>
/* returns 1 if device is one of the nv4x using the 0x4497 object class, /* returns 1 if device is one of the nv4x using the 0x4497 object class,
* helpful to determine a number of other hardware features * helpful to determine a number of other hardware features
*/ */
......
...@@ -22,15 +22,9 @@ ...@@ -22,15 +22,9 @@
* Authors: Ben Skeggs * Authors: Ben Skeggs
*/ */
#include "nv04.h" #include <engine/graph/nv40.h>
static inline int #include "nv04.h"
nv44_graph_class(struct nv04_instmem_priv *priv)
{
if ((nv_device(priv)->chipset & 0xf0) == 0x60)
return 1;
return !(0x0baf & (1 << (nv_device(priv)->chipset & 0x0f)));
}
static int static int
nv40_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine, nv40_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册