summaryrefslogtreecommitdiff
path: root/bin/nv_aux.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/nv_aux.c')
-rw-r--r--bin/nv_aux.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/nv_aux.c b/bin/nv_aux.c
index 00da6b305..4abc45cb5 100644
--- a/bin/nv_aux.c
+++ b/bin/nv_aux.c
@@ -68,16 +68,16 @@ main(int argc, char **argv)
if (ret)
return ret;
- ret = nvif_device_new(nvif_object(client), 0x00000000, NV_DEVICE_CLASS,
- &(struct nv_device_class) {
+ ret = nvif_device_new(nvif_object(client), 0x00000000, NV_DEVICE,
+ &(struct nv_device_v0) {
.device = ~0ULL,
- .disable = ~(NV_DEVICE_DISABLE_MMIO |
- NV_DEVICE_DISABLE_IDENTIFY|
- NV_DEVICE_DISABLE_VBIOS |
- NV_DEVICE_DISABLE_CORE),
+ .disable = ~(NV_DEVICE_V0_DISABLE_MMIO |
+ NV_DEVICE_V0_DISABLE_IDENTIFY|
+ NV_DEVICE_V0_DISABLE_VBIOS |
+ NV_DEVICE_V0_DISABLE_CORE),
.debug0 = ~((1 << NVDEV_SUBDEV_VBIOS) |
(1 << NVDEV_SUBDEV_I2C)),
- }, sizeof(struct nv_device_class), &device);
+ }, sizeof(struct nv_device_v0), &device);
nvif_client_ref(NULL, &client);
if (ret)
return ret;