summaryrefslogtreecommitdiff
path: root/bin/nv_wvfunc.h
diff options
context:
space:
mode:
Diffstat (limited to 'bin/nv_wvfunc.h')
-rw-r--r--bin/nv_wvfunc.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/nv_wvfunc.h b/bin/nv_wvfunc.h
index 1f218ffc6..2832f168d 100644
--- a/bin/nv_wvfunc.h
+++ b/bin/nv_wvfunc.h
@@ -1,14 +1,12 @@
#include <stdlib.h>
-#include <core/os.h>
-#include <core/object.h>
-#include <core/device.h>
+#include <nvif/device.h>
static void
-nv_wvram(struct nouveau_object *device, u64 addr, CAST data)
+nv_wvram(struct nvif_device *device, u64 addr, CAST data)
{
- if (nv_device(device)->card_type >= NV_50 &&
- nv_device(device)->card_type <= NV_E0) {
+ if (device->info.family >= NV_DEVICE_INFO_V0_TESLA &&
+ device->info.family <= NV_DEVICE_INFO_V0_MAXWELL) {
u32 pmem = nv_ro32(device, 0x001700);
nv_wo32(device, 0x001700, 0x00000000 | (addr >> 16));
WVRAM(device, 0x700000 + (addr & 0xffffULL), data);