License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / drivers / gpu / drm / nouveau / include / nvif / client.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
a04d0423
BS
2#ifndef __NVIF_CLIENT_H__
3#define __NVIF_CLIENT_H__
4
c39f472e 5#include <nvif/object.h>
a04d0423
BS
6
7struct nvif_client {
a01ca78c 8 struct nvif_object object;
a04d0423 9 const struct nvif_driver *driver;
99d4d36a 10 u64 version;
a01ca78c 11 u8 route;
a04d0423
BS
12 bool super;
13};
14
04b88677 15int nvif_client_init(struct nvif_client *parent, const char *name, u64 device,
a04d0423
BS
16 struct nvif_client *);
17void nvif_client_fini(struct nvif_client *);
a04d0423
BS
18int nvif_client_ioctl(struct nvif_client *, void *, u32);
19int nvif_client_suspend(struct nvif_client *);
20int nvif_client_resume(struct nvif_client *);
21
22/*XXX*/
23#include <core/client.h>
a01ca78c
BS
24#define nvxx_client(a) ({ \
25 struct nvif_client *_client = (a); \
24bd0930 26 (struct nvkm_client *)_client->object.priv; \
a04d0423 27})
a04d0423 28#endif