xref: /linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/extdev.h (revision e0bf6c5ca2d3281f231c5f0c9bf145e9513644de)
1 #ifndef __NVBIOS_EXTDEV_H__
2 #define __NVBIOS_EXTDEV_H__
3 enum nvbios_extdev_type {
4 	NVBIOS_EXTDEV_LM89		= 0x02,
5 	NVBIOS_EXTDEV_VT1103M		= 0x40,
6 	NVBIOS_EXTDEV_PX3540		= 0x41,
7 	NVBIOS_EXTDEV_VT1105M		= 0x42, /* or close enough... */
8 	NVBIOS_EXTDEV_ADT7473		= 0x70, /* can also be a LM64 */
9 	NVBIOS_EXTDEV_HDCP_EEPROM	= 0x90,
10 	NVBIOS_EXTDEV_NONE		= 0xff,
11 };
12 
13 struct nvbios_extdev_func {
14 	u8 type;
15 	u8 addr;
16 	u8 bus;
17 };
18 
19 int
20 nvbios_extdev_parse(struct nvkm_bios *, int, struct nvbios_extdev_func *);
21 
22 int
23 nvbios_extdev_find(struct nvkm_bios *, enum nvbios_extdev_type,
24 		   struct nvbios_extdev_func *);
25 #endif
26