Debian Codegraph @

debian/missing-sources/linux-raw-sys/src/powerpc64/xdp.rs

raw
1 /* automatically generated by rust-bindgen 0.72.1 */
2
3 pub type __s8 = crate::ctypes::c_schar;
4 pub type __u8 = crate::ctypes::c_uchar;
5 pub type __s16 = crate::ctypes::c_short;
6 pub type __u16 = crate::ctypes::c_ushort;
7 pub type __s32 = crate::ctypes::c_int;
8 pub type __u32 = crate::ctypes::c_uint;
9 pub type __s64 = crate::ctypes::c_long;
10 pub type __u64 = crate::ctypes::c_ulong;
11 pub type __kernel_key_t = crate::ctypes::c_int;
12 pub type __kernel_mqd_t = crate::ctypes::c_int;
13 pub type __kernel_old_dev_t = crate::ctypes::c_ulong;
14 pub type __kernel_long_t = crate::ctypes::c_long;
15 pub type __kernel_ulong_t = crate::ctypes::c_ulong;
16 pub type __kernel_ino_t = __kernel_ulong_t;
17 pub type __kernel_mode_t = crate::ctypes::c_uint;
18 pub type __kernel_pid_t = crate::ctypes::c_int;
19 pub type __kernel_ipc_pid_t = crate::ctypes::c_int;
20 pub type __kernel_uid_t = crate::ctypes::c_uint;
21 pub type __kernel_gid_t = crate::ctypes::c_uint;
22 pub type __kernel_suseconds_t = __kernel_long_t;
23 pub type __kernel_daddr_t = crate::ctypes::c_int;
24 pub type __kernel_uid32_t = crate::ctypes::c_uint;
25 pub type __kernel_gid32_t = crate::ctypes::c_uint;
26 pub type __kernel_old_uid_t = __kernel_uid_t;
27 pub type __kernel_old_gid_t = __kernel_gid_t;
28 pub type __kernel_size_t = __kernel_ulong_t;
29 pub type __kernel_ssize_t = __kernel_long_t;
30 pub type __kernel_ptrdiff_t = __kernel_long_t;
31 pub type __kernel_off_t = __kernel_long_t;
32 pub type __kernel_loff_t = crate::ctypes::c_longlong;
33 pub type __kernel_old_time_t = __kernel_long_t;
34 pub type __kernel_time_t = __kernel_long_t;
35 pub type __kernel_time64_t = crate::ctypes::c_longlong;
36 pub type __kernel_clock_t = __kernel_long_t;
37 pub type __kernel_timer_t = crate::ctypes::c_int;
38 pub type __kernel_clockid_t = crate::ctypes::c_int;
39 pub type __kernel_caddr_t = *mut crate::ctypes::c_char;
40 pub type __kernel_uid16_t = crate::ctypes::c_ushort;
41 pub type __kernel_gid16_t = crate::ctypes::c_ushort;
42 pub type __s128 = i128;
43 pub type __u128 = u128;
44 pub type __le16 = __u16;
45 pub type __be16 = __u16;
46 pub type __le32 = __u32;
47 pub type __be32 = __u32;
48 pub type __le64 = __u64;
49 pub type __be64 = __u64;
50 pub type __sum16 = __u16;
51 pub type __wsum = __u32;
52 pub type __poll_t = crate::ctypes::c_uint;
53 #[repr(C)]
54 #[repr(align(16))]
55 #[derive(Debug, Copy, Clone)]
56 pub struct __vector128 {
57 pub u: [__u32; 4usize],
58 }
59 #[repr(C)]
60 #[derive(Debug, Copy, Clone)]
61 pub struct sockaddr_xdp {
62 pub sxdp_family: __u16,
63 pub sxdp_flags: __u16,
64 pub sxdp_ifindex: __u32,
65 pub sxdp_queue_id: __u32,
66 pub sxdp_shared_umem_fd: __u32,
67 }
68 #[repr(C)]
69 #[derive(Debug, Copy, Clone)]
70 pub struct xdp_ring_offset {
71 pub producer: __u64,
72 pub consumer: __u64,
73 pub desc: __u64,
74 pub flags: __u64,
75 }
76 #[repr(C)]
77 #[derive(Debug, Copy, Clone)]
78 pub struct xdp_mmap_offsets {
79 pub rx: xdp_ring_offset,
80 pub tx: xdp_ring_offset,
81 pub fr: xdp_ring_offset,
82 pub cr: xdp_ring_offset,
83 }
84 #[repr(C)]
85 #[derive(Debug, Copy, Clone)]
86 pub struct xdp_umem_reg {
87 pub addr: __u64,
88 pub len: __u64,
89 pub chunk_size: __u32,
90 pub headroom: __u32,
91 pub flags: __u32,
92 pub tx_metadata_len: __u32,
93 }
94 #[repr(C)]
95 #[derive(Debug, Copy, Clone)]
96 pub struct xdp_statistics {
97 pub rx_dropped: __u64,
98 pub rx_invalid_descs: __u64,
99 pub tx_invalid_descs: __u64,
100 pub rx_ring_full: __u64,
101 pub rx_fill_ring_empty_descs: __u64,
102 pub tx_ring_empty_descs: __u64,
103 }
104 #[repr(C)]
105 #[derive(Debug, Copy, Clone)]
106 pub struct xdp_options {
107 pub flags: __u32,
108 }
109 #[repr(C)]
110 #[derive(Copy, Clone)]
111 pub struct xsk_tx_metadata {
112 pub flags: __u64,
113 pub __bindgen_anon_1: xsk_tx_metadata__bindgen_ty_1,
114 }
115 #[repr(C)]
116 #[derive(Debug, Copy, Clone)]
117 pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1 {
118 pub csum_start: __u16,
119 pub csum_offset: __u16,
120 pub launch_time: __u64,
121 }
122 #[repr(C)]
123 #[derive(Debug, Copy, Clone)]
124 pub struct xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2 {
125 pub tx_timestamp: __u64,
126 }
127 #[repr(C)]
128 #[derive(Debug, Copy, Clone)]
129 pub struct xdp_desc {
130 pub addr: __u64,
131 pub len: __u32,
132 pub options: __u32,
133 }
134 #[repr(C)]
135 #[derive(Debug, Copy, Clone)]
136 pub struct xdp_ring_offset_v1 {
137 pub producer: __u64,
138 pub consumer: __u64,
139 pub desc: __u64,
140 }
141 #[repr(C)]
142 #[derive(Debug, Copy, Clone)]
143 pub struct xdp_mmap_offsets_v1 {
144 pub rx: xdp_ring_offset_v1,
145 pub tx: xdp_ring_offset_v1,
146 pub fr: xdp_ring_offset_v1,
147 pub cr: xdp_ring_offset_v1,
148 }
149 #[repr(C)]
150 #[derive(Debug, Copy, Clone)]
151 pub struct xdp_umem_reg_v1 {
152 pub addr: __u64,
153 pub len: __u64,
154 pub chunk_size: __u32,
155 pub headroom: __u32,
156 }
157 #[repr(C)]
158 #[derive(Debug, Copy, Clone)]
159 pub struct xdp_statistics_v1 {
160 pub rx_dropped: __u64,
161 pub rx_invalid_descs: __u64,
162 pub tx_invalid_descs: __u64,
163 }
164 pub const __BITS_PER_LONG_LONG: u32 = 64;
165 pub const XDP_SHARED_UMEM: u32 = 1;
166 pub const XDP_COPY: u32 = 2;
167 pub const XDP_ZEROCOPY: u32 = 4;
168 pub const XDP_USE_NEED_WAKEUP: u32 = 8;
169 pub const XDP_USE_SG: u32 = 16;
170 pub const XDP_UMEM_UNALIGNED_CHUNK_FLAG: u32 = 1;
171 pub const XDP_UMEM_TX_SW_CSUM: u32 = 2;
172 pub const XDP_UMEM_TX_METADATA_LEN: u32 = 4;
173 pub const XDP_RING_NEED_WAKEUP: u32 = 1;
174 pub const XDP_MMAP_OFFSETS: u32 = 1;
175 pub const XDP_RX_RING: u32 = 2;
176 pub const XDP_TX_RING: u32 = 3;
177 pub const XDP_UMEM_REG: u32 = 4;
178 pub const XDP_UMEM_FILL_RING: u32 = 5;
179 pub const XDP_UMEM_COMPLETION_RING: u32 = 6;
180 pub const XDP_STATISTICS: u32 = 7;
181 pub const XDP_OPTIONS: u32 = 8;
182 pub const XDP_OPTIONS_ZEROCOPY: u32 = 1;
183 pub const XDP_PGOFF_RX_RING: u32 = 0;
184 pub const XDP_PGOFF_TX_RING: u32 = 2147483648;
185 pub const XDP_UMEM_PGOFF_FILL_RING: u64 = 4294967296;
186 pub const XDP_UMEM_PGOFF_COMPLETION_RING: u64 = 6442450944;
187 pub const XSK_UNALIGNED_BUF_OFFSET_SHIFT: u32 = 48;
188 pub const XSK_UNALIGNED_BUF_ADDR_MASK: u64 = 281474976710655;
189 pub const XDP_TXMD_FLAGS_TIMESTAMP: u32 = 1;
190 pub const XDP_TXMD_FLAGS_CHECKSUM: u32 = 2;
191 pub const XDP_TXMD_FLAGS_LAUNCH_TIME: u32 = 4;
192 pub const XDP_PKT_CONTD: u32 = 1;
193 pub const XDP_TX_METADATA: u32 = 2;
194 #[repr(C)]
195 #[derive(Copy, Clone)]
196 pub union xsk_tx_metadata__bindgen_ty_1 {
197 pub request: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_1,
198 pub completion: xsk_tx_metadata__bindgen_ty_1__bindgen_ty_2,
199 }