diff options
Diffstat (limited to 'bin/nv_rvfunc.h')
-rw-r--r-- | bin/nv_rvfunc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/nv_rvfunc.h b/bin/nv_rvfunc.h index 7ab2db9a7..cb63f374f 100644 --- a/bin/nv_rvfunc.h +++ b/bin/nv_rvfunc.h @@ -8,10 +8,10 @@ nv_rvram(struct nvif_device *device, u64 addr) 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)); + u32 pmem = nvif_rd32(device, 0x001700); + nvif_wr32(device, 0x001700, 0x00000000 | (addr >> 16)); data = RVRAM(device, 0x700000 + (addr & 0xffffULL)); - nv_wo32(device, 0x001700, pmem); + nvif_wr32(device, 0x001700, pmem); return data; } else { printk("unsupported chipset\n"); |