drm/nouveau/nvif: simplify and tidy library interfaces
[deliverable/linux.git] / drivers / gpu / drm / nouveau / include / nvif / client.h
CommitLineData
a04d0423
BS
1#ifndef __NVIF_CLIENT_H__
2#define __NVIF_CLIENT_H__
3
c39f472e 4#include <nvif/object.h>
a04d0423
BS
5
6struct nvif_client {
a01ca78c 7 struct nvif_object object;
a04d0423 8 const struct nvif_driver *driver;
a01ca78c 9 u8 route;
a04d0423
BS
10 bool super;
11};
12
a01ca78c
BS
13int nvif_client_init(const char *drv, const char *name, u64 device,
14 const char *cfg, const char *dbg,
a04d0423
BS
15 struct nvif_client *);
16void nvif_client_fini(struct nvif_client *);
a04d0423
BS
17int nvif_client_ioctl(struct nvif_client *, void *, u32);
18int nvif_client_suspend(struct nvif_client *);
19int nvif_client_resume(struct nvif_client *);
20
21/*XXX*/
22#include <core/client.h>
a01ca78c
BS
23#define nvxx_client(a) ({ \
24 struct nvif_client *_client = (a); \
25 nvkm_client(_client->object.priv); \
a04d0423 26})
a04d0423 27#endif
This page took 0.104745 seconds and 5 git commands to generate.