Commit 74bcb2e9 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/bios/init: add a new devinit script interpreter entry-point

This will ensure unspecified args are easily identified.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent b88afa43
...@@ -22,6 +22,19 @@ struct nvbios_init { ...@@ -22,6 +22,19 @@ struct nvbios_init {
u32 ramcfg; 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_exec(struct nvbios_init *);
int nvbios_post(struct nvkm_subdev *, bool execute); int nvbios_post(struct nvkm_subdev *, bool execute);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment