xref: /linux/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/priv.h (revision d0034a7a4ac7fae708146ac0059b9c47a1543f0d)
1b7019ac5SIlia Mirkin /* SPDX-License-Identifier: MIT */
2a4f7bd36SBen Skeggs #ifndef __NVKM_MXM_PRIV_H__
3a4f7bd36SBen Skeggs #define __NVKM_MXM_PRIV_H__
4a4f7bd36SBen Skeggs #define nvkm_mxm(p) container_of((p), struct nvkm_mxm, subdev)
5a4f7bd36SBen Skeggs #include <subdev/mxm.h>
6a4f7bd36SBen Skeggs 
7a4f7bd36SBen Skeggs #define MXM_SANITISE_DCB 0x00000001
8a4f7bd36SBen Skeggs 
9a4f7bd36SBen Skeggs struct nvkm_mxm {
10a4f7bd36SBen Skeggs 	struct nvkm_subdev subdev;
11a4f7bd36SBen Skeggs 	u32 action;
12a4f7bd36SBen Skeggs 	u8 *mxms;
13a4f7bd36SBen Skeggs };
14a4f7bd36SBen Skeggs 
15*0a7bff10SBen Skeggs int nvkm_mxm_new_(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_mxm **);
16a4f7bd36SBen Skeggs #endif
17