Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / include / nvkm / subdev / bios / init.h
blob10df0215475edce96cd8edc8c66fe6438c34df5e
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVBIOS_INIT_H__
3 #define __NVBIOS_INIT_H__
5 struct nvbios_init {
6 struct nvkm_subdev *subdev;
7 u32 offset;
9 struct dcb_output *outp;
10 int or;
11 int link;
12 int head;
14 /* internal state used during parsing */
15 u8 execute;
16 u32 nested;
17 u32 repeat;
18 u32 repend;
19 u32 ramcfg;
22 #define nvbios_init(s,o,ARGS...) ({ \
23 struct nvbios_init init = { \
24 .subdev = (s), \
25 .offset = (o), \
26 .or = -1, \
27 .link = 0, \
28 .head = -1, \
29 .execute = 1, \
30 }; \
31 ARGS \
32 nvbios_exec(&init); \
34 int nvbios_exec(struct nvbios_init *);
36 int nvbios_post(struct nvkm_subdev *, bool execute);
37 #endif