Home | History | Annotate | Line # | Download | only in nvif
event.h revision 1.2.2.2
      1 /*	$NetBSD: event.h,v 1.2.2.2 2018/09/06 06:56:23 pgoyette Exp $	*/
      2 
      3 #ifndef __NVIF_EVENT_H__
      4 #define __NVIF_EVENT_H__
      5 
      6 struct nvif_notify_req_v0 {
      7 	__u8  version;
      8 	__u8  reply;
      9 	__u8  pad02[5];
     10 #define NVIF_NOTIFY_V0_ROUTE_NVIF                                          0x00
     11 	__u8  route;
     12 	__u64 token;	/* must be unique */
     13 	__u8  data[];	/* request data (below) */
     14 };
     15 
     16 struct nvif_notify_rep_v0 {
     17 	__u8  version;
     18 	__u8  pad01[6];
     19 	__u8  route;
     20 	__u64 token;
     21 	__u8  data[];	/* reply data (below) */
     22 };
     23 
     24 struct nvif_notify_head_req_v0 {
     25 	/* nvif_notify_req ... */
     26 	__u8  version;
     27 	__u8  head;
     28 	__u8  pad02[6];
     29 };
     30 
     31 struct nvif_notify_head_rep_v0 {
     32 	/* nvif_notify_rep ... */
     33 	__u8  version;
     34 	__u8  pad01[7];
     35 };
     36 
     37 struct nvif_notify_conn_req_v0 {
     38 	/* nvif_notify_req ... */
     39 	__u8  version;
     40 #define NVIF_NOTIFY_CONN_V0_PLUG                                           0x01
     41 #define NVIF_NOTIFY_CONN_V0_UNPLUG                                         0x02
     42 #define NVIF_NOTIFY_CONN_V0_IRQ                                            0x04
     43 #define NVIF_NOTIFY_CONN_V0_ANY                                            0x07
     44 	__u8  mask;
     45 	__u8  conn;
     46 	__u8  pad03[5];
     47 };
     48 
     49 struct nvif_notify_conn_rep_v0 {
     50 	/* nvif_notify_rep ... */
     51 	__u8  version;
     52 	__u8  mask;
     53 	__u8  pad02[6];
     54 };
     55 
     56 struct nvif_notify_uevent_req {
     57 	/* nvif_notify_req ... */
     58 };
     59 
     60 struct nvif_notify_uevent_rep {
     61 	/* nvif_notify_rep ... */
     62 };
     63 
     64 #endif
     65