c39f472e9f
The symlinks were annoying some people, and they're not used anywhere else in the kernel tree. The include directory structure has been changed so that symlinks aren't needed anymore. NVKM has been moved from core/ to nvkm/ to make it more obvious as to what the directory is for, and as some minor prep for when NVKM gets split out into its own module (virt) at a later date. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
#ifndef __NOUVEAU_MXM_H__
|
|
#define __NOUVEAU_MXM_H__
|
|
|
|
#include <core/subdev.h>
|
|
#include <core/device.h>
|
|
|
|
#define MXM_SANITISE_DCB 0x00000001
|
|
|
|
struct nouveau_mxm {
|
|
struct nouveau_subdev base;
|
|
u32 action;
|
|
u8 *mxms;
|
|
};
|
|
|
|
static inline struct nouveau_mxm *
|
|
nouveau_mxm(void *obj)
|
|
{
|
|
return (void *)nouveau_subdev(obj, NVDEV_SUBDEV_MXM);
|
|
}
|
|
|
|
#define nouveau_mxm_create(p,e,o,d) \
|
|
nouveau_mxm_create_((p), (e), (o), sizeof(**d), (void **)d)
|
|
#define nouveau_mxm_init(p) \
|
|
nouveau_subdev_init(&(p)->base)
|
|
#define nouveau_mxm_fini(p,s) \
|
|
nouveau_subdev_fini(&(p)->base, (s))
|
|
int nouveau_mxm_create_(struct nouveau_object *, struct nouveau_object *,
|
|
struct nouveau_oclass *, int, void **);
|
|
void nouveau_mxm_destroy(struct nouveau_mxm *);
|
|
|
|
#define _nouveau_mxm_dtor _nouveau_subdev_dtor
|
|
#define _nouveau_mxm_init _nouveau_subdev_init
|
|
#define _nouveau_mxm_fini _nouveau_subdev_fini
|
|
|
|
extern struct nouveau_oclass nv50_mxm_oclass;
|
|
|
|
#endif
|