The namespace of NVKM is being changed to nvkm_ instead of nouveau_, which will be used for the DRM part of the driver. This is being done in order to make it very clear as to what part of the driver a given symbol belongs to, and as a minor step towards splitting the DRM driver out to be able to stand on its own (for virt). Because there's already a large amount of churn here anyway, this is as good a time as any to also switch to NVIDIA's device and chipset naming to ease collaboration with them. A comparison of objdump disassemblies proves no code changes. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
24 lines
581 B
C
24 lines
581 B
C
#ifndef __NV40_GR_H__
|
|
#define __NV40_GR_H__
|
|
#include <engine/gr.h>
|
|
|
|
#include <core/device.h>
|
|
struct nvkm_gpuobj;
|
|
|
|
/* returns 1 if device is one of the nv4x using the 0x4497 object class,
|
|
* helpful to determine a number of other hardware features
|
|
*/
|
|
static inline int
|
|
nv44_gr_class(void *priv)
|
|
{
|
|
struct nvkm_device *device = nv_device(priv);
|
|
|
|
if ((device->chipset & 0xf0) == 0x60)
|
|
return 1;
|
|
|
|
return !(0x0baf & (1 << (device->chipset & 0x0f)));
|
|
}
|
|
|
|
int nv40_grctx_init(struct nvkm_device *, u32 *size);
|
|
void nv40_grctx_fill(struct nvkm_device *, struct nvkm_gpuobj *);
|
|
#endif
|