Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 #ifndef __NVIF_EVENT_H__
0003 #define __NVIF_EVENT_H__
0004 
0005 struct nvif_notify_req_v0 {
0006     __u8  version;
0007     __u8  reply;
0008     __u8  pad02[5];
0009 #define NVIF_NOTIFY_V0_ROUTE_NVIF                                          0x00
0010     __u8  route;
0011     __u64 token;    /* must be unique */
0012     __u8  data[];   /* request data (below) */
0013 };
0014 
0015 struct nvif_notify_rep_v0 {
0016     __u8  version;
0017     __u8  pad01[6];
0018     __u8  route;
0019     __u64 token;
0020     __u8  data[];   /* reply data (below) */
0021 };
0022 
0023 struct nvif_notify_head_req_v0 {
0024     /* nvif_notify_req ... */
0025     __u8  version;
0026     __u8  head;
0027     __u8  pad02[6];
0028 };
0029 
0030 struct nvif_notify_head_rep_v0 {
0031     /* nvif_notify_rep ... */
0032     __u8  version;
0033     __u8  pad01[7];
0034 };
0035 
0036 struct nvif_notify_conn_req_v0 {
0037     /* nvif_notify_req ... */
0038     __u8  version;
0039 #define NVIF_NOTIFY_CONN_V0_PLUG                                           0x01
0040 #define NVIF_NOTIFY_CONN_V0_UNPLUG                                         0x02
0041 #define NVIF_NOTIFY_CONN_V0_IRQ                                            0x04
0042 #define NVIF_NOTIFY_CONN_V0_ANY                                            0x07
0043     __u8  mask;
0044     __u8  conn;
0045     __u8  pad03[5];
0046 };
0047 
0048 struct nvif_notify_conn_rep_v0 {
0049     /* nvif_notify_rep ... */
0050     __u8  version;
0051     __u8  mask;
0052     __u8  pad02[6];
0053 };
0054 
0055 struct nvif_notify_uevent_req {
0056     /* nvif_notify_req ... */
0057 };
0058 
0059 struct nvif_notify_uevent_rep {
0060     /* nvif_notify_rep ... */
0061 };
0062 
0063 #endif