]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
b6caea50 BS |
2 | #ifndef __NVBIOS_DISP_H__ |
3 | #define __NVBIOS_DISP_H__ | |
d390b480 | 4 | u16 nvbios_disp_table(struct nvkm_bios *, |
b6caea50 BS |
5 | u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub); |
6 | ||
7 | struct nvbios_disp { | |
8 | u16 data; | |
9 | }; | |
10 | ||
d390b480 BS |
11 | u16 nvbios_disp_entry(struct nvkm_bios *, u8 idx, u8 *ver, u8 *hdr, u8 *sub); |
12 | u16 nvbios_disp_parse(struct nvkm_bios *, u8 idx, u8 *ver, u8 *hdr, u8 *sub, | |
b6caea50 BS |
13 | struct nvbios_disp *); |
14 | ||
15 | struct nvbios_outp { | |
16 | u16 type; | |
17 | u16 mask; | |
18 | u16 script[3]; | |
19 | }; | |
20 | ||
d390b480 | 21 | u16 nvbios_outp_entry(struct nvkm_bios *, u8 idx, |
b6caea50 | 22 | u8 *ver, u8 *hdr, u8 *cnt, u8 *len); |
d390b480 BS |
23 | u16 nvbios_outp_parse(struct nvkm_bios *, u8 idx, |
24 | u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *); | |
25 | u16 nvbios_outp_match(struct nvkm_bios *, u16 type, u16 mask, | |
26 | u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *); | |
b6caea50 BS |
27 | |
28 | struct nvbios_ocfg { | |
bc9139d2 BS |
29 | u8 proto; |
30 | u8 flags; | |
b6caea50 BS |
31 | u16 clkcmp[2]; |
32 | }; | |
33 | ||
d390b480 | 34 | u16 nvbios_ocfg_entry(struct nvkm_bios *, u16 outp, u8 idx, |
b6caea50 | 35 | u8 *ver, u8 *hdr, u8 *cnt, u8 *len); |
d390b480 BS |
36 | u16 nvbios_ocfg_parse(struct nvkm_bios *, u16 outp, u8 idx, |
37 | u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *); | |
bc9139d2 | 38 | u16 nvbios_ocfg_match(struct nvkm_bios *, u16 outp, u8 proto, u8 flags, |
d390b480 BS |
39 | u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *); |
40 | u16 nvbios_oclk_match(struct nvkm_bios *, u16 cmp, u32 khz); | |
b6caea50 | 41 | #endif |