diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2017-05-19 16:59:34 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-06-16 07:04:44 +0300 |
commit | 74bcb2e98a3cac5456c9d3bc38c64963d61e481e (patch) | |
tree | 71619002c54840482bba8357cdcf061fddb7f497 /drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/init.h | |
parent | b88afa43967578741e3b258c80e01969fddd5fe6 (diff) | |
download | linux-74bcb2e98a3cac5456c9d3bc38c64963d61e481e.tar.xz |
drm/nouveau/bios/init: add a new devinit script interpreter entry-point
This will ensure unspecified args are easily identified.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/init.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/init.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/init.h b/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/init.h index 84d9e588af4d..c7383e1f0966 100644 --- a/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/init.h +++ b/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/init.h @@ -22,6 +22,19 @@ struct nvbios_init { u32 ramcfg; }; +#define nvbios_init(s,o,ARGS...) ({ \ + struct nvbios_init init = { \ + .subdev = (s), \ + .offset = (o), \ + .or = -1, \ + .link = 0, \ + .head = -1, \ + .execute = 1, \ + }; \ + ARGS \ + nvbios_exec(&init); \ +}) int nvbios_exec(struct nvbios_init *); + int nvbios_post(struct nvkm_subdev *, bool execute); #endif |