diff options
Diffstat (limited to 'bin/nv_rvfunc.h')
-rw-r--r-- | bin/nv_rvfunc.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/nv_rvfunc.h b/bin/nv_rvfunc.h index 18f43219c..590e959b2 100644 --- a/bin/nv_rvfunc.h +++ b/bin/nv_rvfunc.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 CAST -nv_rvram(struct nouveau_object *device, u64 addr) +nv_rvram(struct nvif_device *device, u64 addr) { - 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) { CAST data; u32 pmem = nv_ro32(device, 0x001700); nv_wo32(device, 0x001700, 0x00000000 | (addr >> 16)); |