1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _LINUX__HFI1_IOCTL_H 8 #define _LINUX__HFI1_IOCTL_H 9 #include <linux/types.h> 10 struct hfi1_user_info { 11 __u32 userversion; 12 __u32 pad; 13 __u16 subctxt_cnt; 14 __u16 subctxt_id; 15 __u8 uuid[16]; 16 }; 17 struct hfi1_ctxt_info { 18 __aligned_u64 runtime_flags; 19 __u32 rcvegr_size; 20 __u16 num_active; 21 __u16 unit; 22 __u16 ctxt; 23 __u16 subctxt; 24 __u16 rcvtids; 25 __u16 credits; 26 __u16 numa_node; 27 __u16 rec_cpu; 28 __u16 send_ctxt; 29 __u16 egrtids; 30 __u16 rcvhdrq_cnt; 31 __u16 rcvhdrq_entsize; 32 __u16 sdma_ring_size; 33 }; 34 struct hfi1_tid_info { 35 __aligned_u64 vaddr; 36 __aligned_u64 tidlist; 37 __u32 tidcnt; 38 __u32 length; 39 }; 40 struct hfi1_base_info { 41 __u32 hw_version; 42 __u32 sw_version; 43 __u16 jkey; 44 __u16 padding1; 45 __u32 bthqp; 46 __aligned_u64 sc_credits_addr; 47 __aligned_u64 pio_bufbase_sop; 48 __aligned_u64 pio_bufbase; 49 __aligned_u64 rcvhdr_bufbase; 50 __aligned_u64 rcvegr_bufbase; 51 __aligned_u64 sdma_comp_bufbase; 52 __aligned_u64 user_regbase; 53 __aligned_u64 events_bufbase; 54 __aligned_u64 status_bufbase; 55 __aligned_u64 rcvhdrtail_base; 56 __aligned_u64 subctxt_uregbase; 57 __aligned_u64 subctxt_rcvegrbuf; 58 __aligned_u64 subctxt_rcvhdrbuf; 59 }; 60 #endif 61