client.h 819 B

12345678910111213141516171819202122232425262728
  1. #ifndef __NVIF_CLIENT_H__
  2. #define __NVIF_CLIENT_H__
  3. #include <nvif/object.h>
  4. struct nvif_client {
  5. struct nvif_object object;
  6. const struct nvif_driver *driver;
  7. u64 version;
  8. u8 route;
  9. bool super;
  10. };
  11. int nvif_client_init(const char *drv, const char *name, u64 device,
  12. const char *cfg, const char *dbg,
  13. struct nvif_client *);
  14. void nvif_client_fini(struct nvif_client *);
  15. int nvif_client_ioctl(struct nvif_client *, void *, u32);
  16. int nvif_client_suspend(struct nvif_client *);
  17. int nvif_client_resume(struct nvif_client *);
  18. /*XXX*/
  19. #include <core/client.h>
  20. #define nvxx_client(a) ({ \
  21. struct nvif_client *_client = (a); \
  22. (struct nvkm_client *)_client->object.priv; \
  23. })
  24. #endif