|
@@ -2107,27 +2107,28 @@ nvkm_device_subdev(struct nvkm_device *device, int index)
|
|
|
|
|
|
switch (index) {
|
|
|
#define _(n,p,m) case NVKM_SUBDEV_##n: if (p) return (m); break
|
|
|
- _(BAR , device->bar , &device->bar->subdev);
|
|
|
- _(VBIOS , device->bios , &device->bios->subdev);
|
|
|
- _(BUS , device->bus , &device->bus->subdev);
|
|
|
- _(CLK , device->clk , &device->clk->subdev);
|
|
|
- _(DEVINIT, device->devinit, &device->devinit->subdev);
|
|
|
- _(FB , device->fb , &device->fb->subdev);
|
|
|
- _(FUSE , device->fuse , &device->fuse->subdev);
|
|
|
- _(GPIO , device->gpio , &device->gpio->subdev);
|
|
|
- _(I2C , device->i2c , &device->i2c->subdev);
|
|
|
- _(IBUS , device->ibus , device->ibus);
|
|
|
- _(INSTMEM, device->imem , &device->imem->subdev);
|
|
|
- _(LTC , device->ltc , &device->ltc->subdev);
|
|
|
- _(MC , device->mc , &device->mc->subdev);
|
|
|
- _(MMU , device->mmu , &device->mmu->subdev);
|
|
|
- _(MXM , device->mxm , device->mxm);
|
|
|
- _(PCI , device->pci , &device->pci->subdev);
|
|
|
- _(PMU , device->pmu , &device->pmu->subdev);
|
|
|
- _(SECBOOT, device->secboot, &device->secboot->subdev);
|
|
|
- _(THERM , device->therm , &device->therm->subdev);
|
|
|
- _(TIMER , device->timer , &device->timer->subdev);
|
|
|
- _(VOLT , device->volt , &device->volt->subdev);
|
|
|
+ _(BAR , device->bar , &device->bar->subdev);
|
|
|
+ _(VBIOS , device->bios , &device->bios->subdev);
|
|
|
+ _(BUS , device->bus , &device->bus->subdev);
|
|
|
+ _(CLK , device->clk , &device->clk->subdev);
|
|
|
+ _(DEVINIT , device->devinit , &device->devinit->subdev);
|
|
|
+ _(FB , device->fb , &device->fb->subdev);
|
|
|
+ _(FUSE , device->fuse , &device->fuse->subdev);
|
|
|
+ _(GPIO , device->gpio , &device->gpio->subdev);
|
|
|
+ _(I2C , device->i2c , &device->i2c->subdev);
|
|
|
+ _(IBUS , device->ibus , device->ibus);
|
|
|
+ _(ICCSENSE, device->iccsense, &device->iccsense->subdev);
|
|
|
+ _(INSTMEM , device->imem , &device->imem->subdev);
|
|
|
+ _(LTC , device->ltc , &device->ltc->subdev);
|
|
|
+ _(MC , device->mc , &device->mc->subdev);
|
|
|
+ _(MMU , device->mmu , &device->mmu->subdev);
|
|
|
+ _(MXM , device->mxm , device->mxm);
|
|
|
+ _(PCI , device->pci , &device->pci->subdev);
|
|
|
+ _(PMU , device->pmu , &device->pmu->subdev);
|
|
|
+ _(SECBOOT , device->secboot , &device->secboot->subdev);
|
|
|
+ _(THERM , device->therm , &device->therm->subdev);
|
|
|
+ _(TIMER , device->timer , &device->timer->subdev);
|
|
|
+ _(VOLT , device->volt , &device->volt->subdev);
|
|
|
#undef _
|
|
|
default:
|
|
|
engine = nvkm_device_engine(device, index);
|
|
@@ -2557,48 +2558,49 @@ nvkm_device_ctor(const struct nvkm_device_func *func,
|
|
|
} \
|
|
|
break
|
|
|
switch (i) {
|
|
|
- _(NVKM_SUBDEV_BAR , bar);
|
|
|
- _(NVKM_SUBDEV_VBIOS , bios);
|
|
|
- _(NVKM_SUBDEV_BUS , bus);
|
|
|
- _(NVKM_SUBDEV_CLK , clk);
|
|
|
- _(NVKM_SUBDEV_DEVINIT, devinit);
|
|
|
- _(NVKM_SUBDEV_FB , fb);
|
|
|
- _(NVKM_SUBDEV_FUSE , fuse);
|
|
|
- _(NVKM_SUBDEV_GPIO , gpio);
|
|
|
- _(NVKM_SUBDEV_I2C , i2c);
|
|
|
- _(NVKM_SUBDEV_IBUS , ibus);
|
|
|
- _(NVKM_SUBDEV_INSTMEM, imem);
|
|
|
- _(NVKM_SUBDEV_LTC , ltc);
|
|
|
- _(NVKM_SUBDEV_MC , mc);
|
|
|
- _(NVKM_SUBDEV_MMU , mmu);
|
|
|
- _(NVKM_SUBDEV_MXM , mxm);
|
|
|
- _(NVKM_SUBDEV_PCI , pci);
|
|
|
- _(NVKM_SUBDEV_PMU , pmu);
|
|
|
- _(NVKM_SUBDEV_SECBOOT, secboot);
|
|
|
- _(NVKM_SUBDEV_THERM , therm);
|
|
|
- _(NVKM_SUBDEV_TIMER , timer);
|
|
|
- _(NVKM_SUBDEV_VOLT , volt);
|
|
|
- _(NVKM_ENGINE_BSP , bsp);
|
|
|
- _(NVKM_ENGINE_CE0 , ce[0]);
|
|
|
- _(NVKM_ENGINE_CE1 , ce[1]);
|
|
|
- _(NVKM_ENGINE_CE2 , ce[2]);
|
|
|
- _(NVKM_ENGINE_CIPHER , cipher);
|
|
|
- _(NVKM_ENGINE_DISP , disp);
|
|
|
- _(NVKM_ENGINE_DMAOBJ , dma);
|
|
|
- _(NVKM_ENGINE_FIFO , fifo);
|
|
|
- _(NVKM_ENGINE_GR , gr);
|
|
|
- _(NVKM_ENGINE_IFB , ifb);
|
|
|
- _(NVKM_ENGINE_ME , me);
|
|
|
- _(NVKM_ENGINE_MPEG , mpeg);
|
|
|
- _(NVKM_ENGINE_MSENC , msenc);
|
|
|
- _(NVKM_ENGINE_MSPDEC , mspdec);
|
|
|
- _(NVKM_ENGINE_MSPPP , msppp);
|
|
|
- _(NVKM_ENGINE_MSVLD , msvld);
|
|
|
- _(NVKM_ENGINE_PM , pm);
|
|
|
- _(NVKM_ENGINE_SEC , sec);
|
|
|
- _(NVKM_ENGINE_SW , sw);
|
|
|
- _(NVKM_ENGINE_VIC , vic);
|
|
|
- _(NVKM_ENGINE_VP , vp);
|
|
|
+ _(NVKM_SUBDEV_BAR , bar);
|
|
|
+ _(NVKM_SUBDEV_VBIOS , bios);
|
|
|
+ _(NVKM_SUBDEV_BUS , bus);
|
|
|
+ _(NVKM_SUBDEV_CLK , clk);
|
|
|
+ _(NVKM_SUBDEV_DEVINIT , devinit);
|
|
|
+ _(NVKM_SUBDEV_FB , fb);
|
|
|
+ _(NVKM_SUBDEV_FUSE , fuse);
|
|
|
+ _(NVKM_SUBDEV_GPIO , gpio);
|
|
|
+ _(NVKM_SUBDEV_I2C , i2c);
|
|
|
+ _(NVKM_SUBDEV_IBUS , ibus);
|
|
|
+ _(NVKM_SUBDEV_ICCSENSE, iccsense);
|
|
|
+ _(NVKM_SUBDEV_INSTMEM , imem);
|
|
|
+ _(NVKM_SUBDEV_LTC , ltc);
|
|
|
+ _(NVKM_SUBDEV_MC , mc);
|
|
|
+ _(NVKM_SUBDEV_MMU , mmu);
|
|
|
+ _(NVKM_SUBDEV_MXM , mxm);
|
|
|
+ _(NVKM_SUBDEV_PCI , pci);
|
|
|
+ _(NVKM_SUBDEV_PMU , pmu);
|
|
|
+ _(NVKM_SUBDEV_SECBOOT , secboot);
|
|
|
+ _(NVKM_SUBDEV_THERM , therm);
|
|
|
+ _(NVKM_SUBDEV_TIMER , timer);
|
|
|
+ _(NVKM_SUBDEV_VOLT , volt);
|
|
|
+ _(NVKM_ENGINE_BSP , bsp);
|
|
|
+ _(NVKM_ENGINE_CE0 , ce[0]);
|
|
|
+ _(NVKM_ENGINE_CE1 , ce[1]);
|
|
|
+ _(NVKM_ENGINE_CE2 , ce[2]);
|
|
|
+ _(NVKM_ENGINE_CIPHER , cipher);
|
|
|
+ _(NVKM_ENGINE_DISP , disp);
|
|
|
+ _(NVKM_ENGINE_DMAOBJ , dma);
|
|
|
+ _(NVKM_ENGINE_FIFO , fifo);
|
|
|
+ _(NVKM_ENGINE_GR , gr);
|
|
|
+ _(NVKM_ENGINE_IFB , ifb);
|
|
|
+ _(NVKM_ENGINE_ME , me);
|
|
|
+ _(NVKM_ENGINE_MPEG , mpeg);
|
|
|
+ _(NVKM_ENGINE_MSENC , msenc);
|
|
|
+ _(NVKM_ENGINE_MSPDEC , mspdec);
|
|
|
+ _(NVKM_ENGINE_MSPPP , msppp);
|
|
|
+ _(NVKM_ENGINE_MSVLD , msvld);
|
|
|
+ _(NVKM_ENGINE_PM , pm);
|
|
|
+ _(NVKM_ENGINE_SEC , sec);
|
|
|
+ _(NVKM_ENGINE_SW , sw);
|
|
|
+ _(NVKM_ENGINE_VIC , vic);
|
|
|
+ _(NVKM_ENGINE_VP , vp);
|
|
|
default:
|
|
|
WARN_ON(1);
|
|
|
continue;
|