The bulk SPDX addition made all these files into GPL-2.0 licensed files.
However the remainder of the project is MIT-licensed, these files
(primarily header files) were simply missing the boiler plate and got
caught up in the global update.
Fixes: b24413180f
(License cleanup: add SPDX GPL-2.0 license identifier to files with no license)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
27 lines
892 B
C
27 lines
892 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVIF_DRIVER_H__
|
|
#define __NVIF_DRIVER_H__
|
|
#include <nvif/os.h>
|
|
struct nvif_client;
|
|
|
|
struct nvif_driver {
|
|
const char *name;
|
|
int (*init)(const char *name, u64 device, const char *cfg,
|
|
const char *dbg, void **priv);
|
|
void (*fini)(void *priv);
|
|
int (*suspend)(void *priv);
|
|
int (*resume)(void *priv);
|
|
int (*ioctl)(void *priv, bool super, void *data, u32 size, void **hack);
|
|
void __iomem *(*map)(void *priv, u64 handle, u32 size);
|
|
void (*unmap)(void *priv, void __iomem *ptr, u32 size);
|
|
bool keep;
|
|
};
|
|
|
|
int nvif_driver_init(const char *drv, const char *cfg, const char *dbg,
|
|
const char *name, u64 device, struct nvif_client *);
|
|
|
|
extern const struct nvif_driver nvif_driver_nvkm;
|
|
extern const struct nvif_driver nvif_driver_drm;
|
|
extern const struct nvif_driver nvif_driver_lib;
|
|
extern const struct nvif_driver nvif_driver_null;
|
|
#endif
|