nvif_rd32
uint32_t cfg1 = nvif_rd32(device, NV04_PFB_CFG1);
sim_data.memory_type = nvif_rd32(device, NV04_PFB_CFG0) & 0x1;
sim_data.memory_width = (nvif_rd32(device, NV_PEXTDEV_BOOT_0) & 0x10) ? 128 : 64;
saved_powerctrl_2 = nvif_rd32(device, NV_PBUS_POWERCTRL_2);
saved_powerctrl_4 = nvif_rd32(device, NV_PBUS_POWERCTRL_4);
if (!(nvif_rd32(device, NV_PRMCIO_INP0__COLOR) & 1))
if ( (nvif_rd32(device, NV_PRMCIO_INP0__COLOR) & 1))
if (!(nvif_rd32(device, NV_PRMCIO_INP0__COLOR) & 1))
if (nvif_rd32(device, NV_PEXTDEV_BOOT_0) & NV_PEXTDEV_BOOT_0_STRAP_FP_IFACE_12BIT)
pll1 = nvif_rd32(device, reg1);
pll2 = nvif_rd32(device, reg1 + 4);
pll2 = nvif_rd32(device, reg2);
if ( (nvif_rd32(device, NV_PRMCIO_INP0__COLOR) & 8))
if (!(nvif_rd32(device, NV_PRMCIO_INP0__COLOR) & 8))
return !!(nvif_rd32(device, NV_PBUS_DEBUG_1) & (1 << 28));
val = nvif_rd32(device, reg);
val = nvif_rd32(device, reg);
nvif_wr32(dev, NV_PVIDEO_SU_STATE, nvif_rd32(dev, NV_PVIDEO_SU_STATE) ^ (1 << 16));
return nvif_rd32(&device->object, reg);
if (!(nvif_rd32(&device->object, 0x070000) & 0x00000002))
u32 tmp = nvif_rd32(&disp->caps, 0x000144 + (or * 8));
#define NVIF_RD32_(p,o,dr) nvif_rd32((p), (o) + (dr))
u32 _addr = (b), _data = nvif_rd32(__object, _addr); \
if (!(nvif_rd32(device, NV40_PMC_BACKLIGHT) & NV40_PMC_BACKLIGHT_MASK))
int val = (nvif_rd32(device, NV40_PMC_BACKLIGHT) &
int reg = nvif_rd32(device, NV40_PMC_BACKLIGHT);
nvif_wr32(device, NV_PBUS_DEBUG_4, nvif_rd32(device, NV_PBUS_DEBUG_4) | 0x18);
sel_clk_binding = nvif_rd32(device, NV_PRAMDAC_SEL_CLK) & 0x50000;
return nvif_rd32(device, 0x001800) & 0x0000000f;
return (nvif_rd32(device, NV_PEXTDEV_BOOT_0) >> 24) & 0xf;
return (nvif_rd32(device, NV_PEXTDEV_BOOT_0) >> 16) & 0xf;
sel_clk_binding = nvif_rd32(device, NV_PRAMDAC_SEL_CLK) & 0x50000;
nvif_rd32(&drm->client.device.object, 0x101000));
val = nvif_rd32(chan->userd, chan->user_get);
div = nvif_rd32(device, 0x61c880) & 0x00ffffff;
duty = nvif_rd32(device, 0x61c884) & 0x00ffffff;
const u32 instlo = nvif_rd32(memory, offset + 0x00);
const u32 insthi = nvif_rd32(memory, offset + 0x04);
const u32 addrlo = nvif_rd32(memory, offset + 0x08);
const u32 addrhi = nvif_rd32(memory, offset + 0x0c);
const u32 timelo = nvif_rd32(memory, offset + 0x10);
const u32 timehi = nvif_rd32(memory, offset + 0x14);
const u32 engine = nvif_rd32(memory, offset + 0x18);
const u32 info = nvif_rd32(memory, offset + 0x1c);
buffer->put = nvif_rd32(device, buffer->putaddr);
buffer->get = nvif_rd32(device, buffer->getaddr);
buffer->get = nvif_rd32(device, buffer->getaddr);
buffer->put = nvif_rd32(device, buffer->putaddr);
return nvif_rd32(&chan->userd, 0x88);
u32 tlgetlo = nvif_rd32(&chan->userd, 0x58);
u32 tlgethi = nvif_rd32(&chan->userd, 0x5c);
return nvif_rd32(&chan->sema, 0) >> NVIF_CHAN906F_GPPTR_SHIFT;
return nvif_rd32(&chan->sema, 0) & NVIF_CHAN906F_PBPTR_MASK;
nvif_rd32(&chan->userd, 0); /* ensure BAR1 writes are flushed to vidmem */
hi = nvif_rd32(&user->object, 0x084);
lo = nvif_rd32(&user->object, 0x080);
} while (hi != nvif_rd32(&user->object, 0x084));