1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __NVBIOS_DP_H__ 3 #define __NVBIOS_DP_H__ 4 struct nvbios_dpout { 5 u16 type; 6 u16 mask; 7 u8 flags; 8 u32 script[5]; 9 u32 lnkcmp; 10 }; 11 12 u16 nvbios_dpout_parse(struct nvkm_bios *, u8 idx, 13 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, 14 struct nvbios_dpout *); 15 u16 nvbios_dpout_match(struct nvkm_bios *, u16 type, u16 mask, 16 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, 17 struct nvbios_dpout *); 18 19 struct nvbios_dpcfg { 20 u8 pc; 21 u8 dc; 22 u8 pe; 23 u8 tx_pu; 24 }; 25 26 u16 27 nvbios_dpcfg_parse(struct nvkm_bios *, u16 outp, u8 idx, 28 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *); 29 u16 30 nvbios_dpcfg_match(struct nvkm_bios *, u16 outp, u8 pc, u8 vs, u8 pe, 31 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *); 32 #endif 33