client.h 522 Bytes
Newer Older
1
/* SPDX-License-Identifier: MIT */
2 3 4
#ifndef __NVIF_CLIENT_H__
#define __NVIF_CLIENT_H__

5
#include <nvif/object.h>
6 7

struct nvif_client {
8
	struct nvif_object object;
9
	const struct nvif_driver *driver;
10
	u64 version;
11 12
};

13
int  nvif_client_ctor(struct nvif_client *parent, const char *name, struct nvif_client *);
14
void nvif_client_dtor(struct nvif_client *);
15 16 17 18 19 20
int  nvif_client_ioctl(struct nvif_client *, void *, u32);
int  nvif_client_suspend(struct nvif_client *);
int  nvif_client_resume(struct nvif_client *);

/*XXX*/
#endif