2014-08-10 02:10:21 +08:00
|
|
|
#ifndef __NVIF_CLIENT_H__
|
|
|
|
#define __NVIF_CLIENT_H__
|
|
|
|
|
2015-01-13 20:13:14 +08:00
|
|
|
#include <nvif/object.h>
|
2014-08-10 02:10:21 +08:00
|
|
|
|
|
|
|
struct nvif_client {
|
2015-08-20 12:54:15 +08:00
|
|
|
struct nvif_object object;
|
2014-08-10 02:10:21 +08:00
|
|
|
const struct nvif_driver *driver;
|
2015-08-20 12:54:15 +08:00
|
|
|
u8 route;
|
2014-08-10 02:10:21 +08:00
|
|
|
bool super;
|
|
|
|
};
|
|
|
|
|
2015-08-20 12:54:15 +08:00
|
|
|
int nvif_client_init(const char *drv, const char *name, u64 device,
|
|
|
|
const char *cfg, const char *dbg,
|
2014-08-10 02:10:21 +08:00
|
|
|
struct nvif_client *);
|
|
|
|
void nvif_client_fini(struct nvif_client *);
|
|
|
|
int nvif_client_ioctl(struct nvif_client *, void *, u32);
|
|
|
|
int nvif_client_suspend(struct nvif_client *);
|
|
|
|
int nvif_client_resume(struct nvif_client *);
|
|
|
|
|
|
|
|
/*XXX*/
|
|
|
|
#include <core/client.h>
|
2015-08-20 12:54:15 +08:00
|
|
|
#define nvxx_client(a) ({ \
|
|
|
|
struct nvif_client *_client = (a); \
|
|
|
|
nvkm_client(_client->object.priv); \
|
2014-08-10 02:10:21 +08:00
|
|
|
})
|
|
|
|
#endif
|