summaryrefslogtreecommitdiff
path: root/bin/nv_rdfunc.h
diff options
context:
space:
mode:
Diffstat (limited to 'bin/nv_rdfunc.h')
-rw-r--r--bin/nv_rdfunc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/nv_rdfunc.h b/bin/nv_rdfunc.h
index fef29de7a..4dc77243e 100644
--- a/bin/nv_rdfunc.h
+++ b/bin/nv_rdfunc.h
@@ -8,7 +8,7 @@
#include <core/class.h>
#ifndef ENABLE
-#define ENABLE NV_DEVICE_DISABLE_MMIO
+#define ENABLE NV_DEVICE_V0_DISABLE_MMIO
#endif
#ifndef DEBUG0
#define DEBUG0 0ULL
@@ -23,7 +23,7 @@ main(int argc, char **argv)
u64 dev = ~0ULL;
struct nvif_client *client;
struct nvif_device *device;
- struct nv_device_class args;
+ struct nv_device_v0 args = {};
char *rstr = NULL;
enum {
NORMAL,
@@ -64,7 +64,7 @@ main(int argc, char **argv)
args.disable = ~ENABLE;
args.debug0 = ~DEBUG0;
- ret = nvif_device_new(nvif_object(client), 0x00000000, NV_DEVICE_CLASS,
+ ret = nvif_device_new(nvif_object(client), 0x00000000, NV_DEVICE,
&args, sizeof(args), &device);
nvif_client_ref(NULL, &client);
if (ret)