hfi1_ioctl.h revision 525ce914edf136d2bd02ac8c404d56c52e737f4d
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX__HFI1_IOCTL_H
20#define _LINUX__HFI1_IOCTL_H
21#include <linux/types.h>
22struct hfi1_user_info {
23  __u32 userversion;
24  __u32 pad;
25  __u16 subctxt_cnt;
26  __u16 subctxt_id;
27  __u8 uuid[16];
28};
29struct hfi1_ctxt_info {
30  __u64 runtime_flags;
31  __u32 rcvegr_size;
32  __u16 num_active;
33  __u16 unit;
34  __u16 ctxt;
35  __u16 subctxt;
36  __u16 rcvtids;
37  __u16 credits;
38  __u16 numa_node;
39  __u16 rec_cpu;
40  __u16 send_ctxt;
41  __u16 egrtids;
42  __u16 rcvhdrq_cnt;
43  __u16 rcvhdrq_entsize;
44  __u16 sdma_ring_size;
45};
46struct hfi1_tid_info {
47  __u64 vaddr;
48  __u64 tidlist;
49  __u32 tidcnt;
50  __u32 length;
51};
52struct hfi1_base_info {
53  __u32 hw_version;
54  __u32 sw_version;
55  __u16 jkey;
56  __u16 padding1;
57  __u32 bthqp;
58  __u64 sc_credits_addr;
59  __u64 pio_bufbase_sop;
60  __u64 pio_bufbase;
61  __u64 rcvhdr_bufbase;
62  __u64 rcvegr_bufbase;
63  __u64 sdma_comp_bufbase;
64  __u64 user_regbase;
65  __u64 events_bufbase;
66  __u64 status_bufbase;
67  __u64 rcvhdrtail_base;
68  __u64 subctxt_uregbase;
69  __u64 subctxt_rcvegrbuf;
70  __u64 subctxt_rcvhdrbuf;
71};
72#endif
73