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