mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 18:53:52 +08:00
drm/nouveau: remove duplicate copy of nv44_graph_class
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
ef7d64e5c2
commit
c98b819468
@ -1,6 +1,9 @@
|
||||
#ifndef __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,
|
||||
* helpful to determine a number of other hardware features
|
||||
*/
|
||||
|
@ -22,15 +22,9 @@
|
||||
* Authors: Ben Skeggs
|
||||
*/
|
||||
|
||||
#include "nv04.h"
|
||||
#include <engine/graph/nv40.h>
|
||||
|
||||
static inline int
|
||||
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)));
|
||||
}
|
||||
#include "nv04.h"
|
||||
|
||||
static int
|
||||
nv40_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
|
||||
|
Loading…
Reference in New Issue
Block a user