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