1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NVMXM_MXMS_H__
3 #define __NVMXM_MXMS_H__
4 #include "priv.h"
5 
6 struct mxms_odev {
7 	u8 outp_type;
8 	u8 conn_type;
9 	u8 ddc_port;
10 	u8 dig_conn;
11 };
12 
13 void mxms_output_device(struct nvkm_mxm *, u8 *, struct mxms_odev *);
14 
15 u16  mxms_version(struct nvkm_mxm *);
16 u16  mxms_headerlen(struct nvkm_mxm *);
17 u16  mxms_structlen(struct nvkm_mxm *);
18 bool mxms_checksum(struct nvkm_mxm *);
19 bool mxms_valid(struct nvkm_mxm *);
20 
21 bool mxms_foreach(struct nvkm_mxm *, u8,
22 		  bool (*)(struct nvkm_mxm *, u8 *, void *), void *);
23 #endif
24