summaryrefslogtreecommitdiff
path: root/bin/nv_rdfunc.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-08-10 04:10:24 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-08-10 04:43:31 +1000
commit0d59b365576847ea6d89b8dbc7dd9c51aca9a593 (patch)
treedfbc216a647818e270f09b7e4eb2647811aa2031 /bin/nv_rdfunc.h
parentb444ec0997bfdda01be65f26e831c1724a6dd9f4 (diff)
downloadnouveau-0d59b365576847ea6d89b8dbc7dd9c51aca9a593.tar.gz
device: audit and version NV_DEVICE class
The full object interfaces are about to be exposed to userspace, so we need to check for any security-related issues and version the structs to make it easier to handle any changes we may need in the future. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
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)