mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
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 <[email protected]>
Acked-by: Emil Velikov <[email protected]>
Acked-by: Karol Herbst <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
28 lines
919 B
C
28 lines
919 B
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef __NVKM_TIMER_PRIV_H__
|
|
#define __NVKM_TIMER_PRIV_H__
|
|
#define nvkm_timer(p) container_of((p), struct nvkm_timer, subdev)
|
|
#include <subdev/timer.h>
|
|
|
|
int nvkm_timer_new_(const struct nvkm_timer_func *, struct nvkm_device *,
|
|
int index, struct nvkm_timer **);
|
|
|
|
struct nvkm_timer_func {
|
|
void (*init)(struct nvkm_timer *);
|
|
void (*intr)(struct nvkm_timer *);
|
|
u64 (*read)(struct nvkm_timer *);
|
|
void (*time)(struct nvkm_timer *, u64 time);
|
|
void (*alarm_init)(struct nvkm_timer *, u32 time);
|
|
void (*alarm_fini)(struct nvkm_timer *);
|
|
};
|
|
|
|
void nvkm_timer_alarm_trigger(struct nvkm_timer *);
|
|
|
|
void nv04_timer_fini(struct nvkm_timer *);
|
|
void nv04_timer_intr(struct nvkm_timer *);
|
|
void nv04_timer_time(struct nvkm_timer *, u64);
|
|
u64 nv04_timer_read(struct nvkm_timer *);
|
|
void nv04_timer_alarm_init(struct nvkm_timer *, u32);
|
|
void nv04_timer_alarm_fini(struct nvkm_timer *);
|
|
#endif
|