mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
b7019ac550
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>
35 lines
1003 B
C
35 lines
1003 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVIF_NOTIFY_H__
|
|
#define __NVIF_NOTIFY_H__
|
|
|
|
struct nvif_notify {
|
|
struct nvif_object *object;
|
|
int index;
|
|
|
|
#define NVIF_NOTIFY_USER 0
|
|
#define NVIF_NOTIFY_WORK 1
|
|
unsigned long flags;
|
|
atomic_t putcnt;
|
|
void (*dtor)(struct nvif_notify *);
|
|
#define NVIF_NOTIFY_DROP 0
|
|
#define NVIF_NOTIFY_KEEP 1
|
|
int (*func)(struct nvif_notify *);
|
|
|
|
/* this is const for a *very* good reason - the data might be on the
|
|
* stack from an irq handler. if you're not nvif/notify.c then you
|
|
* should probably think twice before casting it away...
|
|
*/
|
|
const void *data;
|
|
u32 size;
|
|
struct work_struct work;
|
|
};
|
|
|
|
int nvif_notify_init(struct nvif_object *, int (*func)(struct nvif_notify *),
|
|
bool work, u8 type, void *data, u32 size, u32 reply,
|
|
struct nvif_notify *);
|
|
int nvif_notify_fini(struct nvif_notify *);
|
|
int nvif_notify_get(struct nvif_notify *);
|
|
int nvif_notify_put(struct nvif_notify *);
|
|
int nvif_notify(const void *, u32, const void *, u32);
|
|
#endif
|