posix-clock: Fix return code on the poll method's error path
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / include / nvif / client.h
blob4a7f6f7b836d69dc587d2c1acb0c2f7211812452
1 #ifndef __NVIF_CLIENT_H__
2 #define __NVIF_CLIENT_H__
4 #include <nvif/object.h>
6 struct nvif_client {
7 struct nvif_object object;
8 const struct nvif_driver *driver;
9 u64 version;
10 u8 route;
11 bool super;
14 int nvif_client_init(const char *drv, const char *name, u64 device,
15 const char *cfg, const char *dbg,
16 struct nvif_client *);
17 void nvif_client_fini(struct nvif_client *);
18 int nvif_client_ioctl(struct nvif_client *, void *, u32);
19 int nvif_client_suspend(struct nvif_client *);
20 int nvif_client_resume(struct nvif_client *);
22 /*XXX*/
23 #include <core/client.h>
24 #define nvxx_client(a) ({ \
25 struct nvif_client *_client = (a); \
26 (struct nvkm_client *)_client->object.priv; \
28 #endif