| .. | .. |
|---|
| 1 | | -/* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 1 | +/* SPDX-License-Identifier: MIT */ |
|---|
| 2 | 2 | #ifndef __NVIF_NOTIFY_H__ |
|---|
| 3 | 3 | #define __NVIF_NOTIFY_H__ |
|---|
| 4 | 4 | |
|---|
| 5 | 5 | struct nvif_notify { |
|---|
| 6 | 6 | struct nvif_object *object; |
|---|
| 7 | + const char *name; |
|---|
| 7 | 8 | int index; |
|---|
| 8 | 9 | |
|---|
| 9 | 10 | #define NVIF_NOTIFY_USER 0 |
|---|
| .. | .. |
|---|
| 24 | 25 | struct work_struct work; |
|---|
| 25 | 26 | }; |
|---|
| 26 | 27 | |
|---|
| 27 | | -int nvif_notify_init(struct nvif_object *, int (*func)(struct nvif_notify *), |
|---|
| 28 | | - bool work, u8 type, void *data, u32 size, u32 reply, |
|---|
| 29 | | - struct nvif_notify *); |
|---|
| 30 | | -int nvif_notify_fini(struct nvif_notify *); |
|---|
| 28 | +int nvif_notify_ctor(struct nvif_object *, const char *name, |
|---|
| 29 | + int (*func)(struct nvif_notify *), bool work, u8 type, |
|---|
| 30 | + void *data, u32 size, u32 reply, struct nvif_notify *); |
|---|
| 31 | +int nvif_notify_dtor(struct nvif_notify *); |
|---|
| 31 | 32 | int nvif_notify_get(struct nvif_notify *); |
|---|
| 32 | 33 | int nvif_notify_put(struct nvif_notify *); |
|---|
| 33 | 34 | int nvif_notify(const void *, u32, const void *, u32); |
|---|