event.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef __NVIF_EVENT_H__
  2. #define __NVIF_EVENT_H__
  3. struct nvif_notify_req_v0 {
  4. __u8 version;
  5. __u8 reply;
  6. __u8 pad02[5];
  7. #define NVIF_NOTIFY_V0_ROUTE_NVIF 0x00
  8. __u8 route;
  9. __u64 token; /* must be unique */
  10. __u8 data[]; /* request data (below) */
  11. };
  12. struct nvif_notify_rep_v0 {
  13. __u8 version;
  14. __u8 pad01[6];
  15. __u8 route;
  16. __u64 token;
  17. __u8 data[]; /* reply data (below) */
  18. };
  19. struct nvif_notify_head_req_v0 {
  20. /* nvif_notify_req ... */
  21. __u8 version;
  22. __u8 head;
  23. __u8 pad02[6];
  24. };
  25. struct nvif_notify_head_rep_v0 {
  26. /* nvif_notify_rep ... */
  27. __u8 version;
  28. __u8 pad01[7];
  29. };
  30. struct nvif_notify_conn_req_v0 {
  31. /* nvif_notify_req ... */
  32. __u8 version;
  33. #define NVIF_NOTIFY_CONN_V0_PLUG 0x01
  34. #define NVIF_NOTIFY_CONN_V0_UNPLUG 0x02
  35. #define NVIF_NOTIFY_CONN_V0_IRQ 0x04
  36. #define NVIF_NOTIFY_CONN_V0_ANY 0x07
  37. __u8 mask;
  38. __u8 conn;
  39. __u8 pad03[5];
  40. };
  41. struct nvif_notify_conn_rep_v0 {
  42. /* nvif_notify_rep ... */
  43. __u8 version;
  44. __u8 mask;
  45. __u8 pad02[6];
  46. };
  47. struct nvif_notify_uevent_req {
  48. /* nvif_notify_req ... */
  49. };
  50. struct nvif_notify_uevent_rep {
  51. /* nvif_notify_rep ... */
  52. };
  53. #endif