# structs

name: passwd
include_file: /usr/include/pwd.h
nasm_code:
; from header /usr/include/pwd.h
struc passwd
    .pw_name         resb 8
    .pw_passwd       resb 8
    .pw_uid          resb 4
    .pw_gid          resb 4
    .pw_gecos        resb 8
    .pw_dir          resb 8
    .pw_shell        resb 8
endstruc
%define struc_passwd_size 48


name: ip6_hdr
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_hdr
    .ip6_ctlun       resb 8 ; union None
    .ip6_src         resb 16 ; struc in6_addr
    .ip6_dst         resb 16 ; struc in6_addr
endstruc
%define struc_ip6_hdr_size 40


name: ip6_hdrctl
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_hdrctl
    .ip6_un1_flow    resb 4
    .ip6_un1_plen    resb 2
    .ip6_un1_nxt     resb 1
    .ip6_un1_hlim    resb 1
endstruc
%define struc_ip6_hdrctl_size 8


name: ip6_ext
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_ext
    .ip6e_nxt        resb 1
    .ip6e_len        resb 1
endstruc
%define struc_ip6_ext_size 2


name: ip6_hbh
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_hbh
    .ip6h_nxt        resb 1
    .ip6h_len        resb 1
endstruc
%define struc_ip6_hbh_size 2


name: ip6_dest
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_dest
    .ip6d_nxt        resb 1
    .ip6d_len        resb 1
endstruc
%define struc_ip6_dest_size 2


name: ip6_rthdr
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_rthdr
    .ip6r_nxt        resb 1
    .ip6r_len        resb 1
    .ip6r_type       resb 1
    .ip6r_segleft    resb 1
endstruc
%define struc_ip6_rthdr_size 4


name: ip6_rthdr0
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_rthdr0
    .ip6r0_nxt       resb 1
    .ip6r0_len       resb 1
    .ip6r0_type      resb 1
    .ip6r0_segleft   resb 1
    .ip6r0_reserved  resb 1
    .ip6r0_slmap     resb 3 ; None
    .ip6r0_addr      resb 0 ; None
endstruc
%define struc_ip6_rthdr0_size 8


name: ip6_frag
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_frag
    .ip6f_nxt        resb 1
    .ip6f_reserved   resb 1
    .ip6f_offlg      resb 2
    .ip6f_ident      resb 4
endstruc
%define struc_ip6_frag_size 8


name: ip6_opt
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_opt
    .ip6o_type       resb 1
    .ip6o_len        resb 1
endstruc
%define struc_ip6_opt_size 2


name: ip6_opt_jumbo
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_opt_jumbo
    .ip6oj_type      resb 1
    .ip6oj_len       resb 1
    .ip6oj_jumbo_len resb 4 ; None
endstruc
%define struc_ip6_opt_jumbo_size 6


name: ip6_opt_nsap
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_opt_nsap
    .ip6on_type      resb 1
    .ip6on_len       resb 1
    .ip6on_src_nsap_ resb 1
    .ip6on_dst_nsap_ resb 1
endstruc
%define struc_ip6_opt_nsap_size 4


name: ip6_opt_tunnel
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_opt_tunnel
    .ip6ot_type      resb 1
    .ip6ot_len       resb 1
    .ip6ot_encap_lim resb 1
endstruc
%define struc_ip6_opt_tunnel_size 3


name: ip6_opt_router
include_file: /usr/include/netinet/ip6.h
nasm_code:
; from header /usr/include/netinet/ip6.h
struc ip6_opt_router
    .ip6or_type      resb 1
    .ip6or_len       resb 1
    .ip6or_value     resb 2 ; None
endstruc
%define struc_ip6_opt_router_size 4


name: udphdr
include_file: /usr/include/netinet/udp.h
nasm_code:
; from header /usr/include/netinet/udp.h
struc udphdr
    .uh_sport        resb 2
    .uh_dport        resb 2
    .uh_ulen         resb 2
    .uh_sum          resb 2
endstruc
%define struc_udphdr_size 8


name: igmp
include_file: /usr/include/netinet/igmp.h
nasm_code:
; from header /usr/include/netinet/igmp.h
struc igmp
    .igmp_type       resb 1
    .igmp_code       resb 1
    .igmp_cksum      resb 2
    .igmp_group      resb 4 ; struc in_addr
endstruc
%define struc_igmp_size 8


name: icmp6_filter
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc icmp6_filter
    .icmp6_filt      resb 32 ; None
endstruc
%define struc_icmp6_filter_size 32


name: icmp6_hdr
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc icmp6_hdr
    .icmp6_type      resb 1
    .icmp6_code      resb 1
    .icmp6_cksum     resb 2
    .icmp6_dataun    resb 4 ; union None
endstruc
%define struc_icmp6_hdr_size 8


name: nd_router_solicit
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc nd_router_solicit
    .nd_rs_hdr       resb 8 ; struc icmp6_hdr
endstruc
%define struc_nd_router_solicit_size 8


name: nd_router_advert
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc nd_router_advert
    .nd_ra_hdr       resb 8 ; struc icmp6_hdr
    .nd_ra_reachable resb 4
    .nd_ra_retransmi resb 4
endstruc
%define struc_nd_router_advert_size 16


name: nd_neighbor_solicit
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc nd_neighbor_solicit
    .nd_ns_hdr       resb 8 ; struc icmp6_hdr
    .nd_ns_target    resb 16 ; struc in6_addr
endstruc
%define struc_nd_neighbor_solicit_size 24


name: nd_neighbor_advert
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc nd_neighbor_advert
    .nd_na_hdr       resb 8 ; struc icmp6_hdr
    .nd_na_target    resb 16 ; struc in6_addr
endstruc
%define struc_nd_neighbor_advert_size 24


name: nd_redirect
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc nd_redirect
    .nd_rd_hdr       resb 8 ; struc icmp6_hdr
    .nd_rd_target    resb 16 ; struc in6_addr
    .nd_rd_dst       resb 16 ; struc in6_addr
endstruc
%define struc_nd_redirect_size 40


name: nd_opt_hdr
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc nd_opt_hdr
    .nd_opt_type     resb 1
    .nd_opt_len      resb 1
endstruc
%define struc_nd_opt_hdr_size 2


name: nd_opt_prefix_info
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc nd_opt_prefix_info
    .nd_opt_pi_type  resb 1
    .nd_opt_pi_len   resb 1
    .nd_opt_pi_prefi resb 1
    .nd_opt_pi_flags resb 1
    .nd_opt_pi_valid resb 4
    .nd_opt_pi_prefe resb 4
    .nd_opt_pi_reser resb 4
    .nd_opt_pi_prefi resb 16 ; struc in6_addr
endstruc
%define struc_nd_opt_prefix_info_size 32


name: nd_opt_rd_hdr
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc nd_opt_rd_hdr
    .nd_opt_rh_type  resb 1
    .nd_opt_rh_len   resb 1
    .nd_opt_rh_reser resb 2
    .nd_opt_rh_reser resb 4
endstruc
%define struc_nd_opt_rd_hdr_size 8


name: nd_opt_mtu
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc nd_opt_mtu
    .nd_opt_mtu_type resb 1
    .nd_opt_mtu_len  resb 1
    .nd_opt_mtu_rese resb 2
    .nd_opt_mtu_mtu  resb 4
endstruc
%define struc_nd_opt_mtu_size 8


name: mld_hdr
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc mld_hdr
    .mld_icmp6_hdr   resb 8 ; struc icmp6_hdr
    .mld_addr        resb 16 ; struc in6_addr
endstruc
%define struc_mld_hdr_size 24


name: icmp6_router_renum
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc icmp6_router_renum
    .rr_hdr          resb 8 ; struc icmp6_hdr
    .rr_segnum       resb 1
    .rr_flags        resb 1
    .rr_maxdelay     resb 2
    .rr_reserved     resb 4
endstruc
%define struc_icmp6_router_renum_size 16


name: rr_pco_match
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc rr_pco_match
    .rpm_code        resb 1
    .rpm_len         resb 1
    .rpm_ordinal     resb 1
    .rpm_matchlen    resb 1
    .rpm_minlen      resb 1
    .rpm_maxlen      resb 1
    .rpm_reserved    resb 2
    .rpm_prefix      resb 16 ; struc in6_addr
endstruc
%define struc_rr_pco_match_size 24


name: rr_pco_use
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc rr_pco_use
    .rpu_uselen      resb 1
    .rpu_keeplen     resb 1
    .rpu_ramask      resb 1
    .rpu_raflags     resb 1
    .rpu_vltime      resb 4
    .rpu_pltime      resb 4
    .rpu_flags       resb 4
    .rpu_prefix      resb 16 ; struc in6_addr
endstruc
%define struc_rr_pco_use_size 32


name: rr_result
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc rr_result
    .rrr_flags       resb 2
    .rrr_ordinal     resb 1
    .rrr_matchedlen  resb 1
    .rrr_ifid        resb 4
    .rrr_prefix      resb 16 ; struc in6_addr
endstruc
%define struc_rr_result_size 24


name: nd_opt_adv_interval
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc nd_opt_adv_interval
    .nd_opt_adv_inte resb 1
    .nd_opt_adv_inte resb 1
    .nd_opt_adv_inte resb 2
    .nd_opt_adv_inte resb 4
endstruc
%define struc_nd_opt_adv_interval_size 8


name: nd_opt_home_agent_info
include_file: /usr/include/netinet/icmp6.h
nasm_code:
; from header /usr/include/netinet/icmp6.h
struc nd_opt_home_agent_info
    .nd_opt_home_age resb 1
    .nd_opt_home_age resb 1
    .nd_opt_home_age resb 2
    .nd_opt_home_age resb 2
    .nd_opt_home_age resb 2
endstruc
%define struc_nd_opt_home_agent_info_size 8


name: tcphdr
include_file: /usr/include/netinet/tcp.h
nasm_code:
; from header /usr/include/netinet/tcp.h
struc tcphdr
    .th_sport        resb 2
    .th_dport        resb 2
    .th_seq          resb 4
    .th_ack          resb 4
    .th_x2           resb 1
    .th_off          resb 1
    .th_flags        resb 1
    .th_win          resb 2
    .th_sum          resb 2
    .th_urp          resb 2
endstruc
%define struc_tcphdr_size 20


name: ethhdr
include_file: /usr/include/netinet/if_ether.h
nasm_code:
; from header /usr/include/netinet/if_ether.h
struc ethhdr
    .h_dest          resb 6 ; None
    .h_source        resb 6 ; None
    .h_proto         resb 2
endstruc
%define struc_ethhdr_size 14


name: timestamp
include_file: /usr/include/netinet/ip.h
nasm_code:
; from header /usr/include/netinet/ip.h
struc timestamp
    .len             resb 1
    .ptr             resb 1
    .flags           resb 4
    .overflow        resb 4
    .data            resb 36 ; None
endstruc
%define struc_timestamp_size 40


name: iphdr
include_file: /usr/include/netinet/ip.h
nasm_code:
; from header /usr/include/netinet/ip.h
struc iphdr
    .ihl             resb 4
    .version         resb 4
    .tos             resb 1
    .tot_len         resb 2
    .id              resb 2
    .frag_off        resb 2
    .ttl             resb 1
    .protocol        resb 1
    .check           resb 2
    .saddr           resb 4
    .daddr           resb 4
endstruc
%define struc_iphdr_size 20


name: ip
include_file: /usr/include/netinet/ip.h
nasm_code:
; from header /usr/include/netinet/ip.h
struc ip
    .ip_hl           resb 4
    .ip_v            resb 4
    .ip_tos          resb 1
    .ip_len          resb 2
    .ip_id           resb 2
    .ip_off          resb 2
    .ip_ttl          resb 1
    .ip_p            resb 1
    .ip_sum          resb 2
    .ip_src          resb 4 ; struc in_addr
    .ip_dst          resb 4 ; struc in_addr
endstruc
%define struc_ip_size 20


name: ip_timestamp
include_file: /usr/include/netinet/ip.h
nasm_code:
; from header /usr/include/netinet/ip.h
struc ip_timestamp
    .ipt_code        resb 1
    .ipt_len         resb 1
    .ipt_ptr         resb 1
    .ipt_flg         resb 4
    .ipt_oflw        resb 4
    .data            resb 36 ; None
endstruc
%define struc_ip_timestamp_size 40


name: icmphdr
include_file: /usr/include/netinet/ip_icmp.h
nasm_code:
; from header /usr/include/netinet/ip_icmp.h
struc icmphdr
    .type            resb 1
    .code            resb 1
    .checksum        resb 2
    .un              resb 4 ; union None
endstruc
%define struc_icmphdr_size 8


name: icmp_ra_addr
include_file: /usr/include/netinet/ip_icmp.h
nasm_code:
; from header /usr/include/netinet/ip_icmp.h
struc icmp_ra_addr
    .ira_addr        resb 4
    .ira_preference  resb 4
endstruc
%define struc_icmp_ra_addr_size 8


name: icmp
include_file: /usr/include/netinet/ip_icmp.h
nasm_code:
; from header /usr/include/netinet/ip_icmp.h
struc icmp
    .icmp_type       resb 1
    .icmp_code       resb 1
    .icmp_cksum      resb 2
    .icmp_hun        resb 4 ; union None
    .icmp_dun        resb 20 ; union None
endstruc
%define struc_icmp_size 28


name: ih_idseq
include_file: /usr/include/netinet/ip_icmp.h
nasm_code:
; from header /usr/include/netinet/ip_icmp.h
struc ih_idseq
    .icd_id          resb 2
    .icd_seq         resb 2
endstruc
%define struc_ih_idseq_size 4


name: ih_pmtu
include_file: /usr/include/netinet/ip_icmp.h
nasm_code:
; from header /usr/include/netinet/ip_icmp.h
struc ih_pmtu
    .ipm_void        resb 2
    .ipm_nextmtu     resb 2
endstruc
%define struc_ih_pmtu_size 4


name: ih_rtradv
include_file: /usr/include/netinet/ip_icmp.h
nasm_code:
; from header /usr/include/netinet/ip_icmp.h
struc ih_rtradv
    .irt_num_addrs   resb 1
    .irt_wpa         resb 1
    .irt_lifetime    resb 2
endstruc
%define struc_ih_rtradv_size 4


name: in_addr
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc in_addr
    .s_addr          resb 4
endstruc
%define struc_in_addr_size 4


name: sockaddr_in
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc sockaddr_in
    .sin_family      resb 2
    .sin_port        resb 2
    .sin_addr        resb 4 ; struc in_addr
    .sin_zero        resb 8 ; None
endstruc
%define struc_sockaddr_in_size 16


name: in6_addr
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc in6_addr
    .__in6_union     resb 16 ; union None
endstruc
%define struc_in6_addr_size 16


name: sockaddr_in6
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc sockaddr_in6
    .sin6_family     resb 2
    .sin6_port       resb 2
    .sin6_flowinfo   resb 4
    .sin6_addr       resb 16 ; struc in6_addr
    .sin6_scope_id   resb 4
endstruc
%define struc_sockaddr_in6_size 28


name: ipv6_mreq
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc ipv6_mreq
    .ipv6mr_multiadd resb 16 ; struc in6_addr
    .ipv6mr_interfac resb 4
endstruc
%define struc_ipv6_mreq_size 20


name: ip_opts
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc ip_opts
    .ip_dst          resb 4 ; struc in_addr
    .ip_opts         resb 40 ; None
endstruc
%define struc_ip_opts_size 44


name: ip_mreq
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc ip_mreq
    .imr_multiaddr   resb 4 ; struc in_addr
    .imr_interface   resb 4 ; struc in_addr
endstruc
%define struc_ip_mreq_size 8


name: ip_mreqn
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc ip_mreqn
    .imr_multiaddr   resb 4 ; struc in_addr
    .imr_address     resb 4 ; struc in_addr
    .imr_ifindex     resb 4
endstruc
%define struc_ip_mreqn_size 12


name: ip_mreq_source
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc ip_mreq_source
    .imr_multiaddr   resb 4 ; struc in_addr
    .imr_interface   resb 4 ; struc in_addr
    .imr_sourceaddr  resb 4 ; struc in_addr
endstruc
%define struc_ip_mreq_source_size 12


name: ip_msfilter
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc ip_msfilter
    .imsf_multiaddr  resb 4 ; struc in_addr
    .imsf_interface  resb 4 ; struc in_addr
    .imsf_fmode      resb 4
    .imsf_numsrc     resb 4
    .imsf_slist      resb 4 ; None
endstruc
%define struc_ip_msfilter_size 20


name: group_req
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc group_req
    .gr_interface    resb 4
    .gr_group        resb 128 ; struc sockaddr_storage
endstruc
%define struc_group_req_size 136


name: group_source_req
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc group_source_req
    .gsr_interface   resb 4
    .gsr_group       resb 128 ; struc sockaddr_storage
    .gsr_source      resb 128 ; struc sockaddr_storage
endstruc
%define struc_group_source_req_size 264


name: group_filter
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc group_filter
    .gf_interface    resb 4
    .gf_group        resb 128 ; struc sockaddr_storage
    .gf_fmode        resb 4
    .gf_numsrc       resb 4
    .gf_slist        resb 128 ; None
endstruc
%define struc_group_filter_size 272


name: in_pktinfo
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc in_pktinfo
    .ipi_ifindex     resb 4
    .ipi_spec_dst    resb 4 ; struc in_addr
    .ipi_addr        resb 4 ; struc in_addr
endstruc
%define struc_in_pktinfo_size 12


name: in6_pktinfo
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc in6_pktinfo
    .ipi6_addr       resb 16 ; struc in6_addr
    .ipi6_ifindex    resb 4
endstruc
%define struc_in6_pktinfo_size 20


name: ip6_mtuinfo
include_file: /usr/include/netinet/in.h
nasm_code:
; from header /usr/include/netinet/in.h
struc ip6_mtuinfo
    .ip6m_addr       resb 28 ; struc sockaddr_in6
    .ip6m_mtu        resb 4
endstruc
%define struc_ip6_mtuinfo_size 32


name: spwd
include_file: /usr/include/shadow.h
nasm_code:
; from header /usr/include/shadow.h
struc spwd
    .sp_namp         resb 8
    .sp_pwdp         resb 8
    .sp_lstchg       resb 8
    .sp_min          resb 8
    .sp_max          resb 8
    .sp_warn         resb 8
    .sp_inact        resb 8
    .sp_expire       resb 8
    .sp_flag         resb 8
endstruc
%define struc_spwd_size 72


name: ib_user_mad_hdr_old
include_file: /usr/include/rdma/ib_user_mad.h
nasm_code:
; from header /usr/include/rdma/ib_user_mad.h
struc ib_user_mad_hdr_old
    .id              resb 4
    .status          resb 4
    .timeout_ms      resb 4
    .retries         resb 4
    .length          resb 4
    .qpn             resb 4
    .qkey            resb 4
    .lid             resb 2
    .sl              resb 1
    .path_bits       resb 1
    .grh_present     resb 1
    .gid_index       resb 1
    .hop_limit       resb 1
    .traffic_class   resb 1
    .gid             resb 16 ; None
    .flow_label      resb 4
endstruc
%define struc_ib_user_mad_hdr_old_size 56


name: ib_user_mad_hdr
include_file: /usr/include/rdma/ib_user_mad.h
nasm_code:
; from header /usr/include/rdma/ib_user_mad.h
struc ib_user_mad_hdr
    .id              resb 4
    .status          resb 4
    .timeout_ms      resb 4
    .retries         resb 4
    .length          resb 4
    .qpn             resb 4
    .qkey            resb 4
    .lid             resb 2
    .sl              resb 1
    .path_bits       resb 1
    .grh_present     resb 1
    .gid_index       resb 1
    .hop_limit       resb 1
    .traffic_class   resb 1
    .gid             resb 16 ; None
    .flow_label      resb 4
    .pkey_index      resb 2
    .reserved        resb 6 ; None
endstruc
%define struc_ib_user_mad_hdr_size 64


name: ib_user_mad
include_file: /usr/include/rdma/ib_user_mad.h
nasm_code:
; from header /usr/include/rdma/ib_user_mad.h
struc ib_user_mad
    .hdr             resb 64 ; struc ib_user_mad_hdr
    .data            resb 0 ; None
endstruc
%define struc_ib_user_mad_size 64


name: ib_user_mad_reg_req
include_file: /usr/include/rdma/ib_user_mad.h
nasm_code:
; from header /usr/include/rdma/ib_user_mad.h
struc ib_user_mad_reg_req
    .id              resb 4
    .method_mask     resb 16 ; None
    .qpn             resb 1
    .mgmt_class      resb 1
    .mgmt_class_vers resb 1
    .oui             resb 3 ; None
    .rmpp_version    resb 1
endstruc
%define struc_ib_user_mad_reg_req_size 28


name: ib_user_mad_reg_req2
include_file: /usr/include/rdma/ib_user_mad.h
nasm_code:
; from header /usr/include/rdma/ib_user_mad.h
struc ib_user_mad_reg_req2
    .id              resb 4
    .qpn             resb 4
    .mgmt_class      resb 1
    .mgmt_class_vers resb 1
    .res             resb 2
    .flags           resb 4
    .method_mask     resb 16 ; None
    .oui             resb 4
    .rmpp_version    resb 1
    .reserved        resb 3 ; None
endstruc
%define struc_ib_user_mad_reg_req2_size 40


name: bnxt_re_uctx_resp
include_file: /usr/include/rdma/bnxt_re-abi.h
nasm_code:
; from header /usr/include/rdma/bnxt_re-abi.h
struc bnxt_re_uctx_resp
    .dev_id          resb 4
    .max_qp          resb 4
    .pg_size         resb 4
    .cqe_sz          resb 4
    .max_cqd         resb 4
    .rsvd            resb 4
    .comp_mask       resb 8
    .chip_id0        resb 4
    .chip_id1        resb 4
endstruc
%define struc_bnxt_re_uctx_resp_size 40


name: bnxt_re_pd_resp
include_file: /usr/include/rdma/bnxt_re-abi.h
nasm_code:
; from header /usr/include/rdma/bnxt_re-abi.h
struc bnxt_re_pd_resp
    .pdid            resb 4
    .dpi             resb 4
    .dbr             resb 8
endstruc
%define struc_bnxt_re_pd_resp_size 16


name: bnxt_re_cq_req
include_file: /usr/include/rdma/bnxt_re-abi.h
nasm_code:
; from header /usr/include/rdma/bnxt_re-abi.h
struc bnxt_re_cq_req
    .cq_va           resb 8
    .cq_handle       resb 8
endstruc
%define struc_bnxt_re_cq_req_size 16


name: bnxt_re_cq_resp
include_file: /usr/include/rdma/bnxt_re-abi.h
nasm_code:
; from header /usr/include/rdma/bnxt_re-abi.h
struc bnxt_re_cq_resp
    .cqid            resb 4
    .tail            resb 4
    .phase           resb 4
    .rsvd            resb 4
endstruc
%define struc_bnxt_re_cq_resp_size 16


name: bnxt_re_qp_req
include_file: /usr/include/rdma/bnxt_re-abi.h
nasm_code:
; from header /usr/include/rdma/bnxt_re-abi.h
struc bnxt_re_qp_req
    .qpsva           resb 8
    .qprva           resb 8
    .qp_handle       resb 8
endstruc
%define struc_bnxt_re_qp_req_size 24


name: bnxt_re_qp_resp
include_file: /usr/include/rdma/bnxt_re-abi.h
nasm_code:
; from header /usr/include/rdma/bnxt_re-abi.h
struc bnxt_re_qp_resp
    .qpid            resb 4
    .rsvd            resb 4
endstruc
%define struc_bnxt_re_qp_resp_size 8


name: bnxt_re_srq_req
include_file: /usr/include/rdma/bnxt_re-abi.h
nasm_code:
; from header /usr/include/rdma/bnxt_re-abi.h
struc bnxt_re_srq_req
    .srqva           resb 8
    .srq_handle      resb 8
endstruc
%define struc_bnxt_re_srq_req_size 16


name: bnxt_re_srq_resp
include_file: /usr/include/rdma/bnxt_re-abi.h
nasm_code:
; from header /usr/include/rdma/bnxt_re-abi.h
struc bnxt_re_srq_resp
    .srqid           resb 4
endstruc
%define struc_bnxt_re_srq_resp_size 4


name: qedr_alloc_ucontext_req
include_file: /usr/include/rdma/qedr-abi.h
nasm_code:
; from header /usr/include/rdma/qedr-abi.h
struc qedr_alloc_ucontext_req
    .context_flags   resb 4
    .reserved        resb 4
endstruc
%define struc_qedr_alloc_ucontext_req_size 8


name: qedr_alloc_ucontext_resp
include_file: /usr/include/rdma/qedr-abi.h
nasm_code:
; from header /usr/include/rdma/qedr-abi.h
struc qedr_alloc_ucontext_resp
    .db_pa           resb 8
    .db_size         resb 4
    .max_send_wr     resb 4
    .max_recv_wr     resb 4
    .max_srq_wr      resb 4
    .sges_per_send_w resb 4
    .sges_per_recv_w resb 4
    .sges_per_srq_wr resb 4
    .max_cqes        resb 4
    .dpm_flags       resb 1
    .wids_enabled    resb 1
    .wid_count       resb 2
    .ldpm_limit_size resb 2
    .edpm_trans_size resb 1
    .reserved        resb 1
    .edpm_limit_size resb 2
    .padding         resb 6 ; None
endstruc
%define struc_qedr_alloc_ucontext_resp_size 56


name: qedr_alloc_pd_ureq
include_file: /usr/include/rdma/qedr-abi.h
nasm_code:
; from header /usr/include/rdma/qedr-abi.h
struc qedr_alloc_pd_ureq
    .rsvd1           resb 8
endstruc
%define struc_qedr_alloc_pd_ureq_size 8


name: qedr_alloc_pd_uresp
include_file: /usr/include/rdma/qedr-abi.h
nasm_code:
; from header /usr/include/rdma/qedr-abi.h
struc qedr_alloc_pd_uresp
    .pd_id           resb 4
    .reserved        resb 4
endstruc
%define struc_qedr_alloc_pd_uresp_size 8


name: qedr_create_cq_ureq
include_file: /usr/include/rdma/qedr-abi.h
nasm_code:
; from header /usr/include/rdma/qedr-abi.h
struc qedr_create_cq_ureq
    .addr            resb 8
    .len             resb 8
endstruc
%define struc_qedr_create_cq_ureq_size 16


name: qedr_create_cq_uresp
include_file: /usr/include/rdma/qedr-abi.h
nasm_code:
; from header /usr/include/rdma/qedr-abi.h
struc qedr_create_cq_uresp
    .db_offset       resb 4
    .icid            resb 2
    .reserved        resb 2
    .db_rec_addr     resb 8
endstruc
%define struc_qedr_create_cq_uresp_size 16


name: qedr_create_qp_ureq
include_file: /usr/include/rdma/qedr-abi.h
nasm_code:
; from header /usr/include/rdma/qedr-abi.h
struc qedr_create_qp_ureq
    .qp_handle_hi    resb 4
    .qp_handle_lo    resb 4
    .sq_addr         resb 8
    .sq_len          resb 8
    .rq_addr         resb 8
    .rq_len          resb 8
endstruc
%define struc_qedr_create_qp_ureq_size 40


name: qedr_create_qp_uresp
include_file: /usr/include/rdma/qedr-abi.h
nasm_code:
; from header /usr/include/rdma/qedr-abi.h
struc qedr_create_qp_uresp
    .qp_id           resb 4
    .atomic_supporte resb 4
    .sq_db_offset    resb 4
    .sq_icid         resb 2
    .rq_db_offset    resb 4
    .rq_icid         resb 2
    .rq_db2_offset   resb 4
    .reserved        resb 4
    .sq_db_rec_addr  resb 8
    .rq_db_rec_addr  resb 8
endstruc
%define struc_qedr_create_qp_uresp_size 48


name: qedr_create_srq_ureq
include_file: /usr/include/rdma/qedr-abi.h
nasm_code:
; from header /usr/include/rdma/qedr-abi.h
struc qedr_create_srq_ureq
    .prod_pair_addr  resb 8
    .srq_addr        resb 8
    .srq_len         resb 8
endstruc
%define struc_qedr_create_srq_ureq_size 24


name: qedr_create_srq_uresp
include_file: /usr/include/rdma/qedr-abi.h
nasm_code:
; from header /usr/include/rdma/qedr-abi.h
struc qedr_create_srq_uresp
    .srq_id          resb 2
    .reserved0       resb 2
    .reserved1       resb 4
endstruc
%define struc_qedr_create_srq_uresp_size 8


name: qedr_user_db_rec
include_file: /usr/include/rdma/qedr-abi.h
nasm_code:
; from header /usr/include/rdma/qedr-abi.h
struc qedr_user_db_rec
    .db_data         resb 8
endstruc
%define struc_qedr_user_db_rec_size 8


name: mlx5_ib_alloc_ucontext_req
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_alloc_ucontext_req
    .total_num_bfreg resb 4
    .num_low_latency resb 4
endstruc
%define struc_mlx5_ib_alloc_ucontext_req_size 8


name: mlx5_ib_alloc_ucontext_req_v2
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_alloc_ucontext_req_v2
    .total_num_bfreg resb 4
    .num_low_latency resb 4
    .flags           resb 4
    .comp_mask       resb 4
    .max_cqe_version resb 1
    .reserved0       resb 1
    .reserved1       resb 2
    .reserved2       resb 4
    .lib_caps        resb 8
endstruc
%define struc_mlx5_ib_alloc_ucontext_req_v2_size 32


name: mlx5_ib_alloc_ucontext_resp
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_alloc_ucontext_resp
    .qp_tab_size     resb 4
    .bf_reg_size     resb 4
    .tot_bfregs      resb 4
    .cache_line_size resb 4
    .max_sq_desc_sz  resb 2
    .max_rq_desc_sz  resb 2
    .max_send_wqebb  resb 4
    .max_recv_wr     resb 4
    .max_srq_recv_wr resb 4
    .num_ports       resb 2
    .flow_action_fla resb 2
    .comp_mask       resb 4
    .response_length resb 4
    .cqe_version     resb 1
    .cmds_supp_uhw   resb 1
    .eth_min_inline  resb 1
    .clock_info_vers resb 1
    .hca_core_clock_ resb 8
    .log_uar_size    resb 4
    .num_uars_per_pa resb 4
    .num_dyn_bfregs  resb 4
    .dump_fill_mkey  resb 4
endstruc
%define struc_mlx5_ib_alloc_ucontext_resp_size 72


name: mlx5_ib_alloc_pd_resp
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_alloc_pd_resp
    .pdn             resb 4
endstruc
%define struc_mlx5_ib_alloc_pd_resp_size 4


name: mlx5_ib_tso_caps
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_tso_caps
    .max_tso         resb 4
    .supported_qpts  resb 4
endstruc
%define struc_mlx5_ib_tso_caps_size 8


name: mlx5_ib_rss_caps
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_rss_caps
    .rx_hash_fields_ resb 8
    .rx_hash_functio resb 1
    .reserved        resb 7 ; None
endstruc
%define struc_mlx5_ib_rss_caps_size 16


name: mlx5_ib_cqe_comp_caps
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_cqe_comp_caps
    .max_num         resb 4
    .supported_forma resb 4
endstruc
%define struc_mlx5_ib_cqe_comp_caps_size 8


name: mlx5_packet_pacing_caps
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_packet_pacing_caps
    .qp_rate_limit_m resb 4
    .qp_rate_limit_m resb 4
    .supported_qpts  resb 4
    .cap_flags       resb 1
    .reserved        resb 3 ; None
endstruc
%define struc_mlx5_packet_pacing_caps_size 16


name: mlx5_ib_sw_parsing_caps
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_sw_parsing_caps
    .sw_parsing_offl resb 4
    .supported_qpts  resb 4
endstruc
%define struc_mlx5_ib_sw_parsing_caps_size 8


name: mlx5_ib_striding_rq_caps
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_striding_rq_caps
    .min_single_stri resb 4
    .max_single_stri resb 4
    .min_single_wqe_ resb 4
    .max_single_wqe_ resb 4
    .supported_qpts  resb 4
    .reserved        resb 4
endstruc
%define struc_mlx5_ib_striding_rq_caps_size 24


name: mlx5_ib_query_device_resp
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_query_device_resp
    .comp_mask       resb 4
    .response_length resb 4
    .tso_caps        resb 8 ; struc mlx5_ib_tso_caps
    .rss_caps        resb 16 ; struc mlx5_ib_rss_caps
    .cqe_comp_caps   resb 8 ; struc mlx5_ib_cqe_comp_caps
    .packet_pacing_c resb 16 ; struc mlx5_packet_pacing_caps
    .mlx5_ib_support resb 4
    .flags           resb 4
    .sw_parsing_caps resb 8 ; struc mlx5_ib_sw_parsing_caps
    .striding_rq_cap resb 24 ; struc mlx5_ib_striding_rq_caps
    .tunnel_offloads resb 4
    .reserved        resb 4
endstruc
%define struc_mlx5_ib_query_device_resp_size 104


name: mlx5_ib_create_cq
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_create_cq
    .buf_addr        resb 8
    .db_addr         resb 8
    .cqe_size        resb 4
    .cqe_comp_en     resb 1
    .cqe_comp_res_fo resb 1
    .flags           resb 2
    .uar_page_index  resb 2
    .reserved0       resb 2
    .reserved1       resb 4
endstruc
%define struc_mlx5_ib_create_cq_size 32


name: mlx5_ib_create_cq_resp
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_create_cq_resp
    .cqn             resb 4
    .reserved        resb 4
endstruc
%define struc_mlx5_ib_create_cq_resp_size 8


name: mlx5_ib_resize_cq
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_resize_cq
    .buf_addr        resb 8
    .cqe_size        resb 2
    .reserved0       resb 2
    .reserved1       resb 4
endstruc
%define struc_mlx5_ib_resize_cq_size 16


name: mlx5_ib_create_srq
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_create_srq
    .buf_addr        resb 8
    .db_addr         resb 8
    .flags           resb 4
    .reserved0       resb 4
    .uidx            resb 4
    .reserved1       resb 4
endstruc
%define struc_mlx5_ib_create_srq_size 32


name: mlx5_ib_create_srq_resp
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_create_srq_resp
    .srqn            resb 4
    .reserved        resb 4
endstruc
%define struc_mlx5_ib_create_srq_resp_size 8


name: mlx5_ib_create_qp_rss
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_create_qp_rss
    .rx_hash_fields_ resb 8
    .rx_hash_functio resb 1
    .rx_key_len      resb 1
    .reserved        resb 6 ; None
    .rx_hash_key     resb 128 ; None
    .comp_mask       resb 4
    .flags           resb 4
endstruc
%define struc_mlx5_ib_create_qp_rss_size 152


name: mlx5_ib_create_qp_resp
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_create_qp_resp
    .bfreg_index     resb 4
    .ece_options     resb 4
    .comp_mask       resb 4
    .tirn            resb 4
    .tisn            resb 4
    .rqn             resb 4
    .sqn             resb 4
    .reserved1       resb 4
    .tir_icm_addr    resb 8
endstruc
%define struc_mlx5_ib_create_qp_resp_size 40


name: mlx5_ib_alloc_mw
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_alloc_mw
    .comp_mask       resb 4
    .num_klms        resb 1
    .reserved1       resb 1
    .reserved2       resb 2
endstruc
%define struc_mlx5_ib_alloc_mw_size 8


name: mlx5_ib_create_wq
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_create_wq
    .buf_addr        resb 8
    .db_addr         resb 8
    .rq_wqe_count    resb 4
    .rq_wqe_shift    resb 4
    .user_index      resb 4
    .flags           resb 4
    .comp_mask       resb 4
    .single_stride_l resb 4
    .single_wqe_log_ resb 4
    .two_byte_shift_ resb 4
endstruc
%define struc_mlx5_ib_create_wq_size 48


name: mlx5_ib_create_ah_resp
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_create_ah_resp
    .response_length resb 4
    .dmac            resb 6 ; None
    .reserved        resb 6 ; None
endstruc
%define struc_mlx5_ib_create_ah_resp_size 16


name: mlx5_ib_burst_info
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_burst_info
    .max_burst_sz    resb 4
    .typical_pkt_sz  resb 2
    .reserved        resb 2
endstruc
%define struc_mlx5_ib_burst_info_size 8


name: mlx5_ib_modify_qp
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_modify_qp
    .comp_mask       resb 4
    .burst_info      resb 8 ; struc mlx5_ib_burst_info
    .ece_options     resb 4
endstruc
%define struc_mlx5_ib_modify_qp_size 16


name: mlx5_ib_modify_qp_resp
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_modify_qp_resp
    .response_length resb 4
    .dctn            resb 4
    .ece_options     resb 4
    .reserved        resb 4
endstruc
%define struc_mlx5_ib_modify_qp_resp_size 16


name: mlx5_ib_create_wq_resp
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_create_wq_resp
    .response_length resb 4
    .reserved        resb 4
endstruc
%define struc_mlx5_ib_create_wq_resp_size 8


name: mlx5_ib_create_rwq_ind_tbl_resp
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_create_rwq_ind_tbl_resp
    .response_length resb 4
    .reserved        resb 4
endstruc
%define struc_mlx5_ib_create_rwq_ind_tbl_resp_size 8


name: mlx5_ib_modify_wq
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_modify_wq
    .comp_mask       resb 4
    .reserved        resb 4
endstruc
%define struc_mlx5_ib_modify_wq_size 8


name: mlx5_ib_clock_info
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_clock_info
    .sign            resb 4
    .resv            resb 4
    .nsec            resb 8
    .cycles          resb 8
    .frac            resb 8
    .mult            resb 4
    .shift           resb 4
    .mask            resb 8
    .overflow_period resb 8
endstruc
%define struc_mlx5_ib_clock_info_size 56


name: mlx5_ib_flow_counters_desc
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_flow_counters_desc
    .description     resb 4
    .index           resb 4
endstruc
%define struc_mlx5_ib_flow_counters_desc_size 8


name: mlx5_ib_flow_counters_data
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_flow_counters_data
    .counters_data   resb 8
    .ncounters       resb 4
    .reserved        resb 4
endstruc
%define struc_mlx5_ib_flow_counters_data_size 16


name: mlx5_ib_create_flow
include_file: /usr/include/rdma/mlx5-abi.h
nasm_code:
; from header /usr/include/rdma/mlx5-abi.h
struc mlx5_ib_create_flow
    .ncounters_data  resb 4
    .reserved        resb 4
    .data            resb 0 ; None
endstruc
%define struc_mlx5_ib_create_flow_size 8


name: rdma_ls_resolve_header
include_file: /usr/include/rdma/rdma_netlink.h
nasm_code:
; from header /usr/include/rdma/rdma_netlink.h
struc rdma_ls_resolve_header
    .device_name     resb 64 ; None
    .port_num        resb 1
    .path_use        resb 1
endstruc
%define struc_rdma_ls_resolve_header_size 66


name: rdma_ls_ip_resolve_header
include_file: /usr/include/rdma/rdma_netlink.h
nasm_code:
; from header /usr/include/rdma/rdma_netlink.h
struc rdma_ls_ip_resolve_header
    .ifindex         resb 4
endstruc
%define struc_rdma_ls_ip_resolve_header_size 4


name: rdma_nla_ls_gid
include_file: /usr/include/rdma/rdma_netlink.h
nasm_code:
; from header /usr/include/rdma/rdma_netlink.h
struc rdma_nla_ls_gid
    .gid             resb 16 ; None
endstruc
%define struc_rdma_nla_ls_gid_size 16


name: mthca_alloc_ucontext_resp
include_file: /usr/include/rdma/mthca-abi.h
nasm_code:
; from header /usr/include/rdma/mthca-abi.h
struc mthca_alloc_ucontext_resp
    .qp_tab_size     resb 4
    .uarc_size       resb 4
endstruc
%define struc_mthca_alloc_ucontext_resp_size 8


name: mthca_alloc_pd_resp
include_file: /usr/include/rdma/mthca-abi.h
nasm_code:
; from header /usr/include/rdma/mthca-abi.h
struc mthca_alloc_pd_resp
    .pdn             resb 4
    .reserved        resb 4
endstruc
%define struc_mthca_alloc_pd_resp_size 8


name: mthca_reg_mr
include_file: /usr/include/rdma/mthca-abi.h
nasm_code:
; from header /usr/include/rdma/mthca-abi.h
struc mthca_reg_mr
    .mr_attrs        resb 4
    .reserved        resb 4
endstruc
%define struc_mthca_reg_mr_size 8


name: mthca_create_cq
include_file: /usr/include/rdma/mthca-abi.h
nasm_code:
; from header /usr/include/rdma/mthca-abi.h
struc mthca_create_cq
    .lkey            resb 4
    .pdn             resb 4
    .arm_db_page     resb 8
    .set_db_page     resb 8
    .arm_db_index    resb 4
    .set_db_index    resb 4
endstruc
%define struc_mthca_create_cq_size 32


name: mthca_create_cq_resp
include_file: /usr/include/rdma/mthca-abi.h
nasm_code:
; from header /usr/include/rdma/mthca-abi.h
struc mthca_create_cq_resp
    .cqn             resb 4
    .reserved        resb 4
endstruc
%define struc_mthca_create_cq_resp_size 8


name: mthca_resize_cq
include_file: /usr/include/rdma/mthca-abi.h
nasm_code:
; from header /usr/include/rdma/mthca-abi.h
struc mthca_resize_cq
    .lkey            resb 4
    .reserved        resb 4
endstruc
%define struc_mthca_resize_cq_size 8


name: mthca_create_srq
include_file: /usr/include/rdma/mthca-abi.h
nasm_code:
; from header /usr/include/rdma/mthca-abi.h
struc mthca_create_srq
    .lkey            resb 4
    .db_index        resb 4
    .db_page         resb 8
endstruc
%define struc_mthca_create_srq_size 16


name: mthca_create_srq_resp
include_file: /usr/include/rdma/mthca-abi.h
nasm_code:
; from header /usr/include/rdma/mthca-abi.h
struc mthca_create_srq_resp
    .srqn            resb 4
    .reserved        resb 4
endstruc
%define struc_mthca_create_srq_resp_size 8


name: mthca_create_qp
include_file: /usr/include/rdma/mthca-abi.h
nasm_code:
; from header /usr/include/rdma/mthca-abi.h
struc mthca_create_qp
    .lkey            resb 4
    .reserved        resb 4
    .sq_db_page      resb 8
    .rq_db_page      resb 8
    .sq_db_index     resb 4
    .rq_db_index     resb 4
endstruc
%define struc_mthca_create_qp_size 32


name: efa_ibv_alloc_ucontext_cmd
include_file: /usr/include/rdma/efa-abi.h
nasm_code:
; from header /usr/include/rdma/efa-abi.h
struc efa_ibv_alloc_ucontext_cmd
    .comp_mask       resb 4
    .reserved_20     resb 4 ; None
endstruc
%define struc_efa_ibv_alloc_ucontext_cmd_size 8


name: efa_ibv_alloc_ucontext_resp
include_file: /usr/include/rdma/efa-abi.h
nasm_code:
; from header /usr/include/rdma/efa-abi.h
struc efa_ibv_alloc_ucontext_resp
    .comp_mask       resb 4
    .cmds_supp_udata resb 4
    .sub_cqs_per_cq  resb 2
    .inline_buf_size resb 2
    .max_llq_size    resb 4
    .max_tx_batch    resb 2
    .min_sq_wr       resb 2
    .reserved_a0     resb 4 ; None
endstruc
%define struc_efa_ibv_alloc_ucontext_resp_size 24


name: efa_ibv_alloc_pd_resp
include_file: /usr/include/rdma/efa-abi.h
nasm_code:
; from header /usr/include/rdma/efa-abi.h
struc efa_ibv_alloc_pd_resp
    .comp_mask       resb 4
    .pdn             resb 2
    .reserved_30     resb 2 ; None
endstruc
%define struc_efa_ibv_alloc_pd_resp_size 8


name: efa_ibv_create_cq
include_file: /usr/include/rdma/efa-abi.h
nasm_code:
; from header /usr/include/rdma/efa-abi.h
struc efa_ibv_create_cq
    .comp_mask       resb 4
    .cq_entry_size   resb 4
    .num_sub_cqs     resb 2
    .reserved_50     resb 6 ; None
endstruc
%define struc_efa_ibv_create_cq_size 16


name: efa_ibv_create_cq_resp
include_file: /usr/include/rdma/efa-abi.h
nasm_code:
; from header /usr/include/rdma/efa-abi.h
struc efa_ibv_create_cq_resp
    .comp_mask       resb 4
    .reserved_20     resb 4 ; None
    .q_mmap_key      resb 8
    .q_mmap_size     resb 8
    .cq_idx          resb 2
    .reserved_d0     resb 6 ; None
endstruc
%define struc_efa_ibv_create_cq_resp_size 32


name: efa_ibv_create_qp
include_file: /usr/include/rdma/efa-abi.h
nasm_code:
; from header /usr/include/rdma/efa-abi.h
struc efa_ibv_create_qp
    .comp_mask       resb 4
    .rq_ring_size    resb 4
    .sq_ring_size    resb 4
    .driver_qp_type  resb 4
endstruc
%define struc_efa_ibv_create_qp_size 16


name: efa_ibv_create_qp_resp
include_file: /usr/include/rdma/efa-abi.h
nasm_code:
; from header /usr/include/rdma/efa-abi.h
struc efa_ibv_create_qp_resp
    .comp_mask       resb 4
    .rq_db_offset    resb 4
    .sq_db_offset    resb 4
    .llq_desc_offset resb 4
    .rq_mmap_key     resb 8
    .rq_mmap_size    resb 8
    .rq_db_mmap_key  resb 8
    .sq_db_mmap_key  resb 8
    .llq_desc_mmap_k resb 8
    .send_sub_cq_idx resb 2
    .recv_sub_cq_idx resb 2
    .reserved_1e0    resb 4 ; None
endstruc
%define struc_efa_ibv_create_qp_resp_size 64


name: efa_ibv_create_ah_resp
include_file: /usr/include/rdma/efa-abi.h
nasm_code:
; from header /usr/include/rdma/efa-abi.h
struc efa_ibv_create_ah_resp
    .comp_mask       resb 4
    .efa_address_han resb 2
    .reserved_30     resb 2 ; None
endstruc
%define struc_efa_ibv_create_ah_resp_size 8


name: efa_ibv_ex_query_device_resp
include_file: /usr/include/rdma/efa-abi.h
nasm_code:
; from header /usr/include/rdma/efa-abi.h
struc efa_ibv_ex_query_device_resp
    .comp_mask       resb 4
    .max_sq_wr       resb 4
    .max_rq_wr       resb 4
    .max_sq_sge      resb 2
    .max_rq_sge      resb 2
    .max_rdma_size   resb 4
    .device_caps     resb 4
endstruc
%define struc_efa_ibv_ex_query_device_resp_size 24


name: rvt_wqe_sge
include_file: /usr/include/rdma/rvt-abi.h
nasm_code:
; from header /usr/include/rdma/rvt-abi.h
struc rvt_wqe_sge
    .addr            resb 8
    .length          resb 4
    .lkey            resb 4
endstruc
%define struc_rvt_wqe_sge_size 16


name: rvt_cq_wc
include_file: /usr/include/rdma/rvt-abi.h
nasm_code:
; from header /usr/include/rdma/rvt-abi.h
struc rvt_cq_wc
    .head            resb 4 ; struc None
    .tail            resb 4 ; struc None
    .uqueue          resb 0 ; None
endstruc
%define struc_rvt_cq_wc_size 8


name: rvt_rwqe
include_file: /usr/include/rdma/rvt-abi.h
nasm_code:
; from header /usr/include/rdma/rvt-abi.h
struc rvt_rwqe
    .wr_id           resb 8
    .num_sge         resb 1
    .padding         resb 7 ; None
    .sg_list         resb 0 ; None
endstruc
%define struc_rvt_rwqe_size 16


name: rvt_rwq
include_file: /usr/include/rdma/rvt-abi.h
nasm_code:
; from header /usr/include/rdma/rvt-abi.h
struc rvt_rwq
    .head            resb 4 ; struc None
    .tail            resb 4 ; struc None
    .wq              resb 0 ; None
endstruc
%define struc_rvt_rwq_size 8


name: ib_uverbs_flow_action_esp_keymat_aes_gcm
include_file: /usr/include/rdma/ib_user_ioctl_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_ioctl_verbs.h
struc ib_uverbs_flow_action_esp_keymat_aes_gcm
    .iv              resb 8
    .iv_algo         resb 4
    .salt            resb 4
    .icv_len         resb 4
    .key_len         resb 4
    .aes_key         resb 32 ; None
endstruc
%define struc_ib_uverbs_flow_action_esp_keymat_aes_gcm_size 56


name: ib_uverbs_flow_action_esp_replay_bmp
include_file: /usr/include/rdma/ib_user_ioctl_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_ioctl_verbs.h
struc ib_uverbs_flow_action_esp_replay_bmp
    .size            resb 4
endstruc
%define struc_ib_uverbs_flow_action_esp_replay_bmp_size 4


name: ib_uverbs_flow_action_esp_encap
include_file: /usr/include/rdma/ib_user_ioctl_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_ioctl_verbs.h
struc ib_uverbs_flow_action_esp_encap
    .val_ptr         resb 8
    .next_ptr        resb 8
    .len             resb 2
    .type            resb 2
endstruc
%define struc_ib_uverbs_flow_action_esp_encap_size 24


name: ib_uverbs_flow_action_esp
include_file: /usr/include/rdma/ib_user_ioctl_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_ioctl_verbs.h
struc ib_uverbs_flow_action_esp
    .spi             resb 4
    .seq             resb 4
    .tfc_pad         resb 4
    .flags           resb 4
    .hard_limit_pkts resb 8
endstruc
%define struc_ib_uverbs_flow_action_esp_size 24


name: ib_uverbs_query_port_resp_ex
include_file: /usr/include/rdma/ib_user_ioctl_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_ioctl_verbs.h
struc ib_uverbs_query_port_resp_ex
    .legacy_resp     resb 40 ; struc ib_uverbs_query_port_resp
    .port_cap_flags2 resb 2
    .reserved        resb 6 ; None
endstruc
%define struc_ib_uverbs_query_port_resp_ex_size 48


name: ib_uverbs_qp_cap
include_file: /usr/include/rdma/ib_user_ioctl_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_ioctl_verbs.h
struc ib_uverbs_qp_cap
    .max_send_wr     resb 4
    .max_recv_wr     resb 4
    .max_send_sge    resb 4
    .max_recv_sge    resb 4
    .max_inline_data resb 4
endstruc
%define struc_ib_uverbs_qp_cap_size 20


name: ib_uverbs_gid_entry
include_file: /usr/include/rdma/ib_user_ioctl_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_ioctl_verbs.h
struc ib_uverbs_gid_entry
    .gid             resb 16 ; None
    .gid_index       resb 4
    .port_num        resb 4
    .gid_type        resb 4
    .netdev_ifindex  resb 4
endstruc
%define struc_ib_uverbs_gid_entry_size 32


name: mlx5_ib_uapi_devx_async_cmd_hdr
include_file: /usr/include/rdma/mlx5_user_ioctl_verbs.h
nasm_code:
; from header /usr/include/rdma/mlx5_user_ioctl_verbs.h
struc mlx5_ib_uapi_devx_async_cmd_hdr
    .wr_id           resb 8
    .out_data        resb 0 ; None
endstruc
%define struc_mlx5_ib_uapi_devx_async_cmd_hdr_size 8


name: mlx5_ib_uapi_devx_async_event_hdr
include_file: /usr/include/rdma/mlx5_user_ioctl_verbs.h
nasm_code:
; from header /usr/include/rdma/mlx5_user_ioctl_verbs.h
struc mlx5_ib_uapi_devx_async_event_hdr
    .cookie          resb 8
    .out_data        resb 0 ; None
endstruc
%define struc_mlx5_ib_uapi_devx_async_event_hdr_size 8


name: ocrdma_alloc_ucontext_resp
include_file: /usr/include/rdma/ocrdma-abi.h
nasm_code:
; from header /usr/include/rdma/ocrdma-abi.h
struc ocrdma_alloc_ucontext_resp
    .dev_id          resb 4
    .wqe_size        resb 4
    .max_inline_data resb 4
    .dpp_wqe_size    resb 4
    .ah_tbl_page     resb 8
    .ah_tbl_len      resb 4
    .rqe_size        resb 4
    .fw_ver          resb 32 ; None
    .rsvd1           resb 8
    .rsvd2           resb 8
endstruc
%define struc_ocrdma_alloc_ucontext_resp_size 80


name: ocrdma_alloc_pd_ureq
include_file: /usr/include/rdma/ocrdma-abi.h
nasm_code:
; from header /usr/include/rdma/ocrdma-abi.h
struc ocrdma_alloc_pd_ureq
    .rsvd            resb 8 ; None
endstruc
%define struc_ocrdma_alloc_pd_ureq_size 8


name: ocrdma_alloc_pd_uresp
include_file: /usr/include/rdma/ocrdma-abi.h
nasm_code:
; from header /usr/include/rdma/ocrdma-abi.h
struc ocrdma_alloc_pd_uresp
    .id              resb 4
    .dpp_enabled     resb 4
    .dpp_page_addr_h resb 4
    .dpp_page_addr_l resb 4
    .rsvd            resb 8 ; None
endstruc
%define struc_ocrdma_alloc_pd_uresp_size 24


name: ocrdma_create_cq_ureq
include_file: /usr/include/rdma/ocrdma-abi.h
nasm_code:
; from header /usr/include/rdma/ocrdma-abi.h
struc ocrdma_create_cq_ureq
    .dpp_cq          resb 4
    .rsvd            resb 4
endstruc
%define struc_ocrdma_create_cq_ureq_size 8


name: ocrdma_create_cq_uresp
include_file: /usr/include/rdma/ocrdma-abi.h
nasm_code:
; from header /usr/include/rdma/ocrdma-abi.h
struc ocrdma_create_cq_uresp
    .cq_id           resb 4
    .page_size       resb 4
    .num_pages       resb 4
    .max_hw_cqe      resb 4
    .page_addr       resb 64 ; None
    .db_page_addr    resb 8
    .db_page_size    resb 4
    .phase_change    resb 4
    .rsvd1           resb 8
    .rsvd2           resb 8
endstruc
%define struc_ocrdma_create_cq_uresp_size 112


name: ocrdma_create_qp_ureq
include_file: /usr/include/rdma/ocrdma-abi.h
nasm_code:
; from header /usr/include/rdma/ocrdma-abi.h
struc ocrdma_create_qp_ureq
    .enable_dpp_cq   resb 1
    .rsvd            resb 1
    .dpp_cq_id       resb 2
    .rsvd1           resb 4
endstruc
%define struc_ocrdma_create_qp_ureq_size 8


name: ocrdma_create_qp_uresp
include_file: /usr/include/rdma/ocrdma-abi.h
nasm_code:
; from header /usr/include/rdma/ocrdma-abi.h
struc ocrdma_create_qp_uresp
    .qp_id           resb 2
    .sq_dbid         resb 2
    .rq_dbid         resb 2
    .resv0           resb 2
    .sq_page_size    resb 4
    .rq_page_size    resb 4
    .num_sq_pages    resb 4
    .num_rq_pages    resb 4
    .sq_page_addr    resb 64 ; None
    .rq_page_addr    resb 64 ; None
    .db_page_addr    resb 8
    .db_page_size    resb 4
    .dpp_credit      resb 4
    .dpp_offset      resb 4
    .num_wqe_allocat resb 4
    .num_rqe_allocat resb 4
    .db_sq_offset    resb 4
    .db_rq_offset    resb 4
    .db_shift        resb 4
    .rsvd            resb 88 ; None
endstruc
%define struc_ocrdma_create_qp_uresp_size 280


name: ocrdma_create_srq_uresp
include_file: /usr/include/rdma/ocrdma-abi.h
nasm_code:
; from header /usr/include/rdma/ocrdma-abi.h
struc ocrdma_create_srq_uresp
    .rq_dbid         resb 2
    .resv0           resb 2
    .resv1           resb 4
    .rq_page_size    resb 4
    .num_rq_pages    resb 4
    .rq_page_addr    resb 64 ; None
    .db_page_addr    resb 8
    .db_page_size    resb 4
    .num_rqe_allocat resb 4
    .db_rq_offset    resb 4
    .db_shift        resb 4
    .rsvd2           resb 8
    .rsvd3           resb 8
endstruc
%define struc_ocrdma_create_srq_uresp_size 120


name: hns_roce_ib_create_cq
include_file: /usr/include/rdma/hns-abi.h
nasm_code:
; from header /usr/include/rdma/hns-abi.h
struc hns_roce_ib_create_cq
    .buf_addr        resb 8
    .db_addr         resb 8
    .cqe_size        resb 4
    .reserved        resb 4
endstruc
%define struc_hns_roce_ib_create_cq_size 24


name: hns_roce_ib_create_cq_resp
include_file: /usr/include/rdma/hns-abi.h
nasm_code:
; from header /usr/include/rdma/hns-abi.h
struc hns_roce_ib_create_cq_resp
    .cqn             resb 8
    .cap_flags       resb 8
endstruc
%define struc_hns_roce_ib_create_cq_resp_size 16


name: hns_roce_ib_create_srq
include_file: /usr/include/rdma/hns-abi.h
nasm_code:
; from header /usr/include/rdma/hns-abi.h
struc hns_roce_ib_create_srq
    .buf_addr        resb 8
    .db_addr         resb 8
    .que_addr        resb 8
endstruc
%define struc_hns_roce_ib_create_srq_size 24


name: hns_roce_ib_create_srq_resp
include_file: /usr/include/rdma/hns-abi.h
nasm_code:
; from header /usr/include/rdma/hns-abi.h
struc hns_roce_ib_create_srq_resp
    .srqn            resb 4
    .reserved        resb 4
endstruc
%define struc_hns_roce_ib_create_srq_resp_size 8


name: hns_roce_ib_create_qp
include_file: /usr/include/rdma/hns-abi.h
nasm_code:
; from header /usr/include/rdma/hns-abi.h
struc hns_roce_ib_create_qp
    .buf_addr        resb 8
    .db_addr         resb 8
    .log_sq_bb_count resb 1
    .log_sq_stride   resb 1
    .sq_no_prefetch  resb 1
    .reserved        resb 5 ; None
    .sdb_addr        resb 8
endstruc
%define struc_hns_roce_ib_create_qp_size 32


name: hns_roce_ib_create_qp_resp
include_file: /usr/include/rdma/hns-abi.h
nasm_code:
; from header /usr/include/rdma/hns-abi.h
struc hns_roce_ib_create_qp_resp
    .cap_flags       resb 8
endstruc
%define struc_hns_roce_ib_create_qp_resp_size 8


name: hns_roce_ib_alloc_ucontext_resp
include_file: /usr/include/rdma/hns-abi.h
nasm_code:
; from header /usr/include/rdma/hns-abi.h
struc hns_roce_ib_alloc_ucontext_resp
    .qp_tab_size     resb 4
    .cqe_size        resb 4
endstruc
%define struc_hns_roce_ib_alloc_ucontext_resp_size 8


name: hns_roce_ib_alloc_pd_resp
include_file: /usr/include/rdma/hns-abi.h
nasm_code:
; from header /usr/include/rdma/hns-abi.h
struc hns_roce_ib_alloc_pd_resp
    .pdn             resb 4
endstruc
%define struc_hns_roce_ib_alloc_pd_resp_size 4


name: ib_path_rec_data
include_file: /usr/include/rdma/ib_user_sa.h
nasm_code:
; from header /usr/include/rdma/ib_user_sa.h
struc ib_path_rec_data
    .flags           resb 4
    .reserved        resb 4
    .path_rec        resb 64 ; None
endstruc
%define struc_ib_path_rec_data_size 72


name: ib_user_path_rec
include_file: /usr/include/rdma/ib_user_sa.h
nasm_code:
; from header /usr/include/rdma/ib_user_sa.h
struc ib_user_path_rec
    .dgid            resb 16 ; None
    .sgid            resb 16 ; None
    .dlid            resb 2
    .slid            resb 2
    .raw_traffic     resb 4
    .flow_label      resb 4
    .reversible      resb 4
    .mtu             resb 4
    .pkey            resb 2
    .hop_limit       resb 1
    .traffic_class   resb 1
    .numb_path       resb 1
    .sl              resb 1
    .mtu_selector    resb 1
    .rate_selector   resb 1
    .rate            resb 1
    .packet_life_tim resb 1
    .packet_life_tim resb 1
    .preference      resb 1
endstruc
%define struc_ib_user_path_rec_size 64


name: ib_uverbs_async_event_desc
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_async_event_desc
    .element         resb 8
    .event_type      resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_async_event_desc_size 16


name: ib_uverbs_comp_event_desc
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_comp_event_desc
    .cq_handle       resb 8
endstruc
%define struc_ib_uverbs_comp_event_desc_size 8


name: ib_uverbs_cq_moderation_caps
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_cq_moderation_caps
    .max_cq_moderati resb 2
    .max_cq_moderati resb 2
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_cq_moderation_caps_size 8


name: ib_uverbs_cmd_hdr
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_cmd_hdr
    .command         resb 4
    .in_words        resb 2
    .out_words       resb 2
endstruc
%define struc_ib_uverbs_cmd_hdr_size 8


name: ib_uverbs_ex_cmd_hdr
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_cmd_hdr
    .response        resb 8
    .provider_in_wor resb 2
    .provider_out_wo resb 2
    .cmd_hdr_reserve resb 4
endstruc
%define struc_ib_uverbs_ex_cmd_hdr_size 16


name: ib_uverbs_get_context
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_get_context
    .response        resb 8
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_get_context_size 8


name: ib_uverbs_get_context_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_get_context_resp
    .async_fd        resb 4
    .num_comp_vector resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_get_context_resp_size 8


name: ib_uverbs_query_device
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_query_device
    .response        resb 8
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_query_device_size 8


name: ib_uverbs_query_device_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_query_device_resp
    .fw_ver          resb 8
    .node_guid       resb 8
    .sys_image_guid  resb 8
    .max_mr_size     resb 8
    .page_size_cap   resb 8
    .vendor_id       resb 4
    .vendor_part_id  resb 4
    .hw_ver          resb 4
    .max_qp          resb 4
    .max_qp_wr       resb 4
    .device_cap_flag resb 4
    .max_sge         resb 4
    .max_sge_rd      resb 4
    .max_cq          resb 4
    .max_cqe         resb 4
    .max_mr          resb 4
    .max_pd          resb 4
    .max_qp_rd_atom  resb 4
    .max_ee_rd_atom  resb 4
    .max_res_rd_atom resb 4
    .max_qp_init_rd_ resb 4
    .max_ee_init_rd_ resb 4
    .atomic_cap      resb 4
    .max_ee          resb 4
    .max_rdd         resb 4
    .max_mw          resb 4
    .max_raw_ipv6_qp resb 4
    .max_raw_ethy_qp resb 4
    .max_mcast_grp   resb 4
    .max_mcast_qp_at resb 4
    .max_total_mcast resb 4
    .max_ah          resb 4
    .max_fmr         resb 4
    .max_map_per_fmr resb 4
    .max_srq         resb 4
    .max_srq_wr      resb 4
    .max_srq_sge     resb 4
    .max_pkeys       resb 2
    .local_ca_ack_de resb 1
    .phys_port_cnt   resb 1
    .reserved        resb 4 ; None
endstruc
%define struc_ib_uverbs_query_device_resp_size 176


name: ib_uverbs_ex_query_device
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_query_device
    .comp_mask       resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_ex_query_device_size 8


name: ib_uverbs_odp_caps
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_odp_caps
    .general_caps    resb 8
    .per_transport_c resb 12 ; struc None
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_odp_caps_size 24


name: ib_uverbs_rss_caps
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_rss_caps
    .supported_qpts  resb 4
    .max_rwq_indirec resb 4
    .max_rwq_indirec resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_rss_caps_size 16


name: ib_uverbs_tm_caps
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_tm_caps
    .max_rndv_hdr_si resb 4
    .max_num_tags    resb 4
    .flags           resb 4
    .max_ops         resb 4
    .max_sge         resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_tm_caps_size 24


name: ib_uverbs_ex_query_device_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_query_device_resp
    .base            resb 176 ; struc ib_uverbs_query_device_resp
    .comp_mask       resb 4
    .response_length resb 4
    .odp_caps        resb 24 ; struc ib_uverbs_odp_caps
    .timestamp_mask  resb 8
    .hca_core_clock  resb 8
    .device_cap_flag resb 8
    .rss_caps        resb 16 ; struc ib_uverbs_rss_caps
    .max_wq_type_rq  resb 4
    .raw_packet_caps resb 4
    .tm_caps         resb 24 ; struc ib_uverbs_tm_caps
    .cq_moderation_c resb 8 ; struc ib_uverbs_cq_moderation_caps
    .max_dm_size     resb 8
    .xrc_odp_caps    resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_ex_query_device_resp_size 304


name: ib_uverbs_query_port
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_query_port
    .response        resb 8
    .port_num        resb 1
    .reserved        resb 7 ; None
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_query_port_size 16


name: ib_uverbs_query_port_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_query_port_resp
    .port_cap_flags  resb 4
    .max_msg_sz      resb 4
    .bad_pkey_cntr   resb 4
    .qkey_viol_cntr  resb 4
    .gid_tbl_len     resb 4
    .pkey_tbl_len    resb 2
    .lid             resb 2
    .sm_lid          resb 2
    .state           resb 1
    .max_mtu         resb 1
    .active_mtu      resb 1
    .lmc             resb 1
    .max_vl_num      resb 1
    .sm_sl           resb 1
    .subnet_timeout  resb 1
    .init_type_reply resb 1
    .active_width    resb 1
    .active_speed    resb 1
    .phys_state      resb 1
    .link_layer      resb 1
    .flags           resb 1
    .reserved        resb 1
endstruc
%define struc_ib_uverbs_query_port_resp_size 40


name: ib_uverbs_alloc_pd
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_alloc_pd
    .response        resb 8
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_alloc_pd_size 8


name: ib_uverbs_alloc_pd_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_alloc_pd_resp
    .pd_handle       resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_alloc_pd_resp_size 4


name: ib_uverbs_dealloc_pd
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_dealloc_pd
    .pd_handle       resb 4
endstruc
%define struc_ib_uverbs_dealloc_pd_size 4


name: ib_uverbs_open_xrcd
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_open_xrcd
    .response        resb 8
    .fd              resb 4
    .oflags          resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_open_xrcd_size 16


name: ib_uverbs_open_xrcd_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_open_xrcd_resp
    .xrcd_handle     resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_open_xrcd_resp_size 4


name: ib_uverbs_close_xrcd
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_close_xrcd
    .xrcd_handle     resb 4
endstruc
%define struc_ib_uverbs_close_xrcd_size 4


name: ib_uverbs_reg_mr
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_reg_mr
    .response        resb 8
    .start           resb 8
    .length          resb 8
    .hca_va          resb 8
    .pd_handle       resb 4
    .access_flags    resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_reg_mr_size 40


name: ib_uverbs_reg_mr_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_reg_mr_resp
    .mr_handle       resb 4
    .lkey            resb 4
    .rkey            resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_reg_mr_resp_size 12


name: ib_uverbs_rereg_mr
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_rereg_mr
    .response        resb 8
    .mr_handle       resb 4
    .flags           resb 4
    .start           resb 8
    .length          resb 8
    .hca_va          resb 8
    .pd_handle       resb 4
    .access_flags    resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_rereg_mr_size 48


name: ib_uverbs_rereg_mr_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_rereg_mr_resp
    .lkey            resb 4
    .rkey            resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_rereg_mr_resp_size 8


name: ib_uverbs_dereg_mr
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_dereg_mr
    .mr_handle       resb 4
endstruc
%define struc_ib_uverbs_dereg_mr_size 4


name: ib_uverbs_alloc_mw
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_alloc_mw
    .response        resb 8
    .pd_handle       resb 4
    .mw_type         resb 1
    .reserved        resb 3 ; None
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_alloc_mw_size 16


name: ib_uverbs_alloc_mw_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_alloc_mw_resp
    .mw_handle       resb 4
    .rkey            resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_alloc_mw_resp_size 8


name: ib_uverbs_dealloc_mw
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_dealloc_mw
    .mw_handle       resb 4
endstruc
%define struc_ib_uverbs_dealloc_mw_size 4


name: ib_uverbs_create_comp_channel
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_comp_channel
    .response        resb 8
endstruc
%define struc_ib_uverbs_create_comp_channel_size 8


name: ib_uverbs_create_comp_channel_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_comp_channel_resp
    .fd              resb 4
endstruc
%define struc_ib_uverbs_create_comp_channel_resp_size 4


name: ib_uverbs_create_cq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_cq
    .response        resb 8
    .user_handle     resb 8
    .cqe             resb 4
    .comp_vector     resb 4
    .comp_channel    resb 4
    .reserved        resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_create_cq_size 32


name: ib_uverbs_ex_create_cq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_create_cq
    .user_handle     resb 8
    .cqe             resb 4
    .comp_vector     resb 4
    .comp_channel    resb 4
    .comp_mask       resb 4
    .flags           resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_ex_create_cq_size 32


name: ib_uverbs_create_cq_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_cq_resp
    .cq_handle       resb 4
    .cqe             resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_create_cq_resp_size 8


name: ib_uverbs_ex_create_cq_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_create_cq_resp
    .base            resb 8 ; struc ib_uverbs_create_cq_resp
    .comp_mask       resb 4
    .response_length resb 4
endstruc
%define struc_ib_uverbs_ex_create_cq_resp_size 16


name: ib_uverbs_resize_cq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_resize_cq
    .response        resb 8
    .cq_handle       resb 4
    .cqe             resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_resize_cq_size 16


name: ib_uverbs_resize_cq_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_resize_cq_resp
    .cqe             resb 4
    .reserved        resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_resize_cq_resp_size 8


name: ib_uverbs_poll_cq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_poll_cq
    .response        resb 8
    .cq_handle       resb 4
    .ne              resb 4
endstruc
%define struc_ib_uverbs_poll_cq_size 16


name: ib_uverbs_wc
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_wc
    .wr_id           resb 8
    .status          resb 4
    .opcode          resb 4
    .vendor_err      resb 4
    .byte_len        resb 4
    .ex              resb 4 ; union None
    .qp_num          resb 4
    .src_qp          resb 4
    .wc_flags        resb 4
    .pkey_index      resb 2
    .slid            resb 2
    .sl              resb 1
    .dlid_path_bits  resb 1
    .port_num        resb 1
    .reserved        resb 1
endstruc
%define struc_ib_uverbs_wc_size 48


name: ib_uverbs_poll_cq_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_poll_cq_resp
    .count           resb 4
    .reserved        resb 4
    .wc              resb 0 ; None
endstruc
%define struc_ib_uverbs_poll_cq_resp_size 8


name: ib_uverbs_req_notify_cq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_req_notify_cq
    .cq_handle       resb 4
    .solicited_only  resb 4
endstruc
%define struc_ib_uverbs_req_notify_cq_size 8


name: ib_uverbs_destroy_cq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_destroy_cq
    .response        resb 8
    .cq_handle       resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_destroy_cq_size 16


name: ib_uverbs_destroy_cq_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_destroy_cq_resp
    .comp_events_rep resb 4
    .async_events_re resb 4
endstruc
%define struc_ib_uverbs_destroy_cq_resp_size 8


name: ib_uverbs_global_route
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_global_route
    .dgid            resb 16 ; None
    .flow_label      resb 4
    .sgid_index      resb 1
    .hop_limit       resb 1
    .traffic_class   resb 1
    .reserved        resb 1
endstruc
%define struc_ib_uverbs_global_route_size 24


name: ib_uverbs_ah_attr
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ah_attr
    .grh             resb 24 ; struc ib_uverbs_global_route
    .dlid            resb 2
    .sl              resb 1
    .src_path_bits   resb 1
    .static_rate     resb 1
    .is_global       resb 1
    .port_num        resb 1
    .reserved        resb 1
endstruc
%define struc_ib_uverbs_ah_attr_size 32


name: ib_uverbs_qp_attr
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_qp_attr
    .qp_attr_mask    resb 4
    .qp_state        resb 4
    .cur_qp_state    resb 4
    .path_mtu        resb 4
    .path_mig_state  resb 4
    .qkey            resb 4
    .rq_psn          resb 4
    .sq_psn          resb 4
    .dest_qp_num     resb 4
    .qp_access_flags resb 4
    .ah_attr         resb 32 ; struc ib_uverbs_ah_attr
    .alt_ah_attr     resb 32 ; struc ib_uverbs_ah_attr
    .max_send_wr     resb 4
    .max_recv_wr     resb 4
    .max_send_sge    resb 4
    .max_recv_sge    resb 4
    .max_inline_data resb 4
    .pkey_index      resb 2
    .alt_pkey_index  resb 2
    .en_sqd_async_no resb 1
    .sq_draining     resb 1
    .max_rd_atomic   resb 1
    .max_dest_rd_ato resb 1
    .min_rnr_timer   resb 1
    .port_num        resb 1
    .timeout         resb 1
    .retry_cnt       resb 1
    .rnr_retry       resb 1
    .alt_port_num    resb 1
    .alt_timeout     resb 1
    .reserved        resb 5 ; None
endstruc
%define struc_ib_uverbs_qp_attr_size 144


name: ib_uverbs_create_qp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_qp
    .response        resb 8
    .user_handle     resb 8
    .pd_handle       resb 4
    .send_cq_handle  resb 4
    .recv_cq_handle  resb 4
    .srq_handle      resb 4
    .max_send_wr     resb 4
    .max_recv_wr     resb 4
    .max_send_sge    resb 4
    .max_recv_sge    resb 4
    .max_inline_data resb 4
    .sq_sig_all      resb 1
    .qp_type         resb 1
    .is_srq          resb 1
    .reserved        resb 1
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_create_qp_size 56


name: ib_uverbs_ex_create_qp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_create_qp
    .user_handle     resb 8
    .pd_handle       resb 4
    .send_cq_handle  resb 4
    .recv_cq_handle  resb 4
    .srq_handle      resb 4
    .max_send_wr     resb 4
    .max_recv_wr     resb 4
    .max_send_sge    resb 4
    .max_recv_sge    resb 4
    .max_inline_data resb 4
    .sq_sig_all      resb 1
    .qp_type         resb 1
    .is_srq          resb 1
    .reserved        resb 1
    .comp_mask       resb 4
    .create_flags    resb 4
    .rwq_ind_tbl_han resb 4
    .source_qpn      resb 4
endstruc
%define struc_ib_uverbs_ex_create_qp_size 64


name: ib_uverbs_open_qp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_open_qp
    .response        resb 8
    .user_handle     resb 8
    .pd_handle       resb 4
    .qpn             resb 4
    .qp_type         resb 1
    .reserved        resb 7 ; None
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_open_qp_size 32


name: ib_uverbs_create_qp_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_qp_resp
    .qp_handle       resb 4
    .qpn             resb 4
    .max_send_wr     resb 4
    .max_recv_wr     resb 4
    .max_send_sge    resb 4
    .max_recv_sge    resb 4
    .max_inline_data resb 4
    .reserved        resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_create_qp_resp_size 32


name: ib_uverbs_ex_create_qp_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_create_qp_resp
    .base            resb 32 ; struc ib_uverbs_create_qp_resp
    .comp_mask       resb 4
    .response_length resb 4
endstruc
%define struc_ib_uverbs_ex_create_qp_resp_size 40


name: ib_uverbs_qp_dest
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_qp_dest
    .dgid            resb 16 ; None
    .flow_label      resb 4
    .dlid            resb 2
    .reserved        resb 2
    .sgid_index      resb 1
    .hop_limit       resb 1
    .traffic_class   resb 1
    .sl              resb 1
    .src_path_bits   resb 1
    .static_rate     resb 1
    .is_global       resb 1
    .port_num        resb 1
endstruc
%define struc_ib_uverbs_qp_dest_size 32


name: ib_uverbs_query_qp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_query_qp
    .response        resb 8
    .qp_handle       resb 4
    .attr_mask       resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_query_qp_size 16


name: ib_uverbs_query_qp_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_query_qp_resp
    .dest            resb 32 ; struc ib_uverbs_qp_dest
    .alt_dest        resb 32 ; struc ib_uverbs_qp_dest
    .max_send_wr     resb 4
    .max_recv_wr     resb 4
    .max_send_sge    resb 4
    .max_recv_sge    resb 4
    .max_inline_data resb 4
    .qkey            resb 4
    .rq_psn          resb 4
    .sq_psn          resb 4
    .dest_qp_num     resb 4
    .qp_access_flags resb 4
    .pkey_index      resb 2
    .alt_pkey_index  resb 2
    .qp_state        resb 1
    .cur_qp_state    resb 1
    .path_mtu        resb 1
    .path_mig_state  resb 1
    .sq_draining     resb 1
    .max_rd_atomic   resb 1
    .max_dest_rd_ato resb 1
    .min_rnr_timer   resb 1
    .port_num        resb 1
    .timeout         resb 1
    .retry_cnt       resb 1
    .rnr_retry       resb 1
    .alt_port_num    resb 1
    .alt_timeout     resb 1
    .sq_sig_all      resb 1
    .reserved        resb 5 ; None
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_query_qp_resp_size 128


name: ib_uverbs_modify_qp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_modify_qp
    .dest            resb 32 ; struc ib_uverbs_qp_dest
    .alt_dest        resb 32 ; struc ib_uverbs_qp_dest
    .qp_handle       resb 4
    .attr_mask       resb 4
    .qkey            resb 4
    .rq_psn          resb 4
    .sq_psn          resb 4
    .dest_qp_num     resb 4
    .qp_access_flags resb 4
    .pkey_index      resb 2
    .alt_pkey_index  resb 2
    .qp_state        resb 1
    .cur_qp_state    resb 1
    .path_mtu        resb 1
    .path_mig_state  resb 1
    .en_sqd_async_no resb 1
    .max_rd_atomic   resb 1
    .max_dest_rd_ato resb 1
    .min_rnr_timer   resb 1
    .port_num        resb 1
    .timeout         resb 1
    .retry_cnt       resb 1
    .rnr_retry       resb 1
    .alt_port_num    resb 1
    .alt_timeout     resb 1
    .reserved        resb 2 ; None
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_modify_qp_size 112


name: ib_uverbs_ex_modify_qp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_modify_qp
    .base            resb 112 ; struc ib_uverbs_modify_qp
    .rate_limit      resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_ex_modify_qp_size 120


name: ib_uverbs_ex_modify_qp_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_modify_qp_resp
    .comp_mask       resb 4
    .response_length resb 4
endstruc
%define struc_ib_uverbs_ex_modify_qp_resp_size 8


name: ib_uverbs_destroy_qp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_destroy_qp
    .response        resb 8
    .qp_handle       resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_destroy_qp_size 16


name: ib_uverbs_destroy_qp_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_destroy_qp_resp
    .events_reported resb 4
endstruc
%define struc_ib_uverbs_destroy_qp_resp_size 4


name: ib_uverbs_sge
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_sge
    .addr            resb 8
    .length          resb 4
    .lkey            resb 4
endstruc
%define struc_ib_uverbs_sge_size 16


name: ib_uverbs_send_wr
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_send_wr
    .wr_id           resb 8
    .num_sge         resb 4
    .opcode          resb 4
    .send_flags      resb 4
    .ex              resb 4 ; union None
    .wr              resb 32 ; union None
endstruc
%define struc_ib_uverbs_send_wr_size 56


name: ib_uverbs_post_send
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_post_send
    .response        resb 8
    .qp_handle       resb 4
    .wr_count        resb 4
    .sge_count       resb 4
    .wqe_size        resb 4
    .send_wr         resb 0 ; None
endstruc
%define struc_ib_uverbs_post_send_size 24


name: ib_uverbs_post_send_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_post_send_resp
    .bad_wr          resb 4
endstruc
%define struc_ib_uverbs_post_send_resp_size 4


name: ib_uverbs_recv_wr
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_recv_wr
    .wr_id           resb 8
    .num_sge         resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_recv_wr_size 16


name: ib_uverbs_post_recv
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_post_recv
    .response        resb 8
    .qp_handle       resb 4
    .wr_count        resb 4
    .sge_count       resb 4
    .wqe_size        resb 4
    .recv_wr         resb 0 ; None
endstruc
%define struc_ib_uverbs_post_recv_size 24


name: ib_uverbs_post_recv_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_post_recv_resp
    .bad_wr          resb 4
endstruc
%define struc_ib_uverbs_post_recv_resp_size 4


name: ib_uverbs_post_srq_recv
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_post_srq_recv
    .response        resb 8
    .srq_handle      resb 4
    .wr_count        resb 4
    .sge_count       resb 4
    .wqe_size        resb 4
    .recv            resb 0 ; None
endstruc
%define struc_ib_uverbs_post_srq_recv_size 24


name: ib_uverbs_post_srq_recv_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_post_srq_recv_resp
    .bad_wr          resb 4
endstruc
%define struc_ib_uverbs_post_srq_recv_resp_size 4


name: ib_uverbs_create_ah
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_ah
    .response        resb 8
    .user_handle     resb 8
    .pd_handle       resb 4
    .reserved        resb 4
    .attr            resb 32 ; struc ib_uverbs_ah_attr
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_create_ah_size 56


name: ib_uverbs_create_ah_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_ah_resp
    .ah_handle       resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_create_ah_resp_size 4


name: ib_uverbs_destroy_ah
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_destroy_ah
    .ah_handle       resb 4
endstruc
%define struc_ib_uverbs_destroy_ah_size 4


name: ib_uverbs_attach_mcast
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_attach_mcast
    .gid             resb 16 ; None
    .qp_handle       resb 4
    .mlid            resb 2
    .reserved        resb 2
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_attach_mcast_size 24


name: ib_uverbs_detach_mcast
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_detach_mcast
    .gid             resb 16 ; None
    .qp_handle       resb 4
    .mlid            resb 2
    .reserved        resb 2
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_detach_mcast_size 24


name: ib_uverbs_flow_spec_hdr
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_flow_spec_hdr
    .type            resb 4
    .size            resb 2
    .reserved        resb 2
    .flow_spec_data  resb 0 ; None
endstruc
%define struc_ib_uverbs_flow_spec_hdr_size 8


name: ib_uverbs_flow_eth_filter
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_flow_eth_filter
    .dst_mac         resb 6 ; None
    .src_mac         resb 6 ; None
    .ether_type      resb 2
    .vlan_tag        resb 2
endstruc
%define struc_ib_uverbs_flow_eth_filter_size 16


name: ib_uverbs_flow_ipv4_filter
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_flow_ipv4_filter
    .src_ip          resb 4
    .dst_ip          resb 4
    .proto           resb 1
    .tos             resb 1
    .ttl             resb 1
    .flags           resb 1
endstruc
%define struc_ib_uverbs_flow_ipv4_filter_size 12


name: ib_uverbs_flow_tcp_udp_filter
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_flow_tcp_udp_filter
    .dst_port        resb 2
    .src_port        resb 2
endstruc
%define struc_ib_uverbs_flow_tcp_udp_filter_size 4


name: ib_uverbs_flow_ipv6_filter
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_flow_ipv6_filter
    .src_ip          resb 16 ; None
    .dst_ip          resb 16 ; None
    .flow_label      resb 4
    .next_hdr        resb 1
    .traffic_class   resb 1
    .hop_limit       resb 1
    .reserved        resb 1
endstruc
%define struc_ib_uverbs_flow_ipv6_filter_size 40


name: ib_uverbs_flow_tunnel_filter
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_flow_tunnel_filter
    .tunnel_id       resb 4
endstruc
%define struc_ib_uverbs_flow_tunnel_filter_size 4


name: ib_uverbs_flow_spec_esp_filter
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_flow_spec_esp_filter
    .spi             resb 4
    .seq             resb 4
endstruc
%define struc_ib_uverbs_flow_spec_esp_filter_size 8


name: ib_uverbs_flow_gre_filter
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_flow_gre_filter
    .c_ks_res0_ver   resb 2
    .protocol        resb 2
    .key             resb 4
endstruc
%define struc_ib_uverbs_flow_gre_filter_size 8


name: ib_uverbs_flow_mpls_filter
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_flow_mpls_filter
    .label           resb 4
endstruc
%define struc_ib_uverbs_flow_mpls_filter_size 4


name: ib_uverbs_flow_attr
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_flow_attr
    .type            resb 4
    .size            resb 2
    .priority        resb 2
    .num_of_specs    resb 1
    .reserved        resb 2 ; None
    .port            resb 1
    .flags           resb 4
    .flow_specs      resb 0 ; None
endstruc
%define struc_ib_uverbs_flow_attr_size 16


name: ib_uverbs_create_flow
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_flow
    .comp_mask       resb 4
    .qp_handle       resb 4
    .flow_attr       resb 16 ; struc ib_uverbs_flow_attr
endstruc
%define struc_ib_uverbs_create_flow_size 24


name: ib_uverbs_create_flow_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_flow_resp
    .comp_mask       resb 4
    .flow_handle     resb 4
endstruc
%define struc_ib_uverbs_create_flow_resp_size 8


name: ib_uverbs_destroy_flow
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_destroy_flow
    .comp_mask       resb 4
    .flow_handle     resb 4
endstruc
%define struc_ib_uverbs_destroy_flow_size 8


name: ib_uverbs_create_srq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_srq
    .response        resb 8
    .user_handle     resb 8
    .pd_handle       resb 4
    .max_wr          resb 4
    .max_sge         resb 4
    .srq_limit       resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_create_srq_size 32


name: ib_uverbs_create_xsrq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_xsrq
    .response        resb 8
    .user_handle     resb 8
    .srq_type        resb 4
    .pd_handle       resb 4
    .max_wr          resb 4
    .max_sge         resb 4
    .srq_limit       resb 4
    .max_num_tags    resb 4
    .xrcd_handle     resb 4
    .cq_handle       resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_create_xsrq_size 48


name: ib_uverbs_create_srq_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_create_srq_resp
    .srq_handle      resb 4
    .max_wr          resb 4
    .max_sge         resb 4
    .srqn            resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_create_srq_resp_size 16


name: ib_uverbs_modify_srq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_modify_srq
    .srq_handle      resb 4
    .attr_mask       resb 4
    .max_wr          resb 4
    .srq_limit       resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_modify_srq_size 16


name: ib_uverbs_query_srq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_query_srq
    .response        resb 8
    .srq_handle      resb 4
    .reserved        resb 4
    .driver_data     resb 0 ; None
endstruc
%define struc_ib_uverbs_query_srq_size 16


name: ib_uverbs_query_srq_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_query_srq_resp
    .max_wr          resb 4
    .max_sge         resb 4
    .srq_limit       resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_query_srq_resp_size 16


name: ib_uverbs_destroy_srq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_destroy_srq
    .response        resb 8
    .srq_handle      resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_destroy_srq_size 16


name: ib_uverbs_destroy_srq_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_destroy_srq_resp
    .events_reported resb 4
endstruc
%define struc_ib_uverbs_destroy_srq_resp_size 4


name: ib_uverbs_ex_create_wq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_create_wq
    .comp_mask       resb 4
    .wq_type         resb 4
    .user_handle     resb 8
    .pd_handle       resb 4
    .cq_handle       resb 4
    .max_wr          resb 4
    .max_sge         resb 4
    .create_flags    resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_ex_create_wq_size 40


name: ib_uverbs_ex_create_wq_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_create_wq_resp
    .comp_mask       resb 4
    .response_length resb 4
    .wq_handle       resb 4
    .max_wr          resb 4
    .max_sge         resb 4
    .wqn             resb 4
endstruc
%define struc_ib_uverbs_ex_create_wq_resp_size 24


name: ib_uverbs_ex_destroy_wq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_destroy_wq
    .comp_mask       resb 4
    .wq_handle       resb 4
endstruc
%define struc_ib_uverbs_ex_destroy_wq_size 8


name: ib_uverbs_ex_destroy_wq_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_destroy_wq_resp
    .comp_mask       resb 4
    .response_length resb 4
    .events_reported resb 4
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_ex_destroy_wq_resp_size 16


name: ib_uverbs_ex_modify_wq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_modify_wq
    .attr_mask       resb 4
    .wq_handle       resb 4
    .wq_state        resb 4
    .curr_wq_state   resb 4
    .flags           resb 4
    .flags_mask      resb 4
endstruc
%define struc_ib_uverbs_ex_modify_wq_size 24


name: ib_uverbs_ex_create_rwq_ind_table
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_create_rwq_ind_table
    .comp_mask       resb 4
    .log_ind_tbl_siz resb 4
    .wq_handles      resb 0 ; None
endstruc
%define struc_ib_uverbs_ex_create_rwq_ind_table_size 8


name: ib_uverbs_ex_create_rwq_ind_table_resp
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_create_rwq_ind_table_resp
    .comp_mask       resb 4
    .response_length resb 4
    .ind_tbl_handle  resb 4
    .ind_tbl_num     resb 4
endstruc
%define struc_ib_uverbs_ex_create_rwq_ind_table_resp_size 16


name: ib_uverbs_ex_destroy_rwq_ind_table
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_destroy_rwq_ind_table
    .comp_mask       resb 4
    .ind_tbl_handle  resb 4
endstruc
%define struc_ib_uverbs_ex_destroy_rwq_ind_table_size 8


name: ib_uverbs_cq_moderation
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_cq_moderation
    .cq_count        resb 2
    .cq_period       resb 2
endstruc
%define struc_ib_uverbs_cq_moderation_size 4


name: ib_uverbs_ex_modify_cq
include_file: /usr/include/rdma/ib_user_verbs.h
nasm_code:
; from header /usr/include/rdma/ib_user_verbs.h
struc ib_uverbs_ex_modify_cq
    .cq_handle       resb 4
    .attr_mask       resb 4
    .attr            resb 4 ; struc ib_uverbs_cq_moderation
    .reserved        resb 4
endstruc
%define struc_ib_uverbs_ex_modify_cq_size 16


name: c4iw_create_cq
include_file: /usr/include/rdma/cxgb4-abi.h
nasm_code:
; from header /usr/include/rdma/cxgb4-abi.h
struc c4iw_create_cq
    .flags           resb 4
    .reserved        resb 4
endstruc
%define struc_c4iw_create_cq_size 8


name: c4iw_create_cq_resp
include_file: /usr/include/rdma/cxgb4-abi.h
nasm_code:
; from header /usr/include/rdma/cxgb4-abi.h
struc c4iw_create_cq_resp
    .key             resb 8
    .gts_key         resb 8
    .memsize         resb 8
    .cqid            resb 4
    .size            resb 4
    .qid_mask        resb 4
    .flags           resb 4
endstruc
%define struc_c4iw_create_cq_resp_size 40


name: c4iw_create_qp_resp
include_file: /usr/include/rdma/cxgb4-abi.h
nasm_code:
; from header /usr/include/rdma/cxgb4-abi.h
struc c4iw_create_qp_resp
    .ma_sync_key     resb 8
    .sq_key          resb 8
    .rq_key          resb 8
    .sq_db_gts_key   resb 8
    .rq_db_gts_key   resb 8
    .sq_memsize      resb 8
    .rq_memsize      resb 8
    .sqid            resb 4
    .rqid            resb 4
    .sq_size         resb 4
    .rq_size         resb 4
    .qid_mask        resb 4
    .flags           resb 4
endstruc
%define struc_c4iw_create_qp_resp_size 80


name: c4iw_create_srq_resp
include_file: /usr/include/rdma/cxgb4-abi.h
nasm_code:
; from header /usr/include/rdma/cxgb4-abi.h
struc c4iw_create_srq_resp
    .srq_key         resb 8
    .srq_db_gts_key  resb 8
    .srq_memsize     resb 8
    .srqid           resb 4
    .srq_size        resb 4
    .rqt_abs_idx     resb 4
    .qid_mask        resb 4
    .flags           resb 4
    .reserved        resb 4
endstruc
%define struc_c4iw_create_srq_resp_size 48


name: c4iw_alloc_ucontext_resp
include_file: /usr/include/rdma/cxgb4-abi.h
nasm_code:
; from header /usr/include/rdma/cxgb4-abi.h
struc c4iw_alloc_ucontext_resp
    .status_page_key resb 8
    .status_page_siz resb 4
    .reserved        resb 4
endstruc
%define struc_c4iw_alloc_ucontext_resp_size 16


name: c4iw_alloc_pd_resp
include_file: /usr/include/rdma/cxgb4-abi.h
nasm_code:
; from header /usr/include/rdma/cxgb4-abi.h
struc c4iw_alloc_pd_resp
    .pdid            resb 4
endstruc
%define struc_c4iw_alloc_pd_resp_size 4


name: rxe_global_route
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc rxe_global_route
    .dgid            resb 16 ; union rxe_gid
    .flow_label      resb 4
    .sgid_index      resb 1
    .hop_limit       resb 1
    .traffic_class   resb 1
endstruc
%define struc_rxe_global_route_size 24


name: rxe_av
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc rxe_av
    .port_num        resb 1
    .network_type    resb 1
    .dmac            resb 6 ; None
    .grh             resb 24 ; struc rxe_global_route
    .sgid_addr       resb 28 ; union None
    .dgid_addr       resb 28 ; union None
endstruc
%define struc_rxe_av_size 88


name: rxe_send_wr
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc rxe_send_wr
    .wr_id           resb 8
    .num_sge         resb 4
    .opcode          resb 4
    .send_flags      resb 4
    .ex              resb 4 ; union None
    .wr              resb 32 ; union None
endstruc
%define struc_rxe_send_wr_size 56


name: rxe_sge
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc rxe_sge
    .addr            resb 8
    .length          resb 4
    .lkey            resb 4
endstruc
%define struc_rxe_sge_size 16


name: mminfo
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc mminfo
    .offset          resb 8
    .size            resb 4
    .pad             resb 4
endstruc
%define struc_mminfo_size 16


name: rxe_send_wqe
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc rxe_send_wqe
    .wr              resb 56 ; struc rxe_send_wr
    .av              resb 88 ; struc rxe_av
    .status          resb 4
    .state           resb 4
    .iova            resb 8
    .mask            resb 4
    .first_psn       resb 4
    .last_psn        resb 4
    .ack_length      resb 4
    .ssn             resb 4
    .has_rd_atomic   resb 4
    .dma             resb 24 ; struc rxe_dma_info
endstruc
%define struc_rxe_send_wqe_size 208


name: rxe_recv_wqe
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc rxe_recv_wqe
    .wr_id           resb 8
    .num_sge         resb 4
    .padding         resb 4
    .dma             resb 24 ; struc rxe_dma_info
endstruc
%define struc_rxe_recv_wqe_size 40


name: rxe_create_cq_resp
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc rxe_create_cq_resp
    .mi              resb 16 ; struc mminfo
endstruc
%define struc_rxe_create_cq_resp_size 16


name: rxe_resize_cq_resp
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc rxe_resize_cq_resp
    .mi              resb 16 ; struc mminfo
endstruc
%define struc_rxe_resize_cq_resp_size 16


name: rxe_create_qp_resp
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc rxe_create_qp_resp
    .rq_mi           resb 16 ; struc mminfo
    .sq_mi           resb 16 ; struc mminfo
endstruc
%define struc_rxe_create_qp_resp_size 32


name: rxe_create_srq_resp
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc rxe_create_srq_resp
    .mi              resb 16 ; struc mminfo
    .srq_num         resb 4
    .reserved        resb 4
endstruc
%define struc_rxe_create_srq_resp_size 24


name: rxe_modify_srq_cmd
include_file: /usr/include/rdma/rdma_user_rxe.h
nasm_code:
; from header /usr/include/rdma/rdma_user_rxe.h
struc rxe_modify_srq_cmd
    .mmap_info_addr  resb 8
endstruc
%define struc_rxe_modify_srq_cmd_size 8


name: hfi1_user_info
include_file: /usr/include/rdma/hfi/hfi1_ioctl.h
nasm_code:
; from header /usr/include/rdma/hfi/hfi1_ioctl.h
struc hfi1_user_info
    .userversion     resb 4
    .pad             resb 4
    .subctxt_cnt     resb 2
    .subctxt_id      resb 2
    .uuid            resb 16 ; None
endstruc
%define struc_hfi1_user_info_size 28


name: hfi1_ctxt_info
include_file: /usr/include/rdma/hfi/hfi1_ioctl.h
nasm_code:
; from header /usr/include/rdma/hfi/hfi1_ioctl.h
struc hfi1_ctxt_info
    .runtime_flags   resb 8
    .rcvegr_size     resb 4
    .num_active      resb 2
    .unit            resb 2
    .ctxt            resb 2
    .subctxt         resb 2
    .rcvtids         resb 2
    .credits         resb 2
    .numa_node       resb 2
    .rec_cpu         resb 2
    .send_ctxt       resb 2
    .egrtids         resb 2
    .rcvhdrq_cnt     resb 2
    .rcvhdrq_entsize resb 2
    .sdma_ring_size  resb 2
endstruc
%define struc_hfi1_ctxt_info_size 40


name: hfi1_tid_info
include_file: /usr/include/rdma/hfi/hfi1_ioctl.h
nasm_code:
; from header /usr/include/rdma/hfi/hfi1_ioctl.h
struc hfi1_tid_info
    .vaddr           resb 8
    .tidlist         resb 8
    .tidcnt          resb 4
    .length          resb 4
endstruc
%define struc_hfi1_tid_info_size 24


name: hfi1_base_info
include_file: /usr/include/rdma/hfi/hfi1_ioctl.h
nasm_code:
; from header /usr/include/rdma/hfi/hfi1_ioctl.h
struc hfi1_base_info
    .hw_version      resb 4
    .sw_version      resb 4
    .jkey            resb 2
    .padding1        resb 2
    .bthqp           resb 4
    .sc_credits_addr resb 8
    .pio_bufbase_sop resb 8
    .pio_bufbase     resb 8
    .rcvhdr_bufbase  resb 8
    .rcvegr_bufbase  resb 8
    .sdma_comp_bufba resb 8
    .user_regbase    resb 8
    .events_bufbase  resb 8
    .status_bufbase  resb 8
    .rcvhdrtail_base resb 8
    .subctxt_uregbas resb 8
    .subctxt_rcvegrb resb 8
    .subctxt_rcvhdrb resb 8
endstruc
%define struc_hfi1_base_info_size 120


name: hfi1_sdma_comp_entry
include_file: /usr/include/rdma/hfi/hfi1_user.h
nasm_code:
; from header /usr/include/rdma/hfi/hfi1_user.h
struc hfi1_sdma_comp_entry
    .status          resb 4
    .errcode         resb 4
endstruc
%define struc_hfi1_sdma_comp_entry_size 8


name: hfi1_status
include_file: /usr/include/rdma/hfi/hfi1_user.h
nasm_code:
; from header /usr/include/rdma/hfi/hfi1_user.h
struc hfi1_status
    .dev             resb 8
    .port            resb 8
    .freezemsg       resb 0 ; None
endstruc
%define struc_hfi1_status_size 16


name: sdma_req_info
include_file: /usr/include/rdma/hfi/hfi1_user.h
nasm_code:
; from header /usr/include/rdma/hfi/hfi1_user.h
struc sdma_req_info
    .ctrl            resb 2
    .npkts           resb 2
    .fragsize        resb 2
    .comp_idx        resb 2
endstruc
%define struc_sdma_req_info_size 8


name: hfi1_kdeth_header
include_file: /usr/include/rdma/hfi/hfi1_user.h
nasm_code:
; from header /usr/include/rdma/hfi/hfi1_user.h
struc hfi1_kdeth_header
    .ver_tid_offset  resb 4
    .jkey            resb 2
    .hcrc            resb 2
    .swdata          resb 28 ; None
endstruc
%define struc_hfi1_kdeth_header_size 36


name: hfi1_pkt_header
include_file: /usr/include/rdma/hfi/hfi1_user.h
nasm_code:
; from header /usr/include/rdma/hfi/hfi1_user.h
struc hfi1_pkt_header
    .pbc             resb 8 ; None
    .lrh             resb 8 ; None
    .bth             resb 12 ; None
    .kdeth           resb 36 ; struc hfi1_kdeth_header
endstruc
%define struc_hfi1_pkt_header_size 64


name: i40iw_alloc_ucontext_req
include_file: /usr/include/rdma/i40iw-abi.h
nasm_code:
; from header /usr/include/rdma/i40iw-abi.h
struc i40iw_alloc_ucontext_req
    .reserved32      resb 4
    .userspace_ver   resb 1
    .reserved8       resb 3 ; None
endstruc
%define struc_i40iw_alloc_ucontext_req_size 8


name: i40iw_alloc_ucontext_resp
include_file: /usr/include/rdma/i40iw-abi.h
nasm_code:
; from header /usr/include/rdma/i40iw-abi.h
struc i40iw_alloc_ucontext_resp
    .max_pds         resb 4
    .max_qps         resb 4
    .wq_size         resb 4
    .kernel_ver      resb 1
    .reserved        resb 3 ; None
endstruc
%define struc_i40iw_alloc_ucontext_resp_size 16


name: i40iw_alloc_pd_resp
include_file: /usr/include/rdma/i40iw-abi.h
nasm_code:
; from header /usr/include/rdma/i40iw-abi.h
struc i40iw_alloc_pd_resp
    .pd_id           resb 4
    .reserved        resb 4 ; None
endstruc
%define struc_i40iw_alloc_pd_resp_size 8


name: i40iw_create_cq_req
include_file: /usr/include/rdma/i40iw-abi.h
nasm_code:
; from header /usr/include/rdma/i40iw-abi.h
struc i40iw_create_cq_req
    .user_cq_buffer  resb 8
    .user_shadow_are resb 8
endstruc
%define struc_i40iw_create_cq_req_size 16


name: i40iw_create_qp_req
include_file: /usr/include/rdma/i40iw-abi.h
nasm_code:
; from header /usr/include/rdma/i40iw-abi.h
struc i40iw_create_qp_req
    .user_wqe_buffer resb 8
    .user_compl_ctx  resb 8
    .user_sq_phb     resb 8
    .user_rq_phb     resb 8
endstruc
%define struc_i40iw_create_qp_req_size 32


name: i40iw_mem_reg_req
include_file: /usr/include/rdma/i40iw-abi.h
nasm_code:
; from header /usr/include/rdma/i40iw-abi.h
struc i40iw_mem_reg_req
    .reg_type        resb 2
    .cq_pages        resb 2
    .rq_pages        resb 2
    .sq_pages        resb 2
endstruc
%define struc_i40iw_mem_reg_req_size 8


name: i40iw_create_cq_resp
include_file: /usr/include/rdma/i40iw-abi.h
nasm_code:
; from header /usr/include/rdma/i40iw-abi.h
struc i40iw_create_cq_resp
    .cq_id           resb 4
    .cq_size         resb 4
    .mmap_db_index   resb 4
    .reserved        resb 4
endstruc
%define struc_i40iw_create_cq_resp_size 16


name: i40iw_create_qp_resp
include_file: /usr/include/rdma/i40iw-abi.h
nasm_code:
; from header /usr/include/rdma/i40iw-abi.h
struc i40iw_create_qp_resp
    .qp_id           resb 4
    .actual_sq_size  resb 4
    .actual_rq_size  resb 4
    .i40iw_drv_opt   resb 4
    .push_idx        resb 2
    .lsmm            resb 1
    .rsvd2           resb 1
endstruc
%define struc_i40iw_create_qp_resp_size 20


name: ib_uverbs_ioctl_hdr
include_file: /usr/include/rdma/rdma_user_ioctl_cmds.h
nasm_code:
; from header /usr/include/rdma/rdma_user_ioctl_cmds.h
struc ib_uverbs_ioctl_hdr
    .length          resb 2
    .object_id       resb 2
    .method_id       resb 2
    .num_attrs       resb 2
    .reserved1       resb 8
    .driver_id       resb 4
    .reserved2       resb 4
    .attrs           resb 0 ; None
endstruc
%define struc_ib_uverbs_ioctl_hdr_size 24


name: mlx5_ib_match_params
include_file: /usr/include/rdma/mlx5_user_ioctl_cmds.h
nasm_code:
; from header /usr/include/rdma/mlx5_user_ioctl_cmds.h
struc mlx5_ib_match_params
    .match_params    resb 512 ; None
endstruc
%define struc_mlx5_ib_match_params_size 512


name: mlx4_ib_alloc_ucontext_resp_v3
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_alloc_ucontext_resp_v3
    .qp_tab_size     resb 4
    .bf_reg_size     resb 2
    .bf_regs_per_pag resb 2
endstruc
%define struc_mlx4_ib_alloc_ucontext_resp_v3_size 8


name: mlx4_ib_alloc_ucontext_resp
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_alloc_ucontext_resp
    .dev_caps        resb 4
    .qp_tab_size     resb 4
    .bf_reg_size     resb 2
    .bf_regs_per_pag resb 2
    .cqe_size        resb 4
endstruc
%define struc_mlx4_ib_alloc_ucontext_resp_size 16


name: mlx4_ib_alloc_pd_resp
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_alloc_pd_resp
    .pdn             resb 4
    .reserved        resb 4
endstruc
%define struc_mlx4_ib_alloc_pd_resp_size 8


name: mlx4_ib_create_cq
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_create_cq
    .buf_addr        resb 8
    .db_addr         resb 8
endstruc
%define struc_mlx4_ib_create_cq_size 16


name: mlx4_ib_create_cq_resp
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_create_cq_resp
    .cqn             resb 4
    .reserved        resb 4
endstruc
%define struc_mlx4_ib_create_cq_resp_size 8


name: mlx4_ib_resize_cq
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_resize_cq
    .buf_addr        resb 8
endstruc
%define struc_mlx4_ib_resize_cq_size 8


name: mlx4_ib_create_srq
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_create_srq
    .buf_addr        resb 8
    .db_addr         resb 8
endstruc
%define struc_mlx4_ib_create_srq_size 16


name: mlx4_ib_create_srq_resp
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_create_srq_resp
    .srqn            resb 4
    .reserved        resb 4
endstruc
%define struc_mlx4_ib_create_srq_resp_size 8


name: mlx4_ib_create_qp_rss
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_create_qp_rss
    .rx_hash_fields_ resb 8
    .rx_hash_functio resb 1
    .reserved        resb 7 ; None
    .rx_hash_key     resb 40 ; None
    .comp_mask       resb 4
    .reserved1       resb 4
endstruc
%define struc_mlx4_ib_create_qp_rss_size 64


name: mlx4_ib_create_qp
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_create_qp
    .buf_addr        resb 8
    .db_addr         resb 8
    .log_sq_bb_count resb 1
    .log_sq_stride   resb 1
    .sq_no_prefetch  resb 1
    .reserved        resb 1
    .inl_recv_sz     resb 4
endstruc
%define struc_mlx4_ib_create_qp_size 24


name: mlx4_ib_create_wq
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_create_wq
    .buf_addr        resb 8
    .db_addr         resb 8
    .log_range_size  resb 1
    .reserved        resb 3 ; None
    .comp_mask       resb 4
endstruc
%define struc_mlx4_ib_create_wq_size 24


name: mlx4_ib_modify_wq
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_modify_wq
    .comp_mask       resb 4
    .reserved        resb 4
endstruc
%define struc_mlx4_ib_modify_wq_size 8


name: mlx4_ib_create_rwq_ind_tbl_resp
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_create_rwq_ind_tbl_resp
    .response_length resb 4
    .reserved        resb 4
endstruc
%define struc_mlx4_ib_create_rwq_ind_tbl_resp_size 8


name: mlx4_ib_rss_caps
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_rss_caps
    .rx_hash_fields_ resb 8
    .rx_hash_functio resb 1
    .reserved        resb 7 ; None
endstruc
%define struc_mlx4_ib_rss_caps_size 16


name: mlx4_ib_tso_caps
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_ib_tso_caps
    .max_tso         resb 4
    .supported_qpts  resb 4
endstruc
%define struc_mlx4_ib_tso_caps_size 8


name: mlx4_uverbs_ex_query_device_resp
include_file: /usr/include/rdma/mlx4-abi.h
nasm_code:
; from header /usr/include/rdma/mlx4-abi.h
struc mlx4_uverbs_ex_query_device_resp
    .comp_mask       resb 4
    .response_length resb 4
    .hca_core_clock_ resb 8
    .max_inl_recv_sz resb 4
    .reserved        resb 4
    .rss_caps        resb 16 ; struc mlx4_ib_rss_caps
    .tso_caps        resb 8 ; struc mlx4_ib_tso_caps
endstruc
%define struc_mlx4_uverbs_ex_query_device_resp_size 48


name: pvrdma_alloc_ucontext_resp
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_alloc_ucontext_resp
    .qp_tab_size     resb 4
    .reserved        resb 4
endstruc
%define struc_pvrdma_alloc_ucontext_resp_size 8


name: pvrdma_alloc_pd_resp
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_alloc_pd_resp
    .pdn             resb 4
    .reserved        resb 4
endstruc
%define struc_pvrdma_alloc_pd_resp_size 8


name: pvrdma_create_cq
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_create_cq
    .buf_addr        resb 8
    .buf_size        resb 4
    .reserved        resb 4
endstruc
%define struc_pvrdma_create_cq_size 16


name: pvrdma_create_cq_resp
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_create_cq_resp
    .cqn             resb 4
    .reserved        resb 4
endstruc
%define struc_pvrdma_create_cq_resp_size 8


name: pvrdma_resize_cq
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_resize_cq
    .buf_addr        resb 8
    .buf_size        resb 4
    .reserved        resb 4
endstruc
%define struc_pvrdma_resize_cq_size 16


name: pvrdma_create_srq
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_create_srq
    .buf_addr        resb 8
    .buf_size        resb 4
    .reserved        resb 4
endstruc
%define struc_pvrdma_create_srq_size 16


name: pvrdma_create_srq_resp
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_create_srq_resp
    .srqn            resb 4
    .reserved        resb 4
endstruc
%define struc_pvrdma_create_srq_resp_size 8


name: pvrdma_create_qp
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_create_qp
    .rbuf_addr       resb 8
    .sbuf_addr       resb 8
    .rbuf_size       resb 4
    .sbuf_size       resb 4
    .qp_addr         resb 8
endstruc
%define struc_pvrdma_create_qp_size 32


name: pvrdma_create_qp_resp
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_create_qp_resp
    .qpn             resb 4
    .qp_handle       resb 4
endstruc
%define struc_pvrdma_create_qp_resp_size 8


name: pvrdma_ex_cmp_swap
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_ex_cmp_swap
    .swap_val        resb 8
    .compare_val     resb 8
    .swap_mask       resb 8
    .compare_mask    resb 8
endstruc
%define struc_pvrdma_ex_cmp_swap_size 32


name: pvrdma_ex_fetch_add
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_ex_fetch_add
    .add_val         resb 8
    .field_boundary  resb 8
endstruc
%define struc_pvrdma_ex_fetch_add_size 16


name: pvrdma_av
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_av
    .port_pd         resb 4
    .sl_tclass_flowl resb 4
    .dgid            resb 16 ; None
    .src_path_bits   resb 1
    .gid_index       resb 1
    .stat_rate       resb 1
    .hop_limit       resb 1
    .dmac            resb 6 ; None
    .reserved        resb 6 ; None
endstruc
%define struc_pvrdma_av_size 40


name: pvrdma_sge
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_sge
    .addr            resb 8
    .length          resb 4
    .lkey            resb 4
endstruc
%define struc_pvrdma_sge_size 16


name: pvrdma_rq_wqe_hdr
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_rq_wqe_hdr
    .wr_id           resb 8
    .num_sge         resb 4
    .total_len       resb 4
endstruc
%define struc_pvrdma_rq_wqe_hdr_size 16


name: pvrdma_sq_wqe_hdr
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_sq_wqe_hdr
    .wr_id           resb 8
    .num_sge         resb 4
    .total_len       resb 4
    .opcode          resb 4
    .send_flags      resb 4
    .ex              resb 4 ; union None
    .reserved        resb 4
    .wr              resb 48 ; union None
endstruc
%define struc_pvrdma_sq_wqe_hdr_size 80


name: pvrdma_cqe
include_file: /usr/include/rdma/vmw_pvrdma-abi.h
nasm_code:
; from header /usr/include/rdma/vmw_pvrdma-abi.h
struc pvrdma_cqe
    .wr_id           resb 8
    .qp              resb 8
    .opcode          resb 4
    .status          resb 4
    .byte_len        resb 4
    .imm_data        resb 4
    .src_qp          resb 4
    .wc_flags        resb 4
    .vendor_err      resb 4
    .pkey_index      resb 2
    .slid            resb 2
    .sl              resb 1
    .dlid_path_bits  resb 1
    .port_num        resb 1
    .smac            resb 6 ; None
    .network_hdr_typ resb 1
    .reserved2       resb 6 ; None
endstruc
%define struc_pvrdma_cqe_size 64


name: siw_uresp_create_cq
include_file: /usr/include/rdma/siw-abi.h
nasm_code:
; from header /usr/include/rdma/siw-abi.h
struc siw_uresp_create_cq
    .cq_id           resb 4
    .num_cqe         resb 4
    .cq_key          resb 8
endstruc
%define struc_siw_uresp_create_cq_size 16


name: siw_uresp_create_qp
include_file: /usr/include/rdma/siw-abi.h
nasm_code:
; from header /usr/include/rdma/siw-abi.h
struc siw_uresp_create_qp
    .qp_id           resb 4
    .num_sqe         resb 4
    .num_rqe         resb 4
    .pad             resb 4
    .sq_key          resb 8
    .rq_key          resb 8
endstruc
%define struc_siw_uresp_create_qp_size 32


name: siw_ureq_reg_mr
include_file: /usr/include/rdma/siw-abi.h
nasm_code:
; from header /usr/include/rdma/siw-abi.h
struc siw_ureq_reg_mr
    .stag_key        resb 1
    .reserved        resb 3 ; None
    .pad             resb 4
endstruc
%define struc_siw_ureq_reg_mr_size 8


name: siw_uresp_reg_mr
include_file: /usr/include/rdma/siw-abi.h
nasm_code:
; from header /usr/include/rdma/siw-abi.h
struc siw_uresp_reg_mr
    .stag            resb 4
    .pad             resb 4
endstruc
%define struc_siw_uresp_reg_mr_size 8


name: siw_uresp_create_srq
include_file: /usr/include/rdma/siw-abi.h
nasm_code:
; from header /usr/include/rdma/siw-abi.h
struc siw_uresp_create_srq
    .num_rqe         resb 4
    .pad             resb 4
    .srq_key         resb 8
endstruc
%define struc_siw_uresp_create_srq_size 16


name: siw_uresp_alloc_ctx
include_file: /usr/include/rdma/siw-abi.h
nasm_code:
; from header /usr/include/rdma/siw-abi.h
struc siw_uresp_alloc_ctx
    .dev_id          resb 4
    .pad             resb 4
endstruc
%define struc_siw_uresp_alloc_ctx_size 8


name: siw_sge
include_file: /usr/include/rdma/siw-abi.h
nasm_code:
; from header /usr/include/rdma/siw-abi.h
struc siw_sge
    .laddr           resb 8
    .length          resb 4
    .lkey            resb 4
endstruc
%define struc_siw_sge_size 16


name: siw_rqe
include_file: /usr/include/rdma/siw-abi.h
nasm_code:
; from header /usr/include/rdma/siw-abi.h
struc siw_rqe
    .id              resb 8
    .flags           resb 2
    .num_sge         resb 1
    .opcode          resb 1
    .unused          resb 4
    .sge             resb 96 ; None
endstruc
%define struc_siw_rqe_size 112


name: siw_cq_ctrl
include_file: /usr/include/rdma/siw-abi.h
nasm_code:
; from header /usr/include/rdma/siw-abi.h
struc siw_cq_ctrl
    .flags           resb 4
    .pad             resb 4
endstruc
%define struc_siw_cq_ctrl_size 8


name: rdma_ucm_cmd_hdr
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_cmd_hdr
    .cmd             resb 4
    .in              resb 2
    .out             resb 2
endstruc
%define struc_rdma_ucm_cmd_hdr_size 8


name: rdma_ucm_create_id
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_create_id
    .uid             resb 8
    .response        resb 8
    .ps              resb 2
    .qp_type         resb 1
    .reserved        resb 5 ; None
endstruc
%define struc_rdma_ucm_create_id_size 24


name: rdma_ucm_create_id_resp
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_create_id_resp
    .id              resb 4
endstruc
%define struc_rdma_ucm_create_id_resp_size 4


name: rdma_ucm_destroy_id
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_destroy_id
    .response        resb 8
    .id              resb 4
    .reserved        resb 4
endstruc
%define struc_rdma_ucm_destroy_id_size 16


name: rdma_ucm_destroy_id_resp
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_destroy_id_resp
    .events_reported resb 4
endstruc
%define struc_rdma_ucm_destroy_id_resp_size 4


name: rdma_ucm_bind_ip
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_bind_ip
    .response        resb 8
    .addr            resb 28 ; struc sockaddr_in6
    .id              resb 4
endstruc
%define struc_rdma_ucm_bind_ip_size 40


name: rdma_ucm_bind
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_bind
    .id              resb 4
    .addr_size       resb 2
    .reserved        resb 2
    .addr            resb 128 ; struc __kernel_sockaddr_storage
endstruc
%define struc_rdma_ucm_bind_size 136


name: rdma_ucm_resolve_ip
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_resolve_ip
    .src_addr        resb 28 ; struc sockaddr_in6
    .dst_addr        resb 28 ; struc sockaddr_in6
    .id              resb 4
    .timeout_ms      resb 4
endstruc
%define struc_rdma_ucm_resolve_ip_size 64


name: rdma_ucm_resolve_addr
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_resolve_addr
    .id              resb 4
    .timeout_ms      resb 4
    .src_size        resb 2
    .dst_size        resb 2
    .reserved        resb 4
    .src_addr        resb 128 ; struc __kernel_sockaddr_storage
    .dst_addr        resb 128 ; struc __kernel_sockaddr_storage
endstruc
%define struc_rdma_ucm_resolve_addr_size 272


name: rdma_ucm_resolve_route
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_resolve_route
    .id              resb 4
    .timeout_ms      resb 4
endstruc
%define struc_rdma_ucm_resolve_route_size 8


name: rdma_ucm_query
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_query
    .response        resb 8
    .id              resb 4
    .option          resb 4
endstruc
%define struc_rdma_ucm_query_size 16


name: rdma_ucm_query_route_resp
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_query_route_resp
    .node_guid       resb 8
    .ib_route        resb 128 ; None
    .src_addr        resb 28 ; struc sockaddr_in6
    .dst_addr        resb 28 ; struc sockaddr_in6
    .num_paths       resb 4
    .port_num        resb 1
    .reserved        resb 3 ; None
    .ibdev_index     resb 4
    .reserved1       resb 4
endstruc
%define struc_rdma_ucm_query_route_resp_size 208


name: rdma_ucm_query_addr_resp
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_query_addr_resp
    .node_guid       resb 8
    .port_num        resb 1
    .reserved        resb 1
    .pkey            resb 2
    .src_size        resb 2
    .dst_size        resb 2
    .src_addr        resb 128 ; struc __kernel_sockaddr_storage
    .dst_addr        resb 128 ; struc __kernel_sockaddr_storage
    .ibdev_index     resb 4
    .reserved1       resb 4
endstruc
%define struc_rdma_ucm_query_addr_resp_size 280


name: rdma_ucm_query_path_resp
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_query_path_resp
    .num_paths       resb 4
    .reserved        resb 4
    .path_data       resb 0 ; None
endstruc
%define struc_rdma_ucm_query_path_resp_size 8


name: rdma_ucm_conn_param
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_conn_param
    .qp_num          resb 4
    .qkey            resb 4
    .private_data    resb 256 ; None
    .private_data_le resb 1
    .srq             resb 1
    .responder_resou resb 1
    .initiator_depth resb 1
    .flow_control    resb 1
    .retry_count     resb 1
    .rnr_retry_count resb 1
    .valid           resb 1
endstruc
%define struc_rdma_ucm_conn_param_size 272


name: rdma_ucm_ud_param
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_ud_param
    .qp_num          resb 4
    .qkey            resb 4
    .ah_attr         resb 32 ; struc ib_uverbs_ah_attr
    .private_data    resb 256 ; None
    .private_data_le resb 1
    .reserved        resb 7 ; None
endstruc
%define struc_rdma_ucm_ud_param_size 304


name: rdma_ucm_ece
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_ece
    .vendor_id       resb 4
    .attr_mod        resb 4
endstruc
%define struc_rdma_ucm_ece_size 8


name: rdma_ucm_connect
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_connect
    .conn_param      resb 272 ; struc rdma_ucm_conn_param
    .id              resb 4
    .reserved        resb 4
    .ece             resb 8 ; struc rdma_ucm_ece
endstruc
%define struc_rdma_ucm_connect_size 288


name: rdma_ucm_listen
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_listen
    .id              resb 4
    .backlog         resb 4
endstruc
%define struc_rdma_ucm_listen_size 8


name: rdma_ucm_accept
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_accept
    .uid             resb 8
    .conn_param      resb 272 ; struc rdma_ucm_conn_param
    .id              resb 4
    .reserved        resb 4
    .ece             resb 8 ; struc rdma_ucm_ece
endstruc
%define struc_rdma_ucm_accept_size 296


name: rdma_ucm_reject
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_reject
    .id              resb 4
    .private_data_le resb 1
    .reason          resb 1
    .reserved        resb 2 ; None
    .private_data    resb 256 ; None
endstruc
%define struc_rdma_ucm_reject_size 264


name: rdma_ucm_disconnect
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_disconnect
    .id              resb 4
endstruc
%define struc_rdma_ucm_disconnect_size 4


name: rdma_ucm_init_qp_attr
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_init_qp_attr
    .response        resb 8
    .id              resb 4
    .qp_state        resb 4
endstruc
%define struc_rdma_ucm_init_qp_attr_size 16


name: rdma_ucm_notify
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_notify
    .id              resb 4
    .event           resb 4
endstruc
%define struc_rdma_ucm_notify_size 8


name: rdma_ucm_join_ip_mcast
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_join_ip_mcast
    .response        resb 8
    .uid             resb 8
    .addr            resb 28 ; struc sockaddr_in6
    .id              resb 4
endstruc
%define struc_rdma_ucm_join_ip_mcast_size 48


name: rdma_ucm_join_mcast
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_join_mcast
    .response        resb 8
    .uid             resb 8
    .id              resb 4
    .addr_size       resb 2
    .join_flags      resb 2
    .addr            resb 128 ; struc __kernel_sockaddr_storage
endstruc
%define struc_rdma_ucm_join_mcast_size 152


name: rdma_ucm_get_event
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_get_event
    .response        resb 8
endstruc
%define struc_rdma_ucm_get_event_size 8


name: rdma_ucm_event_resp
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_event_resp
    .uid             resb 8
    .id              resb 4
    .event           resb 4
    .status          resb 4
    .param           resb 304 ; union None
    .reserved        resb 4
    .ece             resb 8 ; struc rdma_ucm_ece
endstruc
%define struc_rdma_ucm_event_resp_size 336


name: rdma_ucm_set_option
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_set_option
    .optval          resb 8
    .id              resb 4
    .level           resb 4
    .optname         resb 4
    .optlen          resb 4
endstruc
%define struc_rdma_ucm_set_option_size 24


name: rdma_ucm_migrate_id
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_migrate_id
    .response        resb 8
    .id              resb 4
    .fd              resb 4
endstruc
%define struc_rdma_ucm_migrate_id_size 16


name: rdma_ucm_migrate_resp
include_file: /usr/include/rdma/rdma_user_cm.h
nasm_code:
; from header /usr/include/rdma/rdma_user_cm.h
struc rdma_ucm_migrate_resp
    .events_reported resb 4
endstruc
%define struc_rdma_ucm_migrate_resp_size 4


name: entry
include_file: /usr/include/search.h
nasm_code:
; from header /usr/include/search.h
struc entry
    .key             resb 8
    .data            resb 8
endstruc
%define struc_entry_size 16


name: group
include_file: /usr/include/grp.h
nasm_code:
; from header /usr/include/grp.h
struc group
    .gr_name         resb 8
    .gr_passwd       resb 8
    .gr_gid          resb 4
    .gr_mem          resb 8
endstruc
%define struc_group_size 32


name: dl_phdr_info
include_file: /usr/include/link.h
nasm_code:
; from header /usr/include/link.h
struc dl_phdr_info
    .dlpi_addr       resb 8
    .dlpi_name       resb 8
    .dlpi_phdr       resb 8
    .dlpi_phnum      resb 2
    .dlpi_adds       resb 8
    .dlpi_subs       resb 8
    .dlpi_tls_modid  resb 8
    .dlpi_tls_data   resb 8
endstruc
%define struc_dl_phdr_info_size 64


name: link_map
include_file: /usr/include/link.h
nasm_code:
; from header /usr/include/link.h
struc link_map
    .l_addr          resb 8
    .l_name          resb 8
    .l_ld            resb 8
    .l_next          resb 8
    .l_prev          resb 8
endstruc
%define struc_link_map_size 40


name: r_debug
include_file: /usr/include/link.h
nasm_code:
; from header /usr/include/link.h
struc r_debug
    .r_version       resb 4
    .r_map           resb 8
    .r_brk           resb 8
    .r_state         resb 4
    .r_ldbase        resb 8
endstruc
%define struc_r_debug_size 40


name: dirent
include_file: /usr/include/dirent.h
nasm_code:
; from header /usr/include/dirent.h
struc dirent
    .d_ino           resb 8
    .d_off           resb 8
    .d_reclen        resb 2
    .d_type          resb 1
    .d_name          resb 256 ; None
endstruc
%define struc_dirent_size 280


name: sched_param
include_file: /usr/include/sched.h
nasm_code:
; from header /usr/include/sched.h
struc sched_param
    .sched_priority  resb 4
    .__reserved1     resb 4
    .__reserved2     resb 32 ; None
    .__reserved3     resb 4
endstruc
%define struc_sched_param_size 48


name: fc_nl_event
include_file: /usr/include/scsi/scsi_netlink_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_netlink_fc.h
struc fc_nl_event
    .snlh            resb 8 ; struc scsi_nl_hdr
    .seconds         resb 8
    .vendor_id       resb 8
    .host_no         resb 2
    .event_datalen   resb 2
    .event_num       resb 4
    .event_code      resb 4
    .event_data      resb 4
endstruc
%define struc_fc_nl_event_size 40


name: ccs_modesel_head
include_file: /usr/include/scsi/scsi.h
nasm_code:
; from header /usr/include/scsi/scsi.h
struc ccs_modesel_head
    ._r1             resb 1
    .medium          resb 1
    ._r2             resb 1
    .block_desc_leng resb 1
    .density         resb 1
    .number_blocks_h resb 1
    .number_blocks_m resb 1
    .number_blocks_l resb 1
    ._r3             resb 1
    .block_length_hi resb 1
    .block_length_me resb 1
    .block_length_lo resb 1
endstruc
%define struc_ccs_modesel_head_size 12


name: scsi_nl_hdr
include_file: /usr/include/scsi/scsi_netlink.h
nasm_code:
; from header /usr/include/scsi/scsi_netlink.h
struc scsi_nl_hdr
    .version         resb 1
    .transport       resb 1
    .magic           resb 2
    .msgtype         resb 2
    .msglen          resb 2
endstruc
%define struc_scsi_nl_hdr_size 8


name: scsi_nl_host_vendor_msg
include_file: /usr/include/scsi/scsi_netlink.h
nasm_code:
; from header /usr/include/scsi/scsi_netlink.h
struc scsi_nl_host_vendor_msg
    .snlh            resb 8 ; struc scsi_nl_hdr
    .vendor_id       resb 8
    .host_no         resb 2
    .vmsg_datalen    resb 2
endstruc
%define struc_scsi_nl_host_vendor_msg_size 24


name: fc_bsg_host_add_rport
include_file: /usr/include/scsi/scsi_bsg_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_fc.h
struc fc_bsg_host_add_rport
    .reserved        resb 1
    .port_id         resb 3 ; None
endstruc
%define struc_fc_bsg_host_add_rport_size 4


name: fc_bsg_host_del_rport
include_file: /usr/include/scsi/scsi_bsg_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_fc.h
struc fc_bsg_host_del_rport
    .reserved        resb 1
    .port_id         resb 3 ; None
endstruc
%define struc_fc_bsg_host_del_rport_size 4


name: fc_bsg_host_els
include_file: /usr/include/scsi/scsi_bsg_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_fc.h
struc fc_bsg_host_els
    .command_code    resb 1
    .port_id         resb 3 ; None
endstruc
%define struc_fc_bsg_host_els_size 4


name: fc_bsg_ctels_reply
include_file: /usr/include/scsi/scsi_bsg_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_fc.h
struc fc_bsg_ctels_reply
    .status          resb 4
    .rjt_data        resb 4 ; struc None
endstruc
%define struc_fc_bsg_ctels_reply_size 8


name: fc_bsg_host_ct
include_file: /usr/include/scsi/scsi_bsg_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_fc.h
struc fc_bsg_host_ct
    .reserved        resb 1
    .port_id         resb 3 ; None
    .preamble_word0  resb 4
    .preamble_word1  resb 4
    .preamble_word2  resb 4
endstruc
%define struc_fc_bsg_host_ct_size 16


name: fc_bsg_host_vendor
include_file: /usr/include/scsi/scsi_bsg_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_fc.h
struc fc_bsg_host_vendor
    .vendor_id       resb 8
    .vendor_cmd      resb 0 ; None
endstruc
%define struc_fc_bsg_host_vendor_size 8


name: fc_bsg_host_vendor_reply
include_file: /usr/include/scsi/scsi_bsg_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_fc.h
struc fc_bsg_host_vendor_reply
    .vendor_rsp      resb 0 ; None
endstruc
%define struc_fc_bsg_host_vendor_reply_size 0


name: fc_bsg_rport_els
include_file: /usr/include/scsi/scsi_bsg_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_fc.h
struc fc_bsg_rport_els
    .els_code        resb 1
endstruc
%define struc_fc_bsg_rport_els_size 1


name: fc_bsg_rport_ct
include_file: /usr/include/scsi/scsi_bsg_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_fc.h
struc fc_bsg_rport_ct
    .preamble_word0  resb 4
    .preamble_word1  resb 4
    .preamble_word2  resb 4
endstruc
%define struc_fc_bsg_rport_ct_size 12


name: fc_bsg_request
include_file: /usr/include/scsi/scsi_bsg_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_fc.h
struc fc_bsg_request
    .msgcode         resb 4
    .rqst_data       resb 16 ; union None
endstruc
%define struc_fc_bsg_request_size 20


name: fc_bsg_reply
include_file: /usr/include/scsi/scsi_bsg_fc.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_fc.h
struc fc_bsg_reply
    .result          resb 4
    .reply_payload_r resb 4
    .reply_data      resb 8 ; union None
endstruc
%define struc_fc_bsg_reply_size 16


name: sg_iovec
include_file: /usr/include/scsi/sg.h
nasm_code:
; from header /usr/include/scsi/sg.h
struc sg_iovec
    .iov_base        resb 8
    .iov_len         resb 8
endstruc
%define struc_sg_iovec_size 16


name: sg_io_hdr
include_file: /usr/include/scsi/sg.h
nasm_code:
; from header /usr/include/scsi/sg.h
struc sg_io_hdr
    .interface_id    resb 4
    .dxfer_direction resb 4
    .cmd_len         resb 1
    .mx_sb_len       resb 1
    .iovec_count     resb 2
    .dxfer_len       resb 4
    .dxferp          resb 8
    .cmdp            resb 8
    .sbp             resb 8
    .timeout         resb 4
    .flags           resb 4
    .pack_id         resb 4
    .usr_ptr         resb 8
    .status          resb 1
    .masked_status   resb 1
    .msg_status      resb 1
    .sb_len_wr       resb 1
    .host_status     resb 2
    .driver_status   resb 2
    .resid           resb 4
    .duration        resb 4
    .info            resb 4
endstruc
%define struc_sg_io_hdr_size 88


name: sg_scsi_id
include_file: /usr/include/scsi/sg.h
nasm_code:
; from header /usr/include/scsi/sg.h
struc sg_scsi_id
    .host_no         resb 4
    .channel         resb 4
    .scsi_id         resb 4
    .lun             resb 4
    .scsi_type       resb 4
    .h_cmd_per_lun   resb 2
    .d_queue_depth   resb 2
    .unused          resb 8 ; None
endstruc
%define struc_sg_scsi_id_size 32


name: sg_req_info
include_file: /usr/include/scsi/sg.h
nasm_code:
; from header /usr/include/scsi/sg.h
struc sg_req_info
    .req_state       resb 1
    .orphan          resb 1
    .sg_io_owned     resb 1
    .problem         resb 1
    .pack_id         resb 4
    .usr_ptr         resb 8
    .duration        resb 4
    .unused          resb 4
endstruc
%define struc_sg_req_info_size 24


name: sg_header
include_file: /usr/include/scsi/sg.h
nasm_code:
; from header /usr/include/scsi/sg.h
struc sg_header
    .pack_len        resb 4
    .reply_len       resb 4
    .pack_id         resb 4
    .result          resb 4
    .twelve_byte     resb 4
    .target_status   resb 4
    .host_status     resb 4
    .driver_status   resb 4
    .other_flags     resb 4
    .sense_buffer    resb 16 ; None
endstruc
%define struc_sg_header_size 36


name: utp_upiu_header
include_file: /usr/include/scsi/scsi_bsg_ufs.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_ufs.h
struc utp_upiu_header
    .dword_0         resb 4
    .dword_1         resb 4
    .dword_2         resb 4
endstruc
%define struc_utp_upiu_header_size 12


name: utp_upiu_query
include_file: /usr/include/scsi/scsi_bsg_ufs.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_ufs.h
struc utp_upiu_query
    .opcode          resb 1
    .idn             resb 1
    .index           resb 1
    .selector        resb 1
    .reserved_osf    resb 2
    .length          resb 2
    .value           resb 4
    .reserved        resb 8 ; None
endstruc
%define struc_utp_upiu_query_size 20


name: utp_upiu_cmd
include_file: /usr/include/scsi/scsi_bsg_ufs.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_ufs.h
struc utp_upiu_cmd
    .exp_data_transf resb 4
    .cdb             resb 16 ; None
endstruc
%define struc_utp_upiu_cmd_size 20


name: ufs_bsg_request
include_file: /usr/include/scsi/scsi_bsg_ufs.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_ufs.h
struc ufs_bsg_request
    .msgcode         resb 4
    .upiu_req        resb 32 ; struc utp_upiu_req
endstruc
%define struc_ufs_bsg_request_size 36


name: ufs_bsg_reply
include_file: /usr/include/scsi/scsi_bsg_ufs.h
nasm_code:
; from header /usr/include/scsi/scsi_bsg_ufs.h
struc ufs_bsg_reply
    .result          resb 4
    .reply_payload_r resb 4
    .upiu_rsp        resb 32 ; struc utp_upiu_req
endstruc
%define struc_ufs_bsg_reply_size 40


name: dk_cxlflash_hdr
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc dk_cxlflash_hdr
    .version         resb 2
    .rsvd            resb 6 ; None
    .flags           resb 8
    .return_flags    resb 8
endstruc
%define struc_dk_cxlflash_hdr_size 24


name: dk_cxlflash_attach
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc dk_cxlflash_attach
    .hdr             resb 24 ; struc dk_cxlflash_hdr
    .num_interrupts  resb 8
    .context_id      resb 8
    .mmio_size       resb 8
    .block_size      resb 8
    .adap_fd         resb 8
    .last_lba        resb 8
    .max_xfer        resb 8
    .reserved        resb 64 ; None
endstruc
%define struc_dk_cxlflash_attach_size 144


name: dk_cxlflash_detach
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc dk_cxlflash_detach
    .hdr             resb 24 ; struc dk_cxlflash_hdr
    .context_id      resb 8
    .reserved        resb 64 ; None
endstruc
%define struc_dk_cxlflash_detach_size 96


name: dk_cxlflash_udirect
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc dk_cxlflash_udirect
    .hdr             resb 24 ; struc dk_cxlflash_hdr
    .context_id      resb 8
    .rsrc_handle     resb 8
    .last_lba        resb 8
    .reserved        resb 64 ; None
endstruc
%define struc_dk_cxlflash_udirect_size 112


name: dk_cxlflash_uvirtual
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc dk_cxlflash_uvirtual
    .hdr             resb 24 ; struc dk_cxlflash_hdr
    .context_id      resb 8
    .lun_size        resb 8
    .rsrc_handle     resb 8
    .last_lba        resb 8
    .reserved        resb 64 ; None
endstruc
%define struc_dk_cxlflash_uvirtual_size 120


name: dk_cxlflash_release
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc dk_cxlflash_release
    .hdr             resb 24 ; struc dk_cxlflash_hdr
    .context_id      resb 8
    .rsrc_handle     resb 8
    .reserved        resb 64 ; None
endstruc
%define struc_dk_cxlflash_release_size 104


name: dk_cxlflash_resize
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc dk_cxlflash_resize
    .hdr             resb 24 ; struc dk_cxlflash_hdr
    .context_id      resb 8
    .rsrc_handle     resb 8
    .req_size        resb 8
    .last_lba        resb 8
    .reserved        resb 64 ; None
endstruc
%define struc_dk_cxlflash_resize_size 120


name: dk_cxlflash_clone
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc dk_cxlflash_clone
    .hdr             resb 24 ; struc dk_cxlflash_hdr
    .context_id_src  resb 8
    .context_id_dst  resb 8
    .adap_fd_src     resb 8
    .reserved        resb 64 ; None
endstruc
%define struc_dk_cxlflash_clone_size 112


name: dk_cxlflash_verify
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc dk_cxlflash_verify
    .hdr             resb 24 ; struc dk_cxlflash_hdr
    .context_id      resb 8
    .rsrc_handle     resb 8
    .hint            resb 8
    .last_lba        resb 8
    .sense_data      resb 18 ; None
    .pad             resb 6 ; None
    .reserved        resb 64 ; None
endstruc
%define struc_dk_cxlflash_verify_size 144


name: dk_cxlflash_recover_afu
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc dk_cxlflash_recover_afu
    .hdr             resb 24 ; struc dk_cxlflash_hdr
    .reason          resb 8
    .context_id      resb 8
    .mmio_size       resb 8
    .adap_fd         resb 8
    .reserved        resb 64 ; None
endstruc
%define struc_dk_cxlflash_recover_afu_size 120


name: dk_cxlflash_manage_lun
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc dk_cxlflash_manage_lun
    .hdr             resb 24 ; struc dk_cxlflash_hdr
    .wwid            resb 16 ; None
    .reserved        resb 64 ; None
endstruc
%define struc_dk_cxlflash_manage_lun_size 104


name: ht_cxlflash_hdr
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc ht_cxlflash_hdr
    .version         resb 2
    .subcmd          resb 2
    .rsvd            resb 4 ; None
    .flags           resb 8
    .return_flags    resb 8
endstruc
%define struc_ht_cxlflash_hdr_size 24


name: ht_cxlflash_lun_provision
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc ht_cxlflash_lun_provision
    .hdr             resb 24 ; struc ht_cxlflash_hdr
    .port            resb 2
    .reserved16      resb 6 ; None
    .size            resb 8
    .lun_id          resb 8
    .wwid            resb 16 ; None
    .max_num_luns    resb 8
    .cur_num_luns    resb 8
    .max_cap_port    resb 8
    .cur_cap_port    resb 8
    .reserved        resb 64 ; None
endstruc
%define struc_ht_cxlflash_lun_provision_size 160


name: ht_cxlflash_afu_debug
include_file: /usr/include/scsi/cxlflash_ioctl.h
nasm_code:
; from header /usr/include/scsi/cxlflash_ioctl.h
struc ht_cxlflash_afu_debug
    .hdr             resb 24 ; struc ht_cxlflash_hdr
    .reserved8       resb 4 ; None
    .afu_subcmd      resb 12 ; None
    .data_ea         resb 8
    .data_len        resb 4
    .reserved32      resb 4
    .reserved        resb 64 ; None
endstruc
%define struc_ht_cxlflash_afu_debug_size 120


name: fc_ns_pt_obj
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_ns_pt_obj
    .pt_type         resb 1
endstruc
%define struc_fc_ns_pt_obj_size 1


name: fc_ns_fid
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_ns_fid
    .fp_flags        resb 1
    .fp_fid          resb 3 ; None
endstruc
%define struc_fc_ns_fid_size 4


name: fc_ns_fts
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_ns_fts
    .ff_type_map     resb 32 ; None
endstruc
%define struc_fc_ns_fts_size 32


name: fc_ns_gid_pt
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_ns_gid_pt
    .fn_pt_type      resb 1
    .fn_domain_id_sc resb 1
    .fn_area_id_scop resb 1
    .fn_resvd        resb 1
endstruc
%define struc_fc_ns_gid_pt_size 4


name: fc_ns_gid_ft
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_ns_gid_ft
    .fn_resvd        resb 1
    .fn_domain_id_sc resb 1
    .fn_area_id_scop resb 1
    .fn_fc4_type     resb 1
endstruc
%define struc_fc_ns_gid_ft_size 4


name: fc_gpn_ft_resp
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_gpn_ft_resp
    .fp_flags        resb 1
    .fp_fid          resb 3 ; None
    .fp_resvd        resb 4
    .fp_wwpn         resb 8
endstruc
%define struc_fc_gpn_ft_resp_size 16


name: fc_ns_gid_pn
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_ns_gid_pn
    .fn_wwpn         resb 8
endstruc
%define struc_fc_ns_gid_pn_size 8


name: fc_gid_pn_resp
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_gid_pn_resp
    .fp_resvd        resb 1
    .fp_fid          resb 3 ; None
endstruc
%define struc_fc_gid_pn_resp_size 4


name: fc_gspn_resp
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_gspn_resp
    .fp_name_len     resb 1
    .fp_name         resb 0 ; None
endstruc
%define struc_fc_gspn_resp_size 1


name: fc_ns_rft_id
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_ns_rft_id
    .fr_fid          resb 4 ; struc fc_ns_fid
    .fr_fts          resb 32 ; struc fc_ns_fts
endstruc
%define struc_fc_ns_rft_id_size 36


name: fc_ns_rn_id
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_ns_rn_id
    .fr_fid          resb 4 ; struc fc_ns_fid
    .fr_wwn          resb 8
endstruc
%define struc_fc_ns_rn_id_size 12


name: fc_ns_rsnn
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_ns_rsnn
    .fr_wwn          resb 8
    .fr_name_len     resb 1
    .fr_name         resb 0 ; None
endstruc
%define struc_fc_ns_rsnn_size 9


name: fc_ns_rspn
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_ns_rspn
    .fr_fid          resb 4 ; struc fc_ns_fid
    .fr_name_len     resb 1
    .fr_name         resb 0 ; None
endstruc
%define struc_fc_ns_rspn_size 5


name: fc_ns_rff_id
include_file: /usr/include/scsi/fc/fc_ns.h
nasm_code:
; from header /usr/include/scsi/fc/fc_ns.h
struc fc_ns_rff_id
    .fr_fid          resb 4 ; struc fc_ns_fid
    .fr_resvd        resb 2 ; None
    .fr_feat         resb 1
    .fr_type         resb 1
endstruc
%define struc_fc_ns_rff_id_size 8


name: fc_els_ls_acc
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_ls_acc
    .la_cmd          resb 1
    .la_resv         resb 3 ; None
endstruc
%define struc_fc_els_ls_acc_size 4


name: fc_els_ls_rjt
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_ls_rjt
    .er_cmd          resb 1
    .er_resv         resb 4 ; None
    .er_reason       resb 1
    .er_explan       resb 1
    .er_vendor       resb 1
endstruc
%define struc_fc_els_ls_rjt_size 8


name: fc_tlv_desc
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_tlv_desc
    .desc_tag        resb 4
    .desc_len        resb 4
    .desc_value      resb 0 ; None
endstruc
%define struc_fc_tlv_desc_size 8


name: fc_els_lsri_desc
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_lsri_desc
    .desc_tag        resb 4
    .desc_len        resb 4
    .rqst_w0         resb 4 ; struc None
endstruc
%define struc_fc_els_lsri_desc_size 12


name: fc_els_csp
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_csp
    .sp_hi_ver       resb 1
    .sp_lo_ver       resb 1
    .sp_bb_cred      resb 2
    .sp_features     resb 2
    .sp_bb_data      resb 2
    .sp_u            resb 4 ; union None
    .sp_e_d_tov      resb 4
endstruc
%define struc_fc_els_csp_size 16


name: fc_els_cssp
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_cssp
    .cp_class        resb 2
    .cp_init         resb 2
    .cp_recip        resb 2
    .cp_rdfs         resb 2
    .cp_con_seq      resb 2
    .cp_ee_cred      resb 2
    .cp_resv1        resb 1
    .cp_open_seq     resb 1
    ._cp_resv2       resb 2 ; None
endstruc
%define struc_fc_els_cssp_size 16


name: fc_els_flogi
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_flogi
    .fl_cmd          resb 1
    ._fl_resvd       resb 3 ; None
    .fl_csp          resb 16 ; struc fc_els_csp
    .fl_wwpn         resb 8
    .fl_wwnn         resb 8
    .fl_cssp         resb 64 ; None
    .fl_vend         resb 16 ; None
endstruc
%define struc_fc_els_flogi_size 116


name: fc_els_spp
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_spp
    .spp_type        resb 1
    .spp_type_ext    resb 1
    .spp_flags       resb 1
    ._spp_resvd      resb 1
    .spp_orig_pa     resb 4
    .spp_resp_pa     resb 4
    .spp_params      resb 4
endstruc
%define struc_fc_els_spp_size 16


name: fc_els_rrq
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rrq
    .rrq_cmd         resb 1
    .rrq_zero        resb 3 ; None
    .rrq_resvd       resb 1
    .rrq_s_id        resb 3 ; None
    .rrq_ox_id       resb 2
    .rrq_rx_id       resb 2
endstruc
%define struc_fc_els_rrq_size 12


name: fc_els_rec
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rec
    .rec_cmd         resb 1
    .rec_zero        resb 3 ; None
    .rec_resvd       resb 1
    .rec_s_id        resb 3 ; None
    .rec_ox_id       resb 2
    .rec_rx_id       resb 2
endstruc
%define struc_fc_els_rec_size 12


name: fc_els_rec_acc
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rec_acc
    .reca_cmd        resb 1
    .reca_zero       resb 3 ; None
    .reca_ox_id      resb 2
    .reca_rx_id      resb 2
    .reca_resvd1     resb 1
    .reca_ofid       resb 3 ; None
    .reca_resvd2     resb 1
    .reca_rfid       resb 3 ; None
    .reca_fc4value   resb 4
    .reca_e_stat     resb 4
endstruc
%define struc_fc_els_rec_acc_size 24


name: fc_els_prli
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_prli
    .prli_cmd        resb 1
    .prli_spp_len    resb 1
    .prli_len        resb 2
endstruc
%define struc_fc_els_prli_size 4


name: fc_els_prlo
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_prlo
    .prlo_cmd        resb 1
    .prlo_obs        resb 1
    .prlo_len        resb 2
endstruc
%define struc_fc_els_prlo_size 4


name: fc_els_adisc
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_adisc
    .adisc_cmd       resb 1
    .adisc_resv      resb 3 ; None
    .adisc_resv1     resb 1
    .adisc_hard_addr resb 3 ; None
    .adisc_wwpn      resb 8
    .adisc_wwnn      resb 8
    .adisc_resv2     resb 1
    .adisc_port_id   resb 3 ; None
endstruc
%define struc_fc_els_adisc_size 28


name: fc_els_logo
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_logo
    .fl_cmd          resb 1
    .fl_zero         resb 3 ; None
    .fl_resvd        resb 1
    .fl_n_port_id    resb 3 ; None
    .fl_n_port_wwn   resb 8
endstruc
%define struc_fc_els_logo_size 16


name: fc_els_rtv
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rtv
    .rtv_cmd         resb 1
    .rtv_zero        resb 3 ; None
endstruc
%define struc_fc_els_rtv_size 4


name: fc_els_rtv_acc
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rtv_acc
    .rtv_cmd         resb 1
    .rtv_zero        resb 3 ; None
    .rtv_r_a_tov     resb 4
    .rtv_e_d_tov     resb 4
    .rtv_toq         resb 4
endstruc
%define struc_fc_els_rtv_acc_size 16


name: fc_els_scr
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_scr
    .scr_cmd         resb 1
    .scr_resv        resb 6 ; None
    .scr_reg_func    resb 1
endstruc
%define struc_fc_els_scr_size 8


name: fc_els_rscn
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rscn
    .rscn_cmd        resb 1
    .rscn_page_len   resb 1
    .rscn_plen       resb 2
endstruc
%define struc_fc_els_rscn_size 4


name: fc_els_rscn_page
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rscn_page
    .rscn_page_flags resb 1
    .rscn_fid        resb 3 ; None
endstruc
%define struc_fc_els_rscn_page_size 4


name: fc_els_rnid
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rnid
    .rnid_cmd        resb 1
    .rnid_resv       resb 3 ; None
    .rnid_fmt        resb 1
    .rnid_resv2      resb 3 ; None
endstruc
%define struc_fc_els_rnid_size 8


name: fc_els_rnid_resp
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rnid_resp
    .rnid_cmd        resb 1
    .rnid_resv       resb 3 ; None
    .rnid_fmt        resb 1
    .rnid_cid_len    resb 1
    .rnid_resv2      resb 1
    .rnid_sid_len    resb 1
endstruc
%define struc_fc_els_rnid_resp_size 8


name: fc_els_rnid_cid
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rnid_cid
    .rnid_wwpn       resb 8
    .rnid_wwnn       resb 8
endstruc
%define struc_fc_els_rnid_cid_size 16


name: fc_els_rnid_gen
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rnid_gen
    .rnid_vend_id    resb 16 ; None
    .rnid_atype      resb 4
    .rnid_phys_port  resb 4
    .rnid_att_nodes  resb 4
    .rnid_node_mgmt  resb 1
    .rnid_ip_ver     resb 1
    .rnid_prot_port  resb 2
    .rnid_ip_addr    resb 16 ; None
    .rnid_resvd      resb 2 ; None
    .rnid_vend_spec  resb 2
endstruc
%define struc_fc_els_rnid_gen_size 52


name: fc_els_rpl
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rpl
    .rpl_cmd         resb 1
    .rpl_resv        resb 5 ; None
    .rpl_max_size    resb 2
    .rpl_resv1       resb 1
    .rpl_index       resb 3 ; None
endstruc
%define struc_fc_els_rpl_size 12


name: fc_els_pnb
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_pnb
    .pnb_phys_pn     resb 4
    .pnb_resv        resb 1
    .pnb_port_id     resb 3 ; None
    .pnb_wwpn        resb 8
endstruc
%define struc_fc_els_pnb_size 16


name: fc_els_rpl_resp
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rpl_resp
    .rpl_cmd         resb 1
    .rpl_resv1       resb 1
    .rpl_plen        resb 2
    .rpl_resv2       resb 1
    .rpl_llen        resb 3 ; None
    .rpl_resv3       resb 1
    .rpl_index       resb 3 ; None
    .rpl_pnb         resb 16 ; None
endstruc
%define struc_fc_els_rpl_resp_size 32


name: fc_els_lesb
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_lesb
    .lesb_link_fail  resb 4
    .lesb_sync_loss  resb 4
    .lesb_sig_loss   resb 4
    .lesb_prim_err   resb 4
    .lesb_inv_word   resb 4
    .lesb_inv_crc    resb 4
endstruc
%define struc_fc_els_lesb_size 24


name: fc_els_rps
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rps
    .rps_cmd         resb 1
    .rps_resv        resb 2 ; None
    .rps_flag        resb 1
    .rps_port_spec   resb 8
endstruc
%define struc_fc_els_rps_size 16


name: fc_els_rps_resp
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rps_resp
    .rps_cmd         resb 1
    .rps_resv        resb 2 ; None
    .rps_flag        resb 1
    .rps_resv2       resb 2 ; None
    .rps_status      resb 2
    .rps_lesb        resb 24 ; struc fc_els_lesb
endstruc
%define struc_fc_els_rps_resp_size 32


name: fc_els_lirr
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_lirr
    .lirr_cmd        resb 1
    .lirr_resv       resb 3 ; None
    .lirr_func       resb 1
    .lirr_fmt        resb 1
    .lirr_resv2      resb 2 ; None
endstruc
%define struc_fc_els_lirr_size 8


name: fc_els_srl
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_srl
    .srl_cmd         resb 1
    .srl_resv        resb 3 ; None
    .srl_flag        resb 1
    .srl_flag_param  resb 3 ; None
endstruc
%define struc_fc_els_srl_size 8


name: fc_els_rls
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rls
    .rls_cmd         resb 1
    .rls_resv        resb 4 ; None
    .rls_port_id     resb 3 ; None
endstruc
%define struc_fc_els_rls_size 8


name: fc_els_rls_resp
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rls_resp
    .rls_cmd         resb 1
    .rls_resv        resb 3 ; None
    .rls_lesb        resb 24 ; struc fc_els_lesb
endstruc
%define struc_fc_els_rls_resp_size 28


name: fc_els_rlir
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rlir
    .rlir_cmd        resb 1
    .rlir_resv       resb 3 ; None
    .rlir_fmt        resb 1
    .rlir_clr_len    resb 1
    .rlir_cld_len    resb 1
    .rlir_slr_len    resb 1
endstruc
%define struc_fc_els_rlir_size 8


name: fc_els_clir
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_clir
    .clir_wwpn       resb 8
    .clir_wwnn       resb 8
    .clir_port_type  resb 1
    .clir_port_id    resb 3 ; None
    .clir_conn_wwpn  resb 8
    .clir_conn_wwnn  resb 8
    .clir_fab_name   resb 8
    .clir_phys_port  resb 4
    .clir_trans_id   resb 4
    .clir_resv       resb 3 ; None
    .clir_ts_fmt     resb 1
    .clir_timestamp  resb 8
endstruc
%define struc_fc_els_clir_size 72


name: fc_els_clid
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_clid
    .clid_iq         resb 1
    .clid_ic         resb 1
    .clid_epai       resb 2
endstruc
%define struc_fc_els_clid_size 4


name: fc_fn_li_desc
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_fn_li_desc
    .desc_tag        resb 4
    .desc_len        resb 4
    .detecting_wwpn  resb 8
    .attached_wwpn   resb 8
    .event_type      resb 2
    .event_modifier  resb 2
    .event_threshold resb 4
    .event_count     resb 4
    .pname_count     resb 4
    .pname_list      resb 0 ; None
endstruc
%define struc_fc_fn_li_desc_size 40


name: fc_els_fpin
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_fpin
    .fpin_cmd        resb 1
    .fpin_zero       resb 3 ; None
    .desc_len        resb 4
    .fpin_desc       resb 0 ; None
endstruc
%define struc_fc_els_fpin_size 8


name: fc_df_desc_fpin_reg
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_df_desc_fpin_reg
    .desc_tag        resb 4
    .desc_len        resb 4
    .count           resb 4
    .desc_tags       resb 0 ; None
endstruc
%define struc_fc_df_desc_fpin_reg_size 12


name: fc_els_rdf
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rdf
    .fpin_cmd        resb 1
    .fpin_zero       resb 3 ; None
    .desc_len        resb 4
    .desc            resb 0 ; None
endstruc
%define struc_fc_els_rdf_size 8


name: fc_els_rdf_resp
include_file: /usr/include/scsi/fc/fc_els.h
nasm_code:
; from header /usr/include/scsi/fc/fc_els.h
struc fc_els_rdf_resp
    .acc_hdr         resb 4 ; struc fc_els_ls_acc
    .desc_list_len   resb 4
    .lsri            resb 12 ; struc fc_els_lsri_desc
    .desc            resb 0 ; None
endstruc
%define struc_fc_els_rdf_resp_size 20


name: fc_frame_header
include_file: /usr/include/scsi/fc/fc_fs.h
nasm_code:
; from header /usr/include/scsi/fc/fc_fs.h
struc fc_frame_header
    .fh_r_ctl        resb 1
    .fh_d_id         resb 3 ; None
    .fh_cs_ctl       resb 1
    .fh_s_id         resb 3 ; None
    .fh_type         resb 1
    .fh_f_ctl        resb 3 ; None
    .fh_seq_id       resb 1
    .fh_df_ctl       resb 1
    .fh_seq_cnt      resb 2
    .fh_ox_id        resb 2
    .fh_rx_id        resb 2
    .fh_parm_offset  resb 4
endstruc
%define struc_fc_frame_header_size 24


name: fc_ba_acc
include_file: /usr/include/scsi/fc/fc_fs.h
nasm_code:
; from header /usr/include/scsi/fc/fc_fs.h
struc fc_ba_acc
    .ba_seq_id_val   resb 1
    .ba_seq_id       resb 1
    .ba_resvd        resb 2 ; None
    .ba_ox_id        resb 2
    .ba_rx_id        resb 2
    .ba_low_seq_cnt  resb 2
    .ba_high_seq_cnt resb 2
endstruc
%define struc_fc_ba_acc_size 12


name: fc_ba_rjt
include_file: /usr/include/scsi/fc/fc_fs.h
nasm_code:
; from header /usr/include/scsi/fc/fc_fs.h
struc fc_ba_rjt
    .br_resvd        resb 1
    .br_reason       resb 1
    .br_explan       resb 1
    .br_vendor       resb 1
endstruc
%define struc_fc_ba_rjt_size 4


name: fc_pf_rjt
include_file: /usr/include/scsi/fc/fc_fs.h
nasm_code:
; from header /usr/include/scsi/fc/fc_fs.h
struc fc_pf_rjt
    .rj_action       resb 1
    .rj_reason       resb 1
    .rj_resvd        resb 1
    .rj_vendor       resb 1
endstruc
%define struc_fc_pf_rjt_size 4


name: fc_ct_hdr
include_file: /usr/include/scsi/fc/fc_gs.h
nasm_code:
; from header /usr/include/scsi/fc/fc_gs.h
struc fc_ct_hdr
    .ct_rev          resb 1
    .ct_in_id        resb 3 ; None
    .ct_fs_type      resb 1
    .ct_fs_subtype   resb 1
    .ct_options      resb 1
    ._ct_resvd1      resb 1
    .ct_cmd          resb 2
    .ct_mr_size      resb 2
    ._ct_resvd2      resb 1
    .ct_reason       resb 1
    .ct_explan       resb 1
    .ct_vendor       resb 1
endstruc
%define struc_fc_ct_hdr_size 16


name: FTW
include_file: /usr/include/ftw.h
nasm_code:
; from header /usr/include/ftw.h
struc FTW
    .base            resb 4
    .level           resb 4
endstruc
%define struc_FTW_size 8


name: addrinfo
include_file: /usr/include/netdb.h
nasm_code:
; from header /usr/include/netdb.h
struc addrinfo
    .ai_flags        resb 4
    .ai_family       resb 4
    .ai_socktype     resb 4
    .ai_protocol     resb 4
    .ai_addrlen      resb 4
    .ai_addr         resb 8
    .ai_canonname    resb 8
    .ai_next         resb 8
endstruc
%define struc_addrinfo_size 48


name: netent
include_file: /usr/include/netdb.h
nasm_code:
; from header /usr/include/netdb.h
struc netent
    .n_name          resb 8
    .n_aliases       resb 8
    .n_addrtype      resb 4
    .n_net           resb 4
endstruc
%define struc_netent_size 24


name: hostent
include_file: /usr/include/netdb.h
nasm_code:
; from header /usr/include/netdb.h
struc hostent
    .h_name          resb 8
    .h_aliases       resb 8
    .h_addrtype      resb 4
    .h_length        resb 4
    .h_addr_list     resb 8
endstruc
%define struc_hostent_size 32


name: servent
include_file: /usr/include/netdb.h
nasm_code:
; from header /usr/include/netdb.h
struc servent
    .s_name          resb 8
    .s_aliases       resb 8
    .s_port          resb 4
    .s_proto         resb 8
endstruc
%define struc_servent_size 32


name: protoent
include_file: /usr/include/netdb.h
nasm_code:
; from header /usr/include/netdb.h
struc protoent
    .p_name          resb 8
    .p_aliases       resb 8
    .p_proto         resb 4
endstruc
%define struc_protoent_size 24


name: LLVMOpInfoSymbol1
include_file: /usr/include/llvm-c/DisassemblerTypes.h
nasm_code:
; from header /usr/include/llvm-c/DisassemblerTypes.h
struc LLVMOpInfoSymbol1
    .Present         resb 8
    .Name            resb 8
    .Value           resb 8
endstruc
%define struc_LLVMOpInfoSymbol1_size 24


name: LLVMOpInfo1
include_file: /usr/include/llvm-c/DisassemblerTypes.h
nasm_code:
; from header /usr/include/llvm-c/DisassemblerTypes.h
struc LLVMOpInfo1
    .AddSymbol       resb 24 ; struc LLVMOpInfoSymbol1
    .SubtractSymbol  resb 24 ; struc LLVMOpInfoSymbol1
    .Value           resb 8
    .VariantKind     resb 8
endstruc
%define struc_LLVMOpInfo1_size 64


name: LLVMMCJITCompilerOptions
include_file: /usr/include/llvm-c/ExecutionEngine.h
nasm_code:
; from header /usr/include/llvm-c/ExecutionEngine.h
struc LLVMMCJITCompilerOptions
    .OptLevel        resb 4
    .CodeModel       resb 4
    .NoFramePointerE resb 4
    .EnableFastISel  resb 4
    .MCJMM           resb 8
endstruc
%define struc_LLVMMCJITCompilerOptions_size 24


name: sisfb_info
include_file: /usr/include/video/sisfb.h
nasm_code:
; from header /usr/include/video/sisfb.h
struc sisfb_info
    .sisfb_id        resb 4
    .chip_id         resb 4
    .memory          resb 4
    .heapstart       resb 4
    .fbvidmode       resb 1
    .sisfb_version   resb 1
    .sisfb_revision  resb 1
    .sisfb_patchleve resb 1
    .sisfb_caps      resb 1
    .sisfb_tqlen     resb 4
    .sisfb_pcibus    resb 4
    .sisfb_pcislot   resb 4
    .sisfb_pcifunc   resb 4
    .sisfb_lcdpdc    resb 1
    .sisfb_lcda      resb 1
    .sisfb_vbflags   resb 4
    .sisfb_currentvb resb 4
    .sisfb_scalelcd  resb 4
    .sisfb_specialti resb 4
    .sisfb_haveemi   resb 1
    .sisfb_emi30     resb 1
    .sisfb_emi31     resb 1
    .sisfb_emi32     resb 1
    .sisfb_emi33     resb 1
    .sisfb_haveemilc resb 1
    .sisfb_lcdpdca   resb 1
    .sisfb_tvxpos    resb 2
    .sisfb_tvypos    resb 2
    .sisfb_heapsize  resb 4
    .sisfb_videooffs resb 4
    .sisfb_curfstn   resb 4
    .sisfb_curdstn   resb 4
    .sisfb_pci_vendo resb 2
    .sisfb_vbflags2  resb 4
    .sisfb_can_post  resb 1
    .sisfb_card_post resb 1
    .sisfb_was_boot_ resb 1
    .reserved        resb 183 ; None
endstruc
%define struc_sisfb_info_size 284


name: sisfb_cmd
include_file: /usr/include/video/sisfb.h
nasm_code:
; from header /usr/include/video/sisfb.h
struc sisfb_cmd
    .sisfb_cmd       resb 4
    .sisfb_arg       resb 64 ; None
    .sisfb_result    resb 16 ; None
endstruc
%define struc_sisfb_cmd_size 84


name: sis_memreq
include_file: /usr/include/video/sisfb.h
nasm_code:
; from header /usr/include/video/sisfb.h
struc sis_memreq
    .offset          resb 4
    .size            resb 4
endstruc
%define struc_sis_memreq_size 8


name: v86_regs
include_file: /usr/include/video/uvesafb.h
nasm_code:
; from header /usr/include/video/uvesafb.h
struc v86_regs
    .ebx             resb 4
    .ecx             resb 4
    .edx             resb 4
    .esi             resb 4
    .edi             resb 4
    .ebp             resb 4
    .eax             resb 4
    .eip             resb 4
    .eflags          resb 4
    .esp             resb 4
    .cs              resb 2
    .ss              resb 2
    .es              resb 2
    .ds              resb 2
    .fs              resb 2
    .gs              resb 2
endstruc
%define struc_v86_regs_size 52


name: uvesafb_task
include_file: /usr/include/video/uvesafb.h
nasm_code:
; from header /usr/include/video/uvesafb.h
struc uvesafb_task
    .flags           resb 1
    .buf_len         resb 4
    .regs            resb 52 ; struc v86_regs
endstruc
%define struc_uvesafb_task_size 60


name: vbe_ib
include_file: /usr/include/video/uvesafb.h
nasm_code:
; from header /usr/include/video/uvesafb.h
struc vbe_ib
    .vbe_signature   resb 4 ; None
    .vbe_version     resb 2
    .oem_string_ptr  resb 4
    .capabilities    resb 4
    .mode_list_ptr   resb 4
    .total_memory    resb 2
    .oem_software_re resb 2
    .oem_vendor_name resb 4
    .oem_product_nam resb 4
    .oem_product_rev resb 4
    .reserved        resb 222 ; None
    .oem_data        resb 256 ; None
    .misc_data       resb 512 ; None
endstruc
%define struc_vbe_ib_size 1024


name: edid_info
include_file: /usr/include/video/edid.h
nasm_code:
; from header /usr/include/video/edid.h
struc edid_info
    .dummy           resb 128 ; None
endstruc
%define struc_edid_info_size 128


name: __res_state
include_file: /usr/include/resolv.h
nasm_code:
; from header /usr/include/resolv.h
struc __res_state
    .retrans         resb 4
    .retry           resb 4
    .options         resb 8
    .nscount         resb 4
    .nsaddr_list     resb 48 ; None
    .id              resb 2
    .dnsrch          resb 56 ; None
    .defdname        resb 256 ; None
    .pfcode          resb 8
    .ndots           resb 4
    .nsort           resb 4
    .ipv6_unavail    resb 4
    .unused          resb 4
    .sort_list       resb 80 ; None
    .qhook           resb 8
    .rhook           resb 8
    .res_h_errno     resb 4
    ._vcsock         resb 4
    ._flags          resb 4
    ._u              resb 56 ; union None
endstruc
%define struc___res_state_size 568


name: res_sym
include_file: /usr/include/resolv.h
nasm_code:
; from header /usr/include/resolv.h
struc res_sym
    .number          resb 4
    .name            resb 8
    .humanname       resb 8
endstruc
%define struc_res_sym_size 24


name: re_pattern_buffer
include_file: /usr/include/regex.h
nasm_code:
; from header /usr/include/regex.h
struc re_pattern_buffer
    .re_nsub         resb 8
    .__opaque        resb 8
    .__padding       resb 32 ; None
    .__nsub2         resb 8
    .__padding2      resb 1
endstruc
%define struc_re_pattern_buffer_size 64


name: ifaddrs
include_file: /usr/include/ifaddrs.h
nasm_code:
; from header /usr/include/ifaddrs.h
struc ifaddrs
    .ifa_next        resb 8
    .ifa_name        resb 8
    .ifa_flags       resb 4
    .ifa_addr        resb 8
    .ifa_netmask     resb 8
    .ifa_ifu         resb 8 ; union None
    .ifa_data        resb 8
endstruc
%define struc_ifaddrs_size 56


name: ar_hdr
include_file: /usr/include/ar.h
nasm_code:
; from header /usr/include/ar.h
struc ar_hdr
    .ar_name         resb 16 ; None
    .ar_date         resb 12 ; None
    .ar_uid          resb 6 ; None
    .ar_gid          resb 6 ; None
    .ar_mode         resb 8 ; None
    .ar_size         resb 10 ; None
    .ar_fmag         resb 2 ; None
endstruc
%define struc_ar_hdr_size 60


name: sigevent
include_file: /usr/include/asm-generic/siginfo.h
nasm_code:
; from header /usr/include/asm-generic/siginfo.h
struc sigevent
    .sigev_value     resb 8 ; sigval_t
    .sigev_signo     resb 4
    .sigev_notify    resb 4
    ._sigev_un       resb 48 ; union None
endstruc
%define struc_sigevent_size 64


name: msqid64_ds
include_file: /usr/include/asm-generic/msgbuf.h
nasm_code:
; from header /usr/include/asm-generic/msgbuf.h
struc msqid64_ds
    .msg_perm        resb 48 ; struc ipc64_perm
    .msg_stime       resb 8
    .msg_rtime       resb 8
    .msg_ctime       resb 8
    .msg_cbytes      resb 8
    .msg_qnum        resb 8
    .msg_qbytes      resb 8
    .msg_lspid       resb 4
    .msg_lrpid       resb 4
    .__unused4       resb 8
    .__unused5       resb 8
endstruc
%define struc_msqid64_ds_size 120


name: winsize
include_file: /usr/include/asm-generic/termios.h
nasm_code:
; from header /usr/include/asm-generic/termios.h
struc winsize
    .ws_row          resb 2
    .ws_col          resb 2
    .ws_xpixel       resb 2
    .ws_ypixel       resb 2
endstruc
%define struc_winsize_size 8


name: termio
include_file: /usr/include/asm-generic/termios.h
nasm_code:
; from header /usr/include/asm-generic/termios.h
struc termio
    .c_iflag         resb 2
    .c_oflag         resb 2
    .c_cflag         resb 2
    .c_lflag         resb 2
    .c_line          resb 1
    .c_cc            resb 8 ; None
endstruc
%define struc_termio_size 18


name: termios
include_file: /usr/include/asm-generic/termbits.h
nasm_code:
; from header /usr/include/asm-generic/termbits.h
struc termios
    .c_iflag         resb 4
    .c_oflag         resb 4
    .c_cflag         resb 4
    .c_lflag         resb 4
    .c_line          resb 1
    .c_cc            resb 19 ; None
endstruc
%define struc_termios_size 36


name: termios2
include_file: /usr/include/asm-generic/termbits.h
nasm_code:
; from header /usr/include/asm-generic/termbits.h
struc termios2
    .c_iflag         resb 4
    .c_oflag         resb 4
    .c_cflag         resb 4
    .c_lflag         resb 4
    .c_line          resb 1
    .c_cc            resb 19 ; None
    .c_ispeed        resb 4
    .c_ospeed        resb 4
endstruc
%define struc_termios2_size 44


name: ktermios
include_file: /usr/include/asm-generic/termbits.h
nasm_code:
; from header /usr/include/asm-generic/termbits.h
struc ktermios
    .c_iflag         resb 4
    .c_oflag         resb 4
    .c_cflag         resb 4
    .c_lflag         resb 4
    .c_line          resb 1
    .c_cc            resb 19 ; None
    .c_ispeed        resb 4
    .c_ospeed        resb 4
endstruc
%define struc_ktermios_size 44


name: statfs
include_file: /usr/include/asm-generic/statfs.h
nasm_code:
; from header /usr/include/asm-generic/statfs.h
struc statfs
    .f_type          resb 8
    .f_bsize         resb 8
    .f_blocks        resb 8
    .f_bfree         resb 8
    .f_bavail        resb 8
    .f_files         resb 8
    .f_ffree         resb 8
    .f_fsid          resb 8 ; __kernel_fsid_t
    .f_namelen       resb 8
    .f_frsize        resb 8
    .f_flags         resb 8
    .f_spare         resb 32 ; None
endstruc
%define struc_statfs_size 120


name: statfs64
include_file: /usr/include/asm-generic/statfs.h
nasm_code:
; from header /usr/include/asm-generic/statfs.h
struc statfs64
    .f_type          resb 8
    .f_bsize         resb 8
    .f_blocks        resb 8
    .f_bfree         resb 8
    .f_bavail        resb 8
    .f_files         resb 8
    .f_ffree         resb 8
    .f_fsid          resb 8 ; __kernel_fsid_t
    .f_namelen       resb 8
    .f_frsize        resb 8
    .f_flags         resb 8
    .f_spare         resb 32 ; None
endstruc
%define struc_statfs64_size 120


name: compat_statfs64
include_file: /usr/include/asm-generic/statfs.h
nasm_code:
; from header /usr/include/asm-generic/statfs.h
struc compat_statfs64
    .f_type          resb 4
    .f_bsize         resb 4
    .f_blocks        resb 8
    .f_bfree         resb 8
    .f_bavail        resb 8
    .f_files         resb 8
    .f_ffree         resb 8
    .f_fsid          resb 8 ; __kernel_fsid_t
    .f_namelen       resb 4
    .f_frsize        resb 4
    .f_flags         resb 4
    .f_spare         resb 16 ; None
endstruc
%define struc_compat_statfs64_size 88


name: semid64_ds
include_file: /usr/include/asm-generic/sembuf.h
nasm_code:
; from header /usr/include/asm-generic/sembuf.h
struc semid64_ds
    .sem_perm        resb 48 ; struc ipc64_perm
    .sem_otime       resb 8
    .sem_ctime       resb 8
    .sem_nsems       resb 8
    .__unused3       resb 8
    .__unused4       resb 8
endstruc
%define struc_semid64_ds_size 88


name: stat
include_file: /usr/include/asm-generic/stat.h
nasm_code:
; from header /usr/include/asm-generic/stat.h
struc stat
    .st_dev          resb 8
    .st_ino          resb 8
    .st_mode         resb 4
    .st_nlink        resb 4
    .st_uid          resb 4
    .st_gid          resb 4
    .st_rdev         resb 8
    .__pad1          resb 8
    .st_size         resb 8
    .st_blksize      resb 4
    .__pad2          resb 4
    .st_blocks       resb 8
    .st_atime        resb 8
    .st_atime_nsec   resb 8
    .st_mtime        resb 8
    .st_mtime_nsec   resb 8
    .st_ctime        resb 8
    .st_ctime_nsec   resb 8
    .__unused4       resb 4
    .__unused5       resb 4
endstruc
%define struc_stat_size 128


name: f_owner_ex
include_file: /usr/include/asm-generic/fcntl.h
nasm_code:
; from header /usr/include/asm-generic/fcntl.h
struc f_owner_ex
    .type            resb 4
    .pid             resb 4
endstruc
%define struc_f_owner_ex_size 8


name: flock
include_file: /usr/include/asm-generic/fcntl.h
nasm_code:
; from header /usr/include/asm-generic/fcntl.h
struc flock
    .l_type          resb 2
    .l_whence        resb 2
    .l_start         resb 8
    .l_len           resb 8
    .l_pid           resb 4
endstruc
%define struc_flock_size 32


name: flock64
include_file: /usr/include/asm-generic/fcntl.h
nasm_code:
; from header /usr/include/asm-generic/fcntl.h
struc flock64
    .l_type          resb 2
    .l_whence        resb 2
    .l_start         resb 8
    .l_len           resb 8
    .l_pid           resb 4
endstruc
%define struc_flock64_size 32


name: pollfd
include_file: /usr/include/asm-generic/poll.h
nasm_code:
; from header /usr/include/asm-generic/poll.h
struc pollfd
    .fd              resb 4
    .events          resb 2
    .revents         resb 2
endstruc
%define struc_pollfd_size 8


name: ipc64_perm
include_file: /usr/include/asm-generic/ipcbuf.h
nasm_code:
; from header /usr/include/asm-generic/ipcbuf.h
struc ipc64_perm
    .key             resb 4
    .uid             resb 4
    .gid             resb 4
    .cuid            resb 4
    .cgid            resb 4
    .mode            resb 4
    .__pad1          resb 0 ; None
    .seq             resb 2
    .__pad2          resb 2
    .__unused1       resb 8
    .__unused2       resb 8
endstruc
%define struc_ipc64_perm_size 48


name: utmpx
include_file: /usr/include/utmpx.h
nasm_code:
; from header /usr/include/utmpx.h
struc utmpx
    .ut_type         resb 2
    .ut_pid          resb 4
    .ut_line         resb 32 ; None
    .ut_id           resb 4 ; None
    .ut_user         resb 32 ; None
    .ut_host         resb 256 ; None
    .ut_exit         resb 4 ; struc None
    .ut_session      resb 8
    .ut_tv           resb 16 ; struc timeval
    .ut_addr_v6      resb 16 ; None
    .__unused        resb 20 ; None
endstruc
%define struc_utmpx_size 400


name: lastlog
include_file: /usr/include/utmp.h
nasm_code:
; from header /usr/include/utmp.h
struc lastlog
    .ll_time         resb 8
    .ll_line         resb 32 ; None
    .ll_host         resb 256 ; None
endstruc
%define struc_lastlog_size 296


name: aiocb
include_file: /usr/include/aio.h
nasm_code:
; from header /usr/include/aio.h
struc aiocb
    .aio_fildes      resb 4
    .aio_lio_opcode  resb 4
    .aio_reqprio     resb 4
    .aio_buf         resb 8
    .aio_nbytes      resb 8
    .aio_sigevent    resb 64 ; struc sigevent
    .__td            resb 8
    .__lock          resb 8 ; None
    .__err           resb 4
    .__ret           resb 8
    .aio_offset      resb 8
    .__next          resb 8
    .__prev          resb 8
    .__dummy4        resb 16 ; None
endstruc
%define struc_aiocb_size 168


name: hl_info_hw_ip_info
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_hw_ip_info
    .sram_base_addre resb 8
    .dram_base_addre resb 8
    .dram_size       resb 8
    .sram_size       resb 4
    .num_of_events   resb 4
    .device_id       resb 4
    .module_id       resb 4
    .reserved        resb 8 ; None
    .cpld_version    resb 4
    .psoc_pci_pll_nr resb 4
    .psoc_pci_pll_nf resb 4
    .psoc_pci_pll_od resb 4
    .psoc_pci_pll_di resb 4
    .tpc_enabled_mas resb 1
    .dram_enabled    resb 1
    .pad             resb 2 ; None
    .cpucp_version   resb 128 ; None
    .card_name       resb 16 ; None
endstruc
%define struc_hl_info_hw_ip_info_size 216


name: hl_info_dram_usage
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_dram_usage
    .dram_free_mem   resb 8
    .ctx_dram_mem    resb 8
endstruc
%define struc_hl_info_dram_usage_size 16


name: hl_info_hw_idle
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_hw_idle
    .is_idle         resb 4
    .busy_engines_ma resb 4
    .busy_engines_ma resb 8
endstruc
%define struc_hl_info_hw_idle_size 16


name: hl_info_device_status
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_device_status
    .status          resb 4
    .pad             resb 4
endstruc
%define struc_hl_info_device_status_size 8


name: hl_info_device_utilization
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_device_utilization
    .utilization     resb 4
    .pad             resb 4
endstruc
%define struc_hl_info_device_utilization_size 8


name: hl_info_clk_rate
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_clk_rate
    .cur_clk_rate_mh resb 4
    .max_clk_rate_mh resb 4
endstruc
%define struc_hl_info_clk_rate_size 8


name: hl_info_reset_count
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_reset_count
    .hard_reset_cnt  resb 4
    .soft_reset_cnt  resb 4
endstruc
%define struc_hl_info_reset_count_size 8


name: hl_info_time_sync
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_time_sync
    .device_time     resb 8
    .host_time       resb 8
endstruc
%define struc_hl_info_time_sync_size 16


name: hl_info_pci_counters
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_pci_counters
    .rx_throughput   resb 8
    .tx_throughput   resb 8
    .replay_cnt      resb 8
endstruc
%define struc_hl_info_pci_counters_size 24


name: hl_info_clk_throttle
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_clk_throttle
    .clk_throttling_ resb 4
endstruc
%define struc_hl_info_clk_throttle_size 4


name: hl_info_energy
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_energy
    .total_energy_co resb 8
endstruc
%define struc_hl_info_energy_size 8


name: hl_info_sync_manager
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_sync_manager
    .first_available resb 4
    .first_available resb 4
endstruc
%define struc_hl_info_sync_manager_size 8


name: hl_cs_counters
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_cs_counters
    .out_of_mem_drop resb 8
    .parsing_drop_cn resb 8
    .queue_full_drop resb 8
    .device_in_reset resb 8
    .max_cs_in_fligh resb 8
endstruc
%define struc_hl_cs_counters_size 40


name: hl_info_cs_counters
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_info_cs_counters
    .cs_counters     resb 40 ; struc hl_cs_counters
    .ctx_cs_counters resb 40 ; struc hl_cs_counters
endstruc
%define struc_hl_info_cs_counters_size 80


name: hl_cb_in
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_cb_in
    .cb_handle       resb 8
    .op              resb 4
    .cb_size         resb 4
    .ctx_id          resb 4
    .flags           resb 4
endstruc
%define struc_hl_cb_in_size 24


name: hl_cb_out
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_cb_out
    .cb_handle       resb 8
endstruc
%define struc_hl_cb_out_size 8


name: hl_cs_in
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_cs_in
    .chunks_restore  resb 8
    .chunks_execute  resb 8
    .chunks_store    resb 8
    .num_chunks_rest resb 4
    .num_chunks_exec resb 4
    .num_chunks_stor resb 4
    .cs_flags        resb 4
    .ctx_id          resb 4
endstruc
%define struc_hl_cs_in_size 48


name: hl_cs_out
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_cs_out
    .seq             resb 8
    .status          resb 4
    .pad             resb 4
endstruc
%define struc_hl_cs_out_size 16


name: hl_wait_cs_in
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_wait_cs_in
    .seq             resb 8
    .timeout_us      resb 8
    .ctx_id          resb 4
    .pad             resb 4
endstruc
%define struc_hl_wait_cs_in_size 24


name: hl_wait_cs_out
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_wait_cs_out
    .status          resb 4
    .pad             resb 4
endstruc
%define struc_hl_wait_cs_out_size 8


name: hl_debug_params_etr
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_debug_params_etr
    .buffer_address  resb 8
    .buffer_size     resb 8
    .sink_mode       resb 4
    .pad             resb 4
endstruc
%define struc_hl_debug_params_etr_size 24


name: hl_debug_params_etf
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_debug_params_etf
    .buffer_address  resb 8
    .buffer_size     resb 8
    .sink_mode       resb 4
    .pad             resb 4
endstruc
%define struc_hl_debug_params_etf_size 24


name: hl_debug_params_stm
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_debug_params_stm
    .he_mask         resb 8
    .sp_mask         resb 8
    .id              resb 4
    .frequency       resb 4
endstruc
%define struc_hl_debug_params_stm_size 24


name: hl_debug_params_bmon
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_debug_params_bmon
    .start_addr0     resb 8
    .addr_mask0      resb 8
    .start_addr1     resb 8
    .addr_mask1      resb 8
    .bw_win          resb 4
    .win_capture     resb 4
    .id              resb 4
    .pad             resb 4
endstruc
%define struc_hl_debug_params_bmon_size 48


name: hl_debug_params_spmu
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_debug_params_spmu
    .event_types     resb 80 ; None
    .event_types_num resb 4
    .pad             resb 4
endstruc
%define struc_hl_debug_params_spmu_size 88


name: hl_debug_args
include_file: /usr/include/misc/habanalabs.h
nasm_code:
; from header /usr/include/misc/habanalabs.h
struc hl_debug_args
    .input_ptr       resb 8
    .output_ptr      resb 8
    .input_size      resb 4
    .output_size     resb 4
    .op              resb 4
    .reg_idx         resb 4
    .enable          resb 4
    .ctx_id          resb 4
endstruc
%define struc_hl_debug_args_size 40


name: hisi_qp_ctx
include_file: /usr/include/misc/uacce/hisi_qm.h
nasm_code:
; from header /usr/include/misc/uacce/hisi_qm.h
struc hisi_qp_ctx
    .id              resb 2
    .qc_type         resb 2
endstruc
%define struc_hisi_qp_ctx_size 4


name: xsdfec_turbo
include_file: /usr/include/misc/xilinx_sdfec.h
nasm_code:
; from header /usr/include/misc/xilinx_sdfec.h
struc xsdfec_turbo
    .alg             resb 4
    .scale           resb 1
endstruc
%define struc_xsdfec_turbo_size 8


name: xsdfec_ldpc_params
include_file: /usr/include/misc/xilinx_sdfec.h
nasm_code:
; from header /usr/include/misc/xilinx_sdfec.h
struc xsdfec_ldpc_params
    .n               resb 4
    .k               resb 4
    .psize           resb 4
    .nlayers         resb 4
    .nqc             resb 4
    .nmqc            resb 4
    .nm              resb 4
    .norm_type       resb 4
    .no_packing      resb 4
    .special_qc      resb 4
    .no_final_parity resb 4
    .max_schedule    resb 4
    .sc_off          resb 4
    .la_off          resb 4
    .qc_off          resb 4
    .sc_table        resb 8
    .la_table        resb 8
    .qc_table        resb 8
    .code_id         resb 2
endstruc
%define struc_xsdfec_ldpc_params_size 96


name: xsdfec_status
include_file: /usr/include/misc/xilinx_sdfec.h
nasm_code:
; from header /usr/include/misc/xilinx_sdfec.h
struc xsdfec_status
    .state           resb 4
    .activity        resb 1
endstruc
%define struc_xsdfec_status_size 8


name: xsdfec_irq
include_file: /usr/include/misc/xilinx_sdfec.h
nasm_code:
; from header /usr/include/misc/xilinx_sdfec.h
struc xsdfec_irq
    .enable_isr      resb 1
    .enable_ecc_isr  resb 1
endstruc
%define struc_xsdfec_irq_size 2


name: xsdfec_config
include_file: /usr/include/misc/xilinx_sdfec.h
nasm_code:
; from header /usr/include/misc/xilinx_sdfec.h
struc xsdfec_config
    .code            resb 4
    .order           resb 4
    .din_width       resb 4
    .din_word_includ resb 4
    .dout_width      resb 4
    .dout_word_inclu resb 4
    .irq             resb 2 ; struc xsdfec_irq
    .bypass          resb 1
    .code_wr_protect resb 1
endstruc
%define struc_xsdfec_config_size 28


name: xsdfec_stats
include_file: /usr/include/misc/xilinx_sdfec.h
nasm_code:
; from header /usr/include/misc/xilinx_sdfec.h
struc xsdfec_stats
    .isr_err_count   resb 4
    .cecc_count      resb 4
    .uecc_count      resb 4
endstruc
%define struc_xsdfec_stats_size 12


name: xsdfec_ldpc_param_table_sizes
include_file: /usr/include/misc/xilinx_sdfec.h
nasm_code:
; from header /usr/include/misc/xilinx_sdfec.h
struc xsdfec_ldpc_param_table_sizes
    .sc_size         resb 4
    .la_size         resb 4
    .qc_size         resb 4
endstruc
%define struc_xsdfec_ldpc_param_table_sizes_size 12


name: fastrpc_invoke_args
include_file: /usr/include/misc/fastrpc.h
nasm_code:
; from header /usr/include/misc/fastrpc.h
struc fastrpc_invoke_args
    .ptr             resb 8
    .length          resb 8
    .fd              resb 4
    .reserved        resb 4
endstruc
%define struc_fastrpc_invoke_args_size 24


name: fastrpc_invoke
include_file: /usr/include/misc/fastrpc.h
nasm_code:
; from header /usr/include/misc/fastrpc.h
struc fastrpc_invoke
    .handle          resb 4
    .sc              resb 4
    .args            resb 8
endstruc
%define struc_fastrpc_invoke_size 16


name: fastrpc_init_create
include_file: /usr/include/misc/fastrpc.h
nasm_code:
; from header /usr/include/misc/fastrpc.h
struc fastrpc_init_create
    .filelen         resb 4
    .filefd          resb 4
    .attrs           resb 4
    .siglen          resb 4
    .file            resb 8
endstruc
%define struc_fastrpc_init_create_size 24


name: fastrpc_alloc_dma_buf
include_file: /usr/include/misc/fastrpc.h
nasm_code:
; from header /usr/include/misc/fastrpc.h
struc fastrpc_alloc_dma_buf
    .fd              resb 4
    .flags           resb 4
    .size            resb 8
endstruc
%define struc_fastrpc_alloc_dma_buf_size 16


name: fastrpc_req_mmap
include_file: /usr/include/misc/fastrpc.h
nasm_code:
; from header /usr/include/misc/fastrpc.h
struc fastrpc_req_mmap
    .fd              resb 4
    .flags           resb 4
    .vaddrin         resb 8
    .size            resb 8
    .vaddrout        resb 8
endstruc
%define struc_fastrpc_req_mmap_size 32


name: fastrpc_req_munmap
include_file: /usr/include/misc/fastrpc.h
nasm_code:
; from header /usr/include/misc/fastrpc.h
struc fastrpc_req_munmap
    .vaddrout        resb 8
    .size            resb 8
endstruc
%define struc_fastrpc_req_munmap_size 16


name: ocxl_kernel_event_header
include_file: /usr/include/misc/ocxl.h
nasm_code:
; from header /usr/include/misc/ocxl.h
struc ocxl_kernel_event_header
    .type            resb 2
    .flags           resb 2
    .reserved        resb 4
endstruc
%define struc_ocxl_kernel_event_header_size 8


name: ocxl_kernel_event_xsl_fault_error
include_file: /usr/include/misc/ocxl.h
nasm_code:
; from header /usr/include/misc/ocxl.h
struc ocxl_kernel_event_xsl_fault_error
    .addr            resb 8
    .dsisr           resb 8
    .count           resb 8
    .reserved        resb 8
endstruc
%define struc_ocxl_kernel_event_xsl_fault_error_size 32


name: ocxl_ioctl_attach
include_file: /usr/include/misc/ocxl.h
nasm_code:
; from header /usr/include/misc/ocxl.h
struc ocxl_ioctl_attach
    .amr             resb 8
    .reserved1       resb 8
    .reserved2       resb 8
    .reserved3       resb 8
endstruc
%define struc_ocxl_ioctl_attach_size 32


name: ocxl_ioctl_metadata
include_file: /usr/include/misc/ocxl.h
nasm_code:
; from header /usr/include/misc/ocxl.h
struc ocxl_ioctl_metadata
    .version         resb 2
    .afu_version_maj resb 1
    .afu_version_min resb 1
    .pasid           resb 4
    .pp_mmio_size    resb 8
    .global_mmio_siz resb 8
    .reserved        resb 104 ; None
endstruc
%define struc_ocxl_ioctl_metadata_size 128


name: ocxl_ioctl_p9_wait
include_file: /usr/include/misc/ocxl.h
nasm_code:
; from header /usr/include/misc/ocxl.h
struc ocxl_ioctl_p9_wait
    .thread_id       resb 2
    .reserved1       resb 2
    .reserved2       resb 4
    .reserved3       resb 24 ; None
endstruc
%define struc_ocxl_ioctl_p9_wait_size 32


name: ocxl_ioctl_features
include_file: /usr/include/misc/ocxl.h
nasm_code:
; from header /usr/include/misc/ocxl.h
struc ocxl_ioctl_features
    .flags           resb 32 ; None
endstruc
%define struc_ocxl_ioctl_features_size 32


name: ocxl_ioctl_irq_fd
include_file: /usr/include/misc/ocxl.h
nasm_code:
; from header /usr/include/misc/ocxl.h
struc ocxl_ioctl_irq_fd
    .irq_offset      resb 8
    .eventfd         resb 4
    .reserved        resb 4
endstruc
%define struc_ocxl_ioctl_irq_fd_size 16


name: cxl_ioctl_start_work
include_file: /usr/include/misc/cxl.h
nasm_code:
; from header /usr/include/misc/cxl.h
struc cxl_ioctl_start_work
    .flags           resb 8
    .work_element_de resb 8
    .amr             resb 8
    .num_interrupts  resb 2
    .tid             resb 2
    .reserved1       resb 4
    .reserved2       resb 8
    .reserved3       resb 8
    .reserved4       resb 8
    .reserved5       resb 8
endstruc
%define struc_cxl_ioctl_start_work_size 64


name: cxl_afu_id
include_file: /usr/include/misc/cxl.h
nasm_code:
; from header /usr/include/misc/cxl.h
struc cxl_afu_id
    .flags           resb 8
    .card_id         resb 4
    .afu_offset      resb 4
    .afu_mode        resb 4
    .reserved1       resb 4
    .reserved2       resb 8
    .reserved3       resb 8
    .reserved4       resb 8
    .reserved5       resb 8
    .reserved6       resb 8
endstruc
%define struc_cxl_afu_id_size 64


name: cxl_adapter_image
include_file: /usr/include/misc/cxl.h
nasm_code:
; from header /usr/include/misc/cxl.h
struc cxl_adapter_image
    .flags           resb 8
    .data            resb 8
    .len_data        resb 8
    .len_image       resb 8
    .reserved1       resb 8
    .reserved2       resb 8
    .reserved3       resb 8
    .reserved4       resb 8
endstruc
%define struc_cxl_adapter_image_size 64


name: cxl_event_header
include_file: /usr/include/misc/cxl.h
nasm_code:
; from header /usr/include/misc/cxl.h
struc cxl_event_header
    .type            resb 2
    .size            resb 2
    .process_element resb 2
    .reserved1       resb 2
endstruc
%define struc_cxl_event_header_size 8


name: cxl_event_afu_interrupt
include_file: /usr/include/misc/cxl.h
nasm_code:
; from header /usr/include/misc/cxl.h
struc cxl_event_afu_interrupt
    .flags           resb 2
    .irq             resb 2
    .reserved1       resb 4
endstruc
%define struc_cxl_event_afu_interrupt_size 8


name: cxl_event_data_storage
include_file: /usr/include/misc/cxl.h
nasm_code:
; from header /usr/include/misc/cxl.h
struc cxl_event_data_storage
    .flags           resb 2
    .reserved1       resb 2
    .reserved2       resb 4
    .addr            resb 8
    .dsisr           resb 8
    .reserved3       resb 8
endstruc
%define struc_cxl_event_data_storage_size 32


name: cxl_event_afu_error
include_file: /usr/include/misc/cxl.h
nasm_code:
; from header /usr/include/misc/cxl.h
struc cxl_event_afu_error
    .flags           resb 2
    .reserved1       resb 2
    .reserved2       resb 4
    .error           resb 8
endstruc
%define struc_cxl_event_afu_error_size 16


name: cxl_event_afu_driver_reserved
include_file: /usr/include/misc/cxl.h
nasm_code:
; from header /usr/include/misc/cxl.h
struc cxl_event_afu_driver_reserved
    .data_size       resb 4
    .data            resb 0 ; None
endstruc
%define struc_cxl_event_afu_driver_reserved_size 4


name: compress_data
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc compress_data
    .clen            resb 4
    .chksum          resb 4
    .reserved        resb 16 ; None
    .cdata           resb 0 ; None
endstruc
%define struc_compress_data_size 24


name: compress_ctx
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc compress_ctx
    .cluster_size    resb 4
    .log_cluster_siz resb 4
    .rbuf            resb 8
    .cbuf            resb 8
    .rlen            resb 8
    .clen            resb 8
    .private         resb 8
endstruc
%define struc_compress_ctx_size 48


name: device_info
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc device_info
    .path            resb 8
    .fd              resb 4
    .sector_size     resb 4
    .total_sectors   resb 8
    .start_blkaddr   resb 8
    .end_blkaddr     resb 8
    .total_segments  resb 4
    .zoned_model     resb 4
    .nr_zones        resb 4
    .nr_rnd_zones    resb 4
    .zone_blocks     resb 8
    .zone_size       resb 8
    .zone_cap_blocks resb 8
endstruc
%define struc_device_info_size 80


name: f2fs_configuration
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_configuration
    .reserved_segmen resb 4
    .new_reserved_se resb 4
    .sparse_mode     resb 4
    .zoned_mode      resb 4
    .zoned_model     resb 4
    .zone_blocks     resb 8
    .overprovision   resb 8
    .new_overprovisi resb 8
    .cur_seg         resb 24 ; None
    .segs_per_sec    resb 4
    .secs_per_zone   resb 4
    .segs_per_zone   resb 4
    .start_sector    resb 4
    .total_segments  resb 4
    .sector_size     resb 4
    .device_size     resb 8
    .total_sectors   resb 8
    .wanted_total_se resb 8
    .wanted_sector_s resb 8
    .target_sectors  resb 8
    .max_size        resb 8
    .sectors_per_blk resb 4
    .blks_per_seg    resb 4
    .init_version    resb 257 ; None
    .sb_version      resb 257 ; None
    .version         resb 257 ; None
    .vol_label       resb 8
    .vol_uuid        resb 8
    .s_encoding      resb 2
    .s_encoding_flag resb 2
    .heap            resb 4
    .kd              resb 4
    .dump_fd         resb 4
    .devices         resb 640 ; None
    .ndevs           resb 4
    .extension_list  resb 16 ; None
    .rootdev_name    resb 8
    .dbg_lv          resb 4
    .show_dentry     resb 4
    .trim            resb 4
    .trimmed         resb 4
    .func            resb 4
    .private         resb 8
    .dry_run         resb 4
    .no_kernel_check resb 4
    .fix_on          resb 4
    .force           resb 4
    .defset          resb 4
    .bug_on          resb 4
    .bug_nat_bits    resb 4
    .quota_fixed     resb 1
    .alloc_failed    resb 4
    .auto_fix        resb 4
    .layout          resb 4
    .show_file_map   resb 4
    .show_file_map_m resb 8
    .quota_fix       resb 4
    .preen_mode      resb 4
    .ro              resb 4
    .preserve_limits resb 4
    .large_nat_bitma resb 4
    .fix_chksum      resb 4
    .feature         resb 4
    .quota_bits      resb 4
    .fixed_time      resb 8
    .fake_seed       resb 4
    .next_free_nid   resb 4
    .quota_inum      resb 4
    .quota_dnum      resb 4
    .lpf_inum        resb 4
    .lpf_dnum        resb 4
    .lpf_ino         resb 4
    .root_uid        resb 4
    .root_gid        resb 4
    .defrag_shrink   resb 4
    .defrag_start    resb 8
    .defrag_len      resb 8
    .defrag_target   resb 8
    .from_dir        resb 8
    .mount_point     resb 8
    .target_out_dir  resb 8
    .fs_config_file  resb 8
    .preserve_perms  resb 4
    .safe_resize     resb 4
    .chksum_seed     resb 4
    .cache_config    resb 16 ; dev_cache_config_t
    .compress        resb 88 ; compress_config_t
endstruc
%define struc_f2fs_configuration_size 1976


name: f2fs_device
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_device
    .path            resb 64 ; None
    .total_segments  resb 4
endstruc
%define struc_f2fs_device_size 68


name: f2fs_super_block
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_super_block
    .magic           resb 4
    .major_ver       resb 2
    .minor_ver       resb 2
    .log_sectorsize  resb 4
    .log_sectors_per resb 4
    .log_blocksize   resb 4
    .log_blocks_per_ resb 4
    .segs_per_sec    resb 4
    .secs_per_zone   resb 4
    .checksum_offset resb 4
    .block_count     resb 8
    .section_count   resb 4
    .segment_count   resb 4
    .segment_count_c resb 4
    .segment_count_s resb 4
    .segment_count_n resb 4
    .segment_count_s resb 4
    .segment_count_m resb 4
    .segment0_blkadd resb 4
    .cp_blkaddr      resb 4
    .sit_blkaddr     resb 4
    .nat_blkaddr     resb 4
    .ssa_blkaddr     resb 4
    .main_blkaddr    resb 4
    .root_ino        resb 4
    .node_ino        resb 4
    .meta_ino        resb 4
    .uuid            resb 16 ; None
    .volume_name     resb 1024 ; None
    .extension_count resb 4
    .extension_list  resb 512 ; None
    .cp_payload      resb 4
    .version         resb 256 ; None
    .init_version    resb 256 ; None
    .feature         resb 4
    .encryption_leve resb 1
    .encrypt_pw_salt resb 16 ; None
    .devs            resb 544 ; None
    .qf_ino          resb 12 ; None
    .hot_ext_count   resb 1
    .s_encoding      resb 2
    .s_encoding_flag resb 2
    .reserved        resb 306 ; None
    .crc             resb 4
endstruc
%define struc_f2fs_super_block_size 3072


name: f2fs_checkpoint
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_checkpoint
    .checkpoint_ver  resb 8
    .user_block_coun resb 8
    .valid_block_cou resb 8
    .rsvd_segment_co resb 4
    .overprov_segmen resb 4
    .free_segment_co resb 4
    .cur_node_segno  resb 32 ; None
    .cur_node_blkoff resb 16 ; None
    .cur_data_segno  resb 32 ; None
    .cur_data_blkoff resb 16 ; None
    .ckpt_flags      resb 4
    .cp_pack_total_b resb 4
    .cp_pack_start_s resb 4
    .valid_node_coun resb 4
    .valid_inode_cou resb 4
    .next_free_nid   resb 4
    .sit_ver_bitmap_ resb 4
    .nat_ver_bitmap_ resb 4
    .checksum_offset resb 4
    .elapsed_time    resb 8
    .alloc_type      resb 16 ; None
    .sit_nat_version resb 0 ; None
endstruc
%define struc_f2fs_checkpoint_size 192


name: f2fs_orphan_block
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_orphan_block
    .ino             resb 4080 ; None
    .reserved        resb 4
    .blk_addr        resb 2
    .blk_count       resb 2
    .entry_count     resb 4
    .check_sum       resb 4
endstruc
%define struc_f2fs_orphan_block_size 4096


name: f2fs_extent
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_extent
    .fofs            resb 4
    .blk_addr        resb 4
    .len             resb 4
endstruc
%define struc_f2fs_extent_size 12


name: f2fs_compr_blk_cnt
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_compr_blk_cnt
    .cnt             resb 4
    .cheader_pgofs   resb 4
endstruc
%define struc_f2fs_compr_blk_cnt_size 8


name: direct_node
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc direct_node
    .addr            resb 4072 ; None
endstruc
%define struc_direct_node_size 4072


name: indirect_node
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc indirect_node
    .nid             resb 4072 ; None
endstruc
%define struc_indirect_node_size 4072


name: node_footer
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc node_footer
    .nid             resb 4
    .ino             resb 4
    .flag            resb 4
    .cp_ver          resb 8
    .next_blkaddr    resb 4
endstruc
%define struc_node_footer_size 24


name: f2fs_nat_entry
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_nat_entry
    .version         resb 1
    .ino             resb 4
    .block_addr      resb 4
endstruc
%define struc_f2fs_nat_entry_size 9


name: f2fs_nat_block
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_nat_block
    .entries         resb 4095 ; None
endstruc
%define struc_f2fs_nat_block_size 4095


name: f2fs_sit_entry
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_sit_entry
    .vblocks         resb 2
    .valid_map       resb 64 ; None
    .mtime           resb 8
endstruc
%define struc_f2fs_sit_entry_size 74


name: f2fs_sit_block
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_sit_block
    .entries         resb 4070 ; None
endstruc
%define struc_f2fs_sit_block_size 4070


name: summary_footer
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc summary_footer
    .entry_type      resb 1
    .check_sum       resb 4
endstruc
%define struc_summary_footer_size 5


name: nat_journal_entry
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc nat_journal_entry
    .nid             resb 4
    .ne              resb 9 ; struc f2fs_nat_entry
endstruc
%define struc_nat_journal_entry_size 13


name: nat_journal
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc nat_journal
    .entries         resb 494 ; None
    .reserved        resb 11 ; None
endstruc
%define struc_nat_journal_size 505


name: sit_journal_entry
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc sit_journal_entry
    .segno           resb 4
    .se              resb 74 ; struc f2fs_sit_entry
endstruc
%define struc_sit_journal_entry_size 78


name: sit_journal
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc sit_journal
    .entries         resb 468 ; None
    .reserved        resb 37 ; None
endstruc
%define struc_sit_journal_size 505


name: f2fs_extra_info
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_extra_info
    .kbytes_written  resb 8
    .reserved        resb 497 ; None
endstruc
%define struc_f2fs_extra_info_size 505


name: f2fs_summary_block
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_summary_block
    .entries         resb 3584 ; None
    .journal         resb 507 ; struc f2fs_journal
    .footer          resb 5 ; struc summary_footer
endstruc
%define struc_f2fs_summary_block_size 4096


name: f2fs_dir_entry
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_dir_entry
    .hash_code       resb 4
    .ino             resb 4
    .name_len        resb 2
    .file_type       resb 1
endstruc
%define struc_f2fs_dir_entry_size 11


name: f2fs_dentry_block
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_dentry_block
    .dentry_bitmap   resb 27 ; None
    .reserved        resb 3 ; None
    .dentry          resb 2354 ; None
    .filename        resb 1712 ; None
endstruc
%define struc_f2fs_dentry_block_size 4096


name: feature
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc feature
    .name            resb 8
    .mask            resb 4
endstruc
%define struc_feature_size 16


name: f2fs_nls_table
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_nls_table
    .version         resb 4
    .ops             resb 8
endstruc
%define struc_f2fs_nls_table_size 16


name: f2fs_nls_ops
include_file: /usr/include/f2fs_fs.h
nasm_code:
; from header /usr/include/f2fs_fs.h
struc f2fs_nls_ops
    .casefold        resb 8
endstruc
%define struc_f2fs_nls_ops_size 8


name: mq_attr
include_file: /usr/include/mqueue.h
nasm_code:
; from header /usr/include/mqueue.h
struc mq_attr
    .mq_flags        resb 8
    .mq_maxmsg       resb 8
    .mq_msgsize      resb 8
    .mq_curmsgs      resb 8
    .__unused        resb 32 ; None
endstruc
%define struc_mq_attr_size 64


name: sockaddr_ll
include_file: /usr/include/netpacket/packet.h
nasm_code:
; from header /usr/include/netpacket/packet.h
struc sockaddr_ll
    .sll_family      resb 2
    .sll_protocol    resb 2
    .sll_ifindex     resb 4
    .sll_hatype      resb 2
    .sll_pkttype     resb 1
    .sll_halen       resb 1
    .sll_addr        resb 8 ; None
endstruc
%define struc_sockaddr_ll_size 20


name: packet_mreq
include_file: /usr/include/netpacket/packet.h
nasm_code:
; from header /usr/include/netpacket/packet.h
struc packet_mreq
    .mr_ifindex      resb 4
    .mr_type         resb 2
    .mr_alen         resb 2
    .mr_address      resb 8 ; None
endstruc
%define struc_packet_mreq_size 16


name: crypt_data
include_file: /usr/include/crypt.h
nasm_code:
; from header /usr/include/crypt.h
struc crypt_data
    .initialized     resb 4
    .__buf           resb 256 ; None
endstruc
%define struc_crypt_data_size 260


name: option
include_file: /usr/include/getopt.h
nasm_code:
; from header /usr/include/getopt.h
struc option
    .name            resb 8
    .has_arg         resb 4
    .flag            resb 8
    .val             resb 4
endstruc
%define struc_option_size 32


name: rtentry
include_file: /usr/include/net/route.h
nasm_code:
; from header /usr/include/net/route.h
struc rtentry
    .rt_pad1         resb 8
    .rt_dst          resb 16 ; struc sockaddr
    .rt_gateway      resb 16 ; struc sockaddr
    .rt_genmask      resb 16 ; struc sockaddr
    .rt_flags        resb 2
    .rt_pad2         resb 2
    .rt_pad3         resb 8
    .rt_tos          resb 1
    .rt_class        resb 1
    .rt_pad4         resb 6 ; None
    .rt_metric       resb 2
    .rt_dev          resb 8
    .rt_mtu          resb 8
    .rt_window       resb 8
    .rt_irtt         resb 2
endstruc
%define struc_rtentry_size 120


name: in6_rtmsg
include_file: /usr/include/net/route.h
nasm_code:
; from header /usr/include/net/route.h
struc in6_rtmsg
    .rtmsg_dst       resb 16 ; struc in6_addr
    .rtmsg_src       resb 16 ; struc in6_addr
    .rtmsg_gateway   resb 16 ; struc in6_addr
    .rtmsg_type      resb 4
    .rtmsg_dst_len   resb 2
    .rtmsg_src_len   resb 2
    .rtmsg_metric    resb 4
    .rtmsg_info      resb 8
    .rtmsg_flags     resb 4
    .rtmsg_ifindex   resb 4
endstruc
%define struc_in6_rtmsg_size 80


name: arphdr
include_file: /usr/include/net/if_arp.h
nasm_code:
; from header /usr/include/net/if_arp.h
struc arphdr
    .ar_hrd          resb 2
    .ar_pro          resb 2
    .ar_hln          resb 1
    .ar_pln          resb 1
    .ar_op           resb 2
endstruc
%define struc_arphdr_size 8


name: arpreq
include_file: /usr/include/net/if_arp.h
nasm_code:
; from header /usr/include/net/if_arp.h
struc arpreq
    .arp_pa          resb 16 ; struc sockaddr
    .arp_ha          resb 16 ; struc sockaddr
    .arp_flags       resb 4
    .arp_netmask     resb 16 ; struc sockaddr
    .arp_dev         resb 16 ; None
endstruc
%define struc_arpreq_size 68


name: arpreq_old
include_file: /usr/include/net/if_arp.h
nasm_code:
; from header /usr/include/net/if_arp.h
struc arpreq_old
    .arp_pa          resb 16 ; struc sockaddr
    .arp_ha          resb 16 ; struc sockaddr
    .arp_flags       resb 4
    .arp_netmask     resb 16 ; struc sockaddr
endstruc
%define struc_arpreq_old_size 52


name: arpd_request
include_file: /usr/include/net/if_arp.h
nasm_code:
; from header /usr/include/net/if_arp.h
struc arpd_request
    .req             resb 2
    .ip              resb 4
    .dev             resb 8
    .stamp           resb 8
    .updated         resb 8
    .ha              resb 7 ; None
endstruc
%define struc_arpd_request_size 40


name: ether_addr
include_file: /usr/include/net/ethernet.h
nasm_code:
; from header /usr/include/net/ethernet.h
struc ether_addr
    .ether_addr_octe resb 6 ; None
endstruc
%define struc_ether_addr_size 6


name: ether_header
include_file: /usr/include/net/ethernet.h
nasm_code:
; from header /usr/include/net/ethernet.h
struc ether_header
    .ether_dhost     resb 6 ; None
    .ether_shost     resb 6 ; None
    .ether_type      resb 2
endstruc
%define struc_ether_header_size 14


name: if_nameindex
include_file: /usr/include/net/if.h
nasm_code:
; from header /usr/include/net/if.h
struc if_nameindex
    .if_index        resb 4
    .if_name         resb 8
endstruc
%define struc_if_nameindex_size 16


name: ifaddr
include_file: /usr/include/net/if.h
nasm_code:
; from header /usr/include/net/if.h
struc ifaddr
    .ifa_addr        resb 16 ; struc sockaddr
    .ifa_ifu         resb 16 ; union None
    .ifa_ifp         resb 8
    .ifa_next        resb 8
endstruc
%define struc_ifaddr_size 48


name: ifmap
include_file: /usr/include/net/if.h
nasm_code:
; from header /usr/include/net/if.h
struc ifmap
    .mem_start       resb 8
    .mem_end         resb 8
    .base_addr       resb 2
    .irq             resb 1
    .dma             resb 1
    .port            resb 1
endstruc
%define struc_ifmap_size 24


name: ifreq
include_file: /usr/include/net/if.h
nasm_code:
; from header /usr/include/net/if.h
struc ifreq
    .ifr_ifrn        resb 16 ; union None
    .ifr_ifru        resb 24 ; union None
endstruc
%define struc_ifreq_size 40


name: ifconf
include_file: /usr/include/net/if.h
nasm_code:
; from header /usr/include/net/if.h
struc ifconf
    .ifc_len         resb 4
    .ifc_ifcu        resb 8 ; union None
endstruc
%define struc_ifconf_size 16


name: bandinfo
include_file: /usr/include/stropts.h
nasm_code:
; from header /usr/include/stropts.h
struc bandinfo
    .bi_pri          resb 1
    .bi_flag         resb 4
endstruc
%define struc_bandinfo_size 8


name: strbuf
include_file: /usr/include/stropts.h
nasm_code:
; from header /usr/include/stropts.h
struc strbuf
    .maxlen          resb 4
    .len             resb 4
    .buf             resb 8
endstruc
%define struc_strbuf_size 16


name: strpeek
include_file: /usr/include/stropts.h
nasm_code:
; from header /usr/include/stropts.h
struc strpeek
    .ctlbuf          resb 16 ; struc strbuf
    .databuf         resb 16 ; struc strbuf
    .flags           resb 4
endstruc
%define struc_strpeek_size 40


name: strfdinsert
include_file: /usr/include/stropts.h
nasm_code:
; from header /usr/include/stropts.h
struc strfdinsert
    .ctlbuf          resb 16 ; struc strbuf
    .databuf         resb 16 ; struc strbuf
    .flags           resb 4
    .fildes          resb 4
    .offset          resb 4
endstruc
%define struc_strfdinsert_size 48


name: strioctl
include_file: /usr/include/stropts.h
nasm_code:
; from header /usr/include/stropts.h
struc strioctl
    .ic_cmd          resb 4
    .ic_timout       resb 4
    .ic_len          resb 4
    .ic_dp           resb 8
endstruc
%define struc_strioctl_size 24


name: strrecvfd
include_file: /usr/include/stropts.h
nasm_code:
; from header /usr/include/stropts.h
struc strrecvfd
    .fd              resb 4
    .uid             resb 4
    .gid             resb 4
    .__fill          resb 8 ; None
endstruc
%define struc_strrecvfd_size 20


name: str_mlist
include_file: /usr/include/stropts.h
nasm_code:
; from header /usr/include/stropts.h
struc str_mlist
    .l_name          resb 9 ; None
endstruc
%define struc_str_mlist_size 9


name: str_list
include_file: /usr/include/stropts.h
nasm_code:
; from header /usr/include/stropts.h
struc str_list
    .sl_nmods        resb 4
    .sl_modlist      resb 8
endstruc
%define struc_str_list_size 16


name: sigaction
include_file: /usr/include/signal.h
nasm_code:
; from header /usr/include/signal.h
struc sigaction
    .__sa_handler    resb 8 ; union None
    .sa_mask         resb 128 ; sigset_t
    .sa_flags        resb 4
    .sa_restorer     resb 8
endstruc
%define struc_sigaction_size 152


name: sigevent
include_file: /usr/include/signal.h
nasm_code:
; from header /usr/include/signal.h
struc sigevent
    .sigev_value     resb 8 ; union sigval
    .sigev_signo     resb 4
    .sigev_notify    resb 4
    .__sev_fields    resb 48 ; union None
endstruc
%define struc_sigevent_size 64


name: bpf_elf_map
include_file: /usr/include/iproute2/bpf_elf.h
nasm_code:
; from header /usr/include/iproute2/bpf_elf.h
struc bpf_elf_map
    .type            resb 4
    .size_key        resb 4
    .size_value      resb 4
    .max_elem        resb 4
    .flags           resb 4
    .id              resb 4
    .pinning         resb 4
    .inner_id        resb 4
    .inner_idx       resb 4
endstruc
%define struc_bpf_elf_map_size 36


name: erase_info_user
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc erase_info_user
    .start           resb 4
    .length          resb 4
endstruc
%define struc_erase_info_user_size 8


name: erase_info_user64
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc erase_info_user64
    .start           resb 8
    .length          resb 8
endstruc
%define struc_erase_info_user64_size 16


name: mtd_oob_buf
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc mtd_oob_buf
    .start           resb 4
    .length          resb 4
    .ptr             resb 8
endstruc
%define struc_mtd_oob_buf_size 16


name: mtd_oob_buf64
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc mtd_oob_buf64
    .start           resb 8
    .pad             resb 4
    .length          resb 4
    .usr_ptr         resb 8
endstruc
%define struc_mtd_oob_buf64_size 24


name: mtd_write_req
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc mtd_write_req
    .start           resb 8
    .len             resb 8
    .ooblen          resb 8
    .usr_data        resb 8
    .usr_oob         resb 8
    .mode            resb 1
    .padding         resb 7 ; None
endstruc
%define struc_mtd_write_req_size 48


name: mtd_info_user
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc mtd_info_user
    .type            resb 1
    .flags           resb 4
    .size            resb 4
    .erasesize       resb 4
    .writesize       resb 4
    .oobsize         resb 4
    .padding         resb 8
endstruc
%define struc_mtd_info_user_size 32


name: region_info_user
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc region_info_user
    .offset          resb 4
    .erasesize       resb 4
    .numblocks       resb 4
    .regionindex     resb 4
endstruc
%define struc_region_info_user_size 16


name: otp_info
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc otp_info
    .start           resb 4
    .length          resb 4
    .locked          resb 4
endstruc
%define struc_otp_info_size 12


name: nand_oobinfo
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc nand_oobinfo
    .useecc          resb 4
    .eccbytes        resb 4
    .oobfree         resb 64 ; None
    .eccpos          resb 128 ; None
endstruc
%define struc_nand_oobinfo_size 200


name: nand_oobfree
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc nand_oobfree
    .offset          resb 4
    .length          resb 4
endstruc
%define struc_nand_oobfree_size 8


name: nand_ecclayout_user
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc nand_ecclayout_user
    .eccbytes        resb 4
    .eccpos          resb 256 ; None
    .oobavail        resb 4
    .oobfree         resb 64 ; None
endstruc
%define struc_nand_ecclayout_user_size 328


name: mtd_ecc_stats
include_file: /usr/include/mtd/mtd-abi.h
nasm_code:
; from header /usr/include/mtd/mtd-abi.h
struc mtd_ecc_stats
    .corrected       resb 4
    .failed          resb 4
    .badblocks       resb 4
    .bbtblocks       resb 4
endstruc
%define struc_mtd_ecc_stats_size 16


name: inftl_bci
include_file: /usr/include/mtd/inftl-user.h
nasm_code:
; from header /usr/include/mtd/inftl-user.h
struc inftl_bci
    .ECCsig          resb 6 ; None
    .Status          resb 1
    .Status1         resb 1
endstruc
%define struc_inftl_bci_size 8


name: inftl_unithead1
include_file: /usr/include/mtd/inftl-user.h
nasm_code:
; from header /usr/include/mtd/inftl-user.h
struc inftl_unithead1
    .virtualUnitNo   resb 2
    .prevUnitNo      resb 2
    .ANAC            resb 1
    .NACs            resb 1
    .parityPerField  resb 1
    .discarded       resb 1
endstruc
%define struc_inftl_unithead1_size 8


name: inftl_unithead2
include_file: /usr/include/mtd/inftl-user.h
nasm_code:
; from header /usr/include/mtd/inftl-user.h
struc inftl_unithead2
    .parityPerField  resb 1
    .ANAC            resb 1
    .prevUnitNo      resb 2
    .virtualUnitNo   resb 2
    .NACs            resb 1
    .discarded       resb 1
endstruc
%define struc_inftl_unithead2_size 8


name: inftl_unittail
include_file: /usr/include/mtd/inftl-user.h
nasm_code:
; from header /usr/include/mtd/inftl-user.h
struc inftl_unittail
    .Reserved        resb 4 ; None
    .EraseMark       resb 2
    .EraseMark1      resb 2
endstruc
%define struc_inftl_unittail_size 8


name: inftl_oob
include_file: /usr/include/mtd/inftl-user.h
nasm_code:
; from header /usr/include/mtd/inftl-user.h
struc inftl_oob
    .b               resb 8 ; struc inftl_bci
    .u               resb 8 ; union inftl_uci
endstruc
%define struc_inftl_oob_size 16


name: INFTLPartition
include_file: /usr/include/mtd/inftl-user.h
nasm_code:
; from header /usr/include/mtd/inftl-user.h
struc INFTLPartition
    .virtualUnits    resb 4
    .firstUnit       resb 4
    .lastUnit        resb 4
    .flags           resb 4
    .spareUnits      resb 4
    .Reserved0       resb 4
    .Reserved1       resb 4
endstruc
%define struc_INFTLPartition_size 28


name: INFTLMediaHeader
include_file: /usr/include/mtd/inftl-user.h
nasm_code:
; from header /usr/include/mtd/inftl-user.h
struc INFTLMediaHeader
    .bootRecordID    resb 8 ; None
    .NoOfBootImageBl resb 4
    .NoOfBinaryParti resb 4
    .NoOfBDTLPartiti resb 4
    .BlockMultiplier resb 4
    .FormatFlags     resb 4
    .OsakVersion     resb 4
    .PercentUsed     resb 4
    .Partitions      resb 112 ; None
endstruc
%define struc_INFTLMediaHeader_size 148


name: ubi_attach_req
include_file: /usr/include/mtd/ubi-user.h
nasm_code:
; from header /usr/include/mtd/ubi-user.h
struc ubi_attach_req
    .ubi_num         resb 4
    .mtd_num         resb 4
    .vid_hdr_offset  resb 4
    .max_beb_per1024 resb 2
    .padding         resb 10 ; None
endstruc
%define struc_ubi_attach_req_size 24


name: ubi_mkvol_req
include_file: /usr/include/mtd/ubi-user.h
nasm_code:
; from header /usr/include/mtd/ubi-user.h
struc ubi_mkvol_req
    .vol_id          resb 4
    .alignment       resb 4
    .bytes           resb 8
    .vol_type        resb 1
    .flags           resb 1
    .name_len        resb 2
    .padding2        resb 4 ; None
    .name            resb 128 ; None
endstruc
%define struc_ubi_mkvol_req_size 152


name: ubi_rsvol_req
include_file: /usr/include/mtd/ubi-user.h
nasm_code:
; from header /usr/include/mtd/ubi-user.h
struc ubi_rsvol_req
    .bytes           resb 8
    .vol_id          resb 4
endstruc
%define struc_ubi_rsvol_req_size 12


name: ubi_rnvol_req
include_file: /usr/include/mtd/ubi-user.h
nasm_code:
; from header /usr/include/mtd/ubi-user.h
struc ubi_rnvol_req
    .count           resb 4
    .padding1        resb 12 ; None
    .ents            resb 4352 ; None
endstruc
%define struc_ubi_rnvol_req_size 4368


name: ubi_leb_change_req
include_file: /usr/include/mtd/ubi-user.h
nasm_code:
; from header /usr/include/mtd/ubi-user.h
struc ubi_leb_change_req
    .lnum            resb 4
    .bytes           resb 4
    .dtype           resb 1
    .padding         resb 7 ; None
endstruc
%define struc_ubi_leb_change_req_size 16


name: ubi_map_req
include_file: /usr/include/mtd/ubi-user.h
nasm_code:
; from header /usr/include/mtd/ubi-user.h
struc ubi_map_req
    .lnum            resb 4
    .dtype           resb 1
    .padding         resb 3 ; None
endstruc
%define struc_ubi_map_req_size 8


name: ubi_set_vol_prop_req
include_file: /usr/include/mtd/ubi-user.h
nasm_code:
; from header /usr/include/mtd/ubi-user.h
struc ubi_set_vol_prop_req
    .property        resb 1
    .padding         resb 7 ; None
    .value           resb 8
endstruc
%define struc_ubi_set_vol_prop_req_size 16


name: ubi_blkcreate_req
include_file: /usr/include/mtd/ubi-user.h
nasm_code:
; from header /usr/include/mtd/ubi-user.h
struc ubi_blkcreate_req
    .padding         resb 128 ; None
endstruc
%define struc_ubi_blkcreate_req_size 128


name: nftl_bci
include_file: /usr/include/mtd/nftl-user.h
nasm_code:
; from header /usr/include/mtd/nftl-user.h
struc nftl_bci
    .ECCSig          resb 6 ; None
    .Status          resb 1
    .Status1         resb 1
endstruc
%define struc_nftl_bci_size 8


name: nftl_uci0
include_file: /usr/include/mtd/nftl-user.h
nasm_code:
; from header /usr/include/mtd/nftl-user.h
struc nftl_uci0
    .VirtUnitNum     resb 2
    .ReplUnitNum     resb 2
    .SpareVirtUnitNu resb 2
    .SpareReplUnitNu resb 2
endstruc
%define struc_nftl_uci0_size 8


name: nftl_uci1
include_file: /usr/include/mtd/nftl-user.h
nasm_code:
; from header /usr/include/mtd/nftl-user.h
struc nftl_uci1
    .WearInfo        resb 4
    .EraseMark       resb 2
    .EraseMark1      resb 2
endstruc
%define struc_nftl_uci1_size 8


name: nftl_uci2
include_file: /usr/include/mtd/nftl-user.h
nasm_code:
; from header /usr/include/mtd/nftl-user.h
struc nftl_uci2
    .FoldMark        resb 2
    .FoldMark1       resb 2
    .unused          resb 4
endstruc
%define struc_nftl_uci2_size 8


name: nftl_oob
include_file: /usr/include/mtd/nftl-user.h
nasm_code:
; from header /usr/include/mtd/nftl-user.h
struc nftl_oob
    .b               resb 8 ; struc nftl_bci
    .u               resb 8 ; union nftl_uci
endstruc
%define struc_nftl_oob_size 16


name: NFTLMediaHeader
include_file: /usr/include/mtd/nftl-user.h
nasm_code:
; from header /usr/include/mtd/nftl-user.h
struc NFTLMediaHeader
    .DataOrgID       resb 6 ; None
    .NumEraseUnits   resb 2
    .FirstPhysicalEU resb 2
    .FormattedSize   resb 4
    .UnitSizeFactor  resb 1
endstruc
%define struc_NFTLMediaHeader_size 15


name: tm
include_file: /usr/include/time.h
nasm_code:
; from header /usr/include/time.h
struc tm
    .tm_sec          resb 4
    .tm_min          resb 4
    .tm_hour         resb 4
    .tm_mday         resb 4
    .tm_mon          resb 4
    .tm_year         resb 4
    .tm_wday         resb 4
    .tm_yday         resb 4
    .tm_isdst        resb 4
    .tm_gmtoff       resb 8
    .tm_zone         resb 8
endstruc
%define struc_tm_size 56


name: itimerspec
include_file: /usr/include/time.h
nasm_code:
; from header /usr/include/time.h
struc itimerspec
    .it_interval     resb 16 ; struc timespec
    .it_value        resb 16 ; struc timespec
endstruc
%define struc_itimerspec_size 32


name: pt_regs
include_file: /usr/include/asm/ptrace.h
nasm_code:
; from header /usr/include/asm/ptrace.h
struc pt_regs
    .r15             resb 8
    .r14             resb 8
    .r13             resb 8
    .r12             resb 8
    .rbp             resb 8
    .rbx             resb 8
    .r11             resb 8
    .r10             resb 8
    .r9              resb 8
    .r8              resb 8
    .rax             resb 8
    .rcx             resb 8
    .rdx             resb 8
    .rsi             resb 8
    .rdi             resb 8
    .orig_rax        resb 8
    .rip             resb 8
    .cs              resb 8
    .eflags          resb 8
    .rsp             resb 8
    .ss              resb 8
endstruc
%define struc_pt_regs_size 168


name: msqid64_ds
include_file: /usr/include/asm/msgbuf.h
nasm_code:
; from header /usr/include/asm/msgbuf.h
struc msqid64_ds
    .msg_perm        resb 48 ; struc ipc64_perm
    .msg_stime       resb 8
    .msg_rtime       resb 8
    .msg_ctime       resb 8
    .msg_cbytes      resb 8
    .msg_qnum        resb 8
    .msg_qbytes      resb 8
    .msg_lspid       resb 4
    .msg_lrpid       resb 4
    .__unused4       resb 8
    .__unused5       resb 8
endstruc
%define struc_msqid64_ds_size 120


name: setup_data
include_file: /usr/include/asm/bootparam.h
nasm_code:
; from header /usr/include/asm/bootparam.h
struc setup_data
    .next            resb 8
    .type            resb 4
    .len             resb 4
    .data            resb 0 ; None
endstruc
%define struc_setup_data_size 16


name: setup_indirect
include_file: /usr/include/asm/bootparam.h
nasm_code:
; from header /usr/include/asm/bootparam.h
struc setup_indirect
    .type            resb 4
    .reserved        resb 4
    .len             resb 8
    .addr            resb 8
endstruc
%define struc_setup_indirect_size 24


name: setup_header
include_file: /usr/include/asm/bootparam.h
nasm_code:
; from header /usr/include/asm/bootparam.h
struc setup_header
    .setup_sects     resb 1
    .root_flags      resb 2
    .syssize         resb 4
    .ram_size        resb 2
    .vid_mode        resb 2
    .root_dev        resb 2
    .boot_flag       resb 2
    .jump            resb 2
    .header          resb 4
    .version         resb 2
    .realmode_swtch  resb 4
    .start_sys_seg   resb 2
    .kernel_version  resb 2
    .type_of_loader  resb 1
    .loadflags       resb 1
    .setup_move_size resb 2
    .code32_start    resb 4
    .ramdisk_image   resb 4
    .ramdisk_size    resb 4
    .bootsect_kludge resb 4
    .heap_end_ptr    resb 2
    .ext_loader_ver  resb 1
    .ext_loader_type resb 1
    .cmd_line_ptr    resb 4
    .initrd_addr_max resb 4
    .kernel_alignmen resb 4
    .relocatable_ker resb 1
    .min_alignment   resb 1
    .xloadflags      resb 2
    .cmdline_size    resb 4
    .hardware_subarc resb 4
    .hardware_subarc resb 8
    .payload_offset  resb 4
    .payload_length  resb 4
    .setup_data      resb 8
    .pref_address    resb 8
    .init_size       resb 4
    .handover_offset resb 4
    .kernel_info_off resb 4
endstruc
%define struc_setup_header_size 123


name: sys_desc_table
include_file: /usr/include/asm/bootparam.h
nasm_code:
; from header /usr/include/asm/bootparam.h
struc sys_desc_table
    .length          resb 2
    .table           resb 14 ; None
endstruc
%define struc_sys_desc_table_size 16


name: olpc_ofw_header
include_file: /usr/include/asm/bootparam.h
nasm_code:
; from header /usr/include/asm/bootparam.h
struc olpc_ofw_header
    .ofw_magic       resb 4
    .ofw_version     resb 4
    .cif_handler     resb 4
    .irq_desc_table  resb 4
endstruc
%define struc_olpc_ofw_header_size 16


name: efi_info
include_file: /usr/include/asm/bootparam.h
nasm_code:
; from header /usr/include/asm/bootparam.h
struc efi_info
    .efi_loader_sign resb 4
    .efi_systab      resb 4
    .efi_memdesc_siz resb 4
    .efi_memdesc_ver resb 4
    .efi_memmap      resb 4
    .efi_memmap_size resb 4
    .efi_systab_hi   resb 4
    .efi_memmap_hi   resb 4
endstruc
%define struc_efi_info_size 32


name: boot_e820_entry
include_file: /usr/include/asm/bootparam.h
nasm_code:
; from header /usr/include/asm/bootparam.h
struc boot_e820_entry
    .addr            resb 8
    .size            resb 8
    .type            resb 4
endstruc
%define struc_boot_e820_entry_size 20


name: jailhouse_setup_data
include_file: /usr/include/asm/bootparam.h
nasm_code:
; from header /usr/include/asm/bootparam.h
struc jailhouse_setup_data
    .hdr             resb 4 ; struc None
    .v1              resb 276 ; struc None
    .v2              resb 4 ; struc None
endstruc
%define struc_jailhouse_setup_data_size 284


name: boot_params
include_file: /usr/include/asm/bootparam.h
nasm_code:
; from header /usr/include/asm/bootparam.h
struc boot_params
    .screen_info     resb 64 ; struc screen_info
    .apm_bios_info   resb 20 ; struc apm_bios_info
    ._pad2           resb 4 ; None
    .tboot_addr      resb 8
    .ist_info        resb 16 ; struc ist_info
    .acpi_rsdp_addr  resb 8
    ._pad3           resb 8 ; None
    .hd0_info        resb 16 ; None
    .hd1_info        resb 16 ; None
    .sys_desc_table  resb 16 ; struc sys_desc_table
    .olpc_ofw_header resb 16 ; struc olpc_ofw_header
    .ext_ramdisk_ima resb 4
    .ext_ramdisk_siz resb 4
    .ext_cmd_line_pt resb 4
    ._pad4           resb 116 ; None
    .edid_info       resb 128 ; struc edid_info
    .efi_info        resb 32 ; struc efi_info
    .alt_mem_k       resb 4
    .scratch         resb 4
    .e820_entries    resb 1
    .eddbuf_entries  resb 1
    .edd_mbr_sig_buf resb 1
    .kbd_status      resb 1
    .secure_boot     resb 1
    ._pad5           resb 2 ; None
    .sentinel        resb 1
    ._pad6           resb 1 ; None
    .hdr             resb 123 ; struc setup_header
    ._pad7           resb 36 ; None
    .edd_mbr_sig_buf resb 64 ; None
    .e820_table      resb 2560 ; None
    ._pad8           resb 48 ; None
    .eddbuf          resb 492 ; None
    ._pad9           resb 276 ; None
endstruc
%define struc_boot_params_size 4096


name: user_desc
include_file: /usr/include/asm/ldt.h
nasm_code:
; from header /usr/include/asm/ldt.h
struc user_desc
    .entry_number    resb 4
    .base_addr       resb 4
    .limit           resb 4
    .seg_32bit       resb 4
    .contents        resb 4
    .read_exec_only  resb 4
    .limit_in_pages  resb 4
    .seg_not_present resb 4
    .useable         resb 4
    .lm              resb 4
endstruc
%define struc_user_desc_size 16


name: mce
include_file: /usr/include/asm/mce.h
nasm_code:
; from header /usr/include/asm/mce.h
struc mce
    .status          resb 8
    .misc            resb 8
    .addr            resb 8
    .mcgstatus       resb 8
    .ip              resb 8
    .tsc             resb 8
    .time            resb 8
    .cpuvendor       resb 1
    .inject_flags    resb 1
    .severity        resb 1
    .pad             resb 1
    .cpuid           resb 4
    .cs              resb 1
    .bank            resb 1
    .cpu             resb 1
    .finished        resb 1
    .extcpu          resb 4
    .socketid        resb 4
    .apicid          resb 4
    .mcgcap          resb 8
    .synd            resb 8
    .ipid            resb 8
    .ppin            resb 8
    .microcode       resb 4
    .kflags          resb 8
endstruc
%define struc_mce_size 128


name: e820entry
include_file: /usr/include/asm/e820.h
nasm_code:
; from header /usr/include/asm/e820.h
struc e820entry
    .addr            resb 8
    .size            resb 8
    .type            resb 4
endstruc
%define struc_e820entry_size 20


name: e820map
include_file: /usr/include/asm/e820.h
nasm_code:
; from header /usr/include/asm/e820.h
struc e820map
    .nr_map          resb 4
    .map             resb 2560 ; None
endstruc
%define struc_e820map_size 2564


name: ist_info
include_file: /usr/include/asm/ist.h
nasm_code:
; from header /usr/include/asm/ist.h
struc ist_info
    .signature       resb 4
    .command         resb 4
    .event           resb 4
    .perf_level      resb 4
endstruc
%define struc_ist_info_size 16


name: vm86_regs
include_file: /usr/include/asm/vm86.h
nasm_code:
; from header /usr/include/asm/vm86.h
struc vm86_regs
    .ebx             resb 8
    .ecx             resb 8
    .edx             resb 8
    .esi             resb 8
    .edi             resb 8
    .ebp             resb 8
    .eax             resb 8
    .__null_ds       resb 8
    .__null_es       resb 8
    .__null_fs       resb 8
    .__null_gs       resb 8
    .orig_eax        resb 8
    .eip             resb 8
    .cs              resb 2
    .__csh           resb 2
    .eflags          resb 8
    .esp             resb 8
    .ss              resb 2
    .__ssh           resb 2
    .es              resb 2
    .__esh           resb 2
    .ds              resb 2
    .__dsh           resb 2
    .fs              resb 2
    .__fsh           resb 2
    .gs              resb 2
    .__gsh           resb 2
endstruc
%define struc_vm86_regs_size 152


name: revectored_struct
include_file: /usr/include/asm/vm86.h
nasm_code:
; from header /usr/include/asm/vm86.h
struc revectored_struct
    .__map           resb 64 ; None
endstruc
%define struc_revectored_struct_size 64


name: vm86_struct
include_file: /usr/include/asm/vm86.h
nasm_code:
; from header /usr/include/asm/vm86.h
struc vm86_struct
    .regs            resb 152 ; struc vm86_regs
    .flags           resb 8
    .screen_bitmap   resb 8
    .cpu_type        resb 8
    .int_revectored  resb 64 ; struc revectored_struct
    .int21_revectore resb 64 ; struc revectored_struct
endstruc
%define struc_vm86_struct_size 304


name: vm86plus_info_struct
include_file: /usr/include/asm/vm86.h
nasm_code:
; from header /usr/include/asm/vm86.h
struc vm86plus_info_struct
    .force_return_fo resb 8
    .vm86dbg_active  resb 8
    .vm86dbg_TFpendi resb 8
    .unused          resb 8
    .is_vm86pus      resb 8
    .vm86dbg_intxxta resb 32 ; None
endstruc
%define struc_vm86plus_info_struct_size 40


name: vm86plus_struct
include_file: /usr/include/asm/vm86.h
nasm_code:
; from header /usr/include/asm/vm86.h
struc vm86plus_struct
    .regs            resb 152 ; struc vm86_regs
    .flags           resb 8
    .screen_bitmap   resb 8
    .cpu_type        resb 8
    .int_revectored  resb 64 ; struc revectored_struct
    .int21_revectore resb 64 ; struc revectored_struct
    .vm86plus        resb 40 ; struc vm86plus_info_struct
endstruc
%define struc_vm86plus_struct_size 344


name: semid64_ds
include_file: /usr/include/asm/sembuf.h
nasm_code:
; from header /usr/include/asm/sembuf.h
struc semid64_ds
    .sem_perm        resb 48 ; struc ipc64_perm
    .sem_otime       resb 8
    .__unused1       resb 8
    .sem_ctime       resb 8
    .__unused2       resb 8
    .sem_nsems       resb 8
    .__unused3       resb 8
    .__unused4       resb 8
endstruc
%define struc_semid64_ds_size 104


name: stat
include_file: /usr/include/asm/stat.h
nasm_code:
; from header /usr/include/asm/stat.h
struc stat
    .st_dev          resb 8
    .st_ino          resb 8
    .st_nlink        resb 8
    .st_mode         resb 4
    .st_uid          resb 4
    .st_gid          resb 4
    .__pad0          resb 4
    .st_rdev         resb 8
    .st_size         resb 8
    .st_blksize      resb 8
    .st_blocks       resb 8
    .st_atime        resb 8
    .st_atime_nsec   resb 8
    .st_mtime        resb 8
    .st_mtime_nsec   resb 8
    .st_ctime        resb 8
    .st_ctime_nsec   resb 8
    .__unused        resb 24 ; None
endstruc
%define struc_stat_size 144


name: __old_kernel_stat
include_file: /usr/include/asm/stat.h
nasm_code:
; from header /usr/include/asm/stat.h
struc __old_kernel_stat
    .st_dev          resb 2
    .st_ino          resb 2
    .st_mode         resb 2
    .st_nlink        resb 2
    .st_uid          resb 2
    .st_gid          resb 2
    .st_rdev         resb 2
    .st_size         resb 4
    .st_atime        resb 4
    .st_mtime        resb 4
    .st_ctime        resb 4
endstruc
%define struc___old_kernel_stat_size 32


name: _fpx_sw_bytes
include_file: /usr/include/asm/sigcontext.h
nasm_code:
; from header /usr/include/asm/sigcontext.h
struc _fpx_sw_bytes
    .magic1          resb 4
    .extended_size   resb 4
    .xfeatures       resb 8
    .xstate_size     resb 4
    .padding         resb 28 ; None
endstruc
%define struc__fpx_sw_bytes_size 48


name: _fpreg
include_file: /usr/include/asm/sigcontext.h
nasm_code:
; from header /usr/include/asm/sigcontext.h
struc _fpreg
    .significand     resb 8 ; None
    .exponent        resb 2
endstruc
%define struc__fpreg_size 10


name: _fpxreg
include_file: /usr/include/asm/sigcontext.h
nasm_code:
; from header /usr/include/asm/sigcontext.h
struc _fpxreg
    .significand     resb 8 ; None
    .exponent        resb 2
    .padding         resb 6 ; None
endstruc
%define struc__fpxreg_size 16


name: _xmmreg
include_file: /usr/include/asm/sigcontext.h
nasm_code:
; from header /usr/include/asm/sigcontext.h
struc _xmmreg
    .element         resb 16 ; None
endstruc
%define struc__xmmreg_size 16


name: _header
include_file: /usr/include/asm/sigcontext.h
nasm_code:
; from header /usr/include/asm/sigcontext.h
struc _header
    .xfeatures       resb 8
    .reserved1       resb 16 ; None
    .reserved2       resb 40 ; None
endstruc
%define struc__header_size 64


name: _ymmh_state
include_file: /usr/include/asm/sigcontext.h
nasm_code:
; from header /usr/include/asm/sigcontext.h
struc _ymmh_state
    .ymmh_space      resb 256 ; None
endstruc
%define struc__ymmh_state_size 256


name: _xstate
include_file: /usr/include/asm/sigcontext.h
nasm_code:
; from header /usr/include/asm/sigcontext.h
struc _xstate
    .fpstate         resb 512 ; struc _fpstate_64
    .xstate_hdr      resb 64 ; struc _header
    .ymmh            resb 256 ; struc _ymmh_state
endstruc
%define struc__xstate_size 832


name: sigcontext_32
include_file: /usr/include/asm/sigcontext.h
nasm_code:
; from header /usr/include/asm/sigcontext.h
struc sigcontext_32
    .gs              resb 2
    .__gsh           resb 2
    .fs              resb 2
    .__fsh           resb 2
    .es              resb 2
    .__esh           resb 2
    .ds              resb 2
    .__dsh           resb 2
    .di              resb 4
    .si              resb 4
    .bp              resb 4
    .sp              resb 4
    .bx              resb 4
    .dx              resb 4
    .cx              resb 4
    .ax              resb 4
    .trapno          resb 4
    .err             resb 4
    .ip              resb 4
    .cs              resb 2
    .__csh           resb 2
    .flags           resb 4
    .sp_at_signal    resb 4
    .ss              resb 2
    .__ssh           resb 2
    .fpstate         resb 4
    .oldmask         resb 4
    .cr2             resb 4
endstruc
%define struc_sigcontext_32_size 88


name: sigcontext_64
include_file: /usr/include/asm/sigcontext.h
nasm_code:
; from header /usr/include/asm/sigcontext.h
struc sigcontext_64
    .r8              resb 8
    .r9              resb 8
    .r10             resb 8
    .r11             resb 8
    .r12             resb 8
    .r13             resb 8
    .r14             resb 8
    .r15             resb 8
    .di              resb 8
    .si              resb 8
    .bp              resb 8
    .bx              resb 8
    .dx              resb 8
    .ax              resb 8
    .cx              resb 8
    .sp              resb 8
    .ip              resb 8
    .flags           resb 8
    .cs              resb 2
    .gs              resb 2
    .fs              resb 2
    .ss              resb 2
    .err             resb 8
    .trapno          resb 8
    .oldmask         resb 8
    .cr2             resb 8
    .fpstate         resb 8
    .reserved1       resb 64 ; None
endstruc
%define struc_sigcontext_64_size 256


name: kvm_memory_alias
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_memory_alias
    .slot            resb 4
    .flags           resb 4
    .guest_phys_addr resb 8
    .memory_size     resb 8
    .target_phys_add resb 8
endstruc
%define struc_kvm_memory_alias_size 32


name: kvm_pic_state
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_pic_state
    .last_irr        resb 1
    .irr             resb 1
    .imr             resb 1
    .isr             resb 1
    .priority_add    resb 1
    .irq_base        resb 1
    .read_reg_select resb 1
    .poll            resb 1
    .special_mask    resb 1
    .init_state      resb 1
    .auto_eoi        resb 1
    .rotate_on_auto_ resb 1
    .special_fully_n resb 1
    .init4           resb 1
    .elcr            resb 1
    .elcr_mask       resb 1
endstruc
%define struc_kvm_pic_state_size 16


name: kvm_ioapic_state
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_ioapic_state
    .base_address    resb 8
    .ioregsel        resb 4
    .id              resb 4
    .irr             resb 4
    .pad             resb 4
    .redirtbl        resb 192 ; None
endstruc
%define struc_kvm_ioapic_state_size 216


name: kvm_regs
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_regs
    .rax             resb 8
    .rbx             resb 8
    .rcx             resb 8
    .rdx             resb 8
    .rsi             resb 8
    .rdi             resb 8
    .rsp             resb 8
    .rbp             resb 8
    .r8              resb 8
    .r9              resb 8
    .r10             resb 8
    .r11             resb 8
    .r12             resb 8
    .r13             resb 8
    .r14             resb 8
    .r15             resb 8
    .rip             resb 8
    .rflags          resb 8
endstruc
%define struc_kvm_regs_size 144


name: kvm_lapic_state
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_lapic_state
    .regs            resb 1024 ; None
endstruc
%define struc_kvm_lapic_state_size 1024


name: kvm_segment
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_segment
    .base            resb 8
    .limit           resb 4
    .selector        resb 2
    .type            resb 1
    .present         resb 1
    .dpl             resb 1
    .db              resb 1
    .s               resb 1
    .l               resb 1
    .g               resb 1
    .avl             resb 1
    .unusable        resb 1
    .padding         resb 1
endstruc
%define struc_kvm_segment_size 24


name: kvm_dtable
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_dtable
    .base            resb 8
    .limit           resb 2
    .padding         resb 6 ; None
endstruc
%define struc_kvm_dtable_size 16


name: kvm_sregs
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_sregs
    .cs              resb 24 ; struc kvm_segment
    .ds              resb 24 ; struc kvm_segment
    .es              resb 24 ; struc kvm_segment
    .fs              resb 24 ; struc kvm_segment
    .gs              resb 24 ; struc kvm_segment
    .ss              resb 24 ; struc kvm_segment
    .tr              resb 24 ; struc kvm_segment
    .ldt             resb 24 ; struc kvm_segment
    .gdt             resb 16 ; struc kvm_dtable
    .idt             resb 16 ; struc kvm_dtable
    .cr0             resb 8
    .cr2             resb 8
    .cr3             resb 8
    .cr4             resb 8
    .cr8             resb 8
    .efer            resb 8
    .apic_base       resb 8
    .interrupt_bitma resb 32 ; None
endstruc
%define struc_kvm_sregs_size 312


name: kvm_fpu
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_fpu
    .fpr             resb 128 ; None
    .fcw             resb 2
    .fsw             resb 2
    .ftwx            resb 1
    .pad1            resb 1
    .last_opcode     resb 2
    .last_ip         resb 8
    .last_dp         resb 8
    .xmm             resb 256 ; None
    .mxcsr           resb 4
    .pad2            resb 4
endstruc
%define struc_kvm_fpu_size 416


name: kvm_msr_entry
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_msr_entry
    .index           resb 4
    .reserved        resb 4
    .data            resb 8
endstruc
%define struc_kvm_msr_entry_size 16


name: kvm_msrs
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_msrs
    .nmsrs           resb 4
    .pad             resb 4
    .entries         resb 0 ; None
endstruc
%define struc_kvm_msrs_size 8


name: kvm_msr_list
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_msr_list
    .nmsrs           resb 4
    .indices         resb 0 ; None
endstruc
%define struc_kvm_msr_list_size 4


name: kvm_msr_filter_range
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_msr_filter_range
    .flags           resb 4
    .nmsrs           resb 4
    .base            resb 4
    .bitmap          resb 8
endstruc
%define struc_kvm_msr_filter_range_size 24


name: kvm_msr_filter
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_msr_filter
    .flags           resb 4
    .ranges          resb 384 ; None
endstruc
%define struc_kvm_msr_filter_size 392


name: kvm_cpuid_entry
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_cpuid_entry
    .function        resb 4
    .eax             resb 4
    .ebx             resb 4
    .ecx             resb 4
    .edx             resb 4
    .padding         resb 4
endstruc
%define struc_kvm_cpuid_entry_size 24


name: kvm_cpuid
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_cpuid
    .nent            resb 4
    .padding         resb 4
    .entries         resb 0 ; None
endstruc
%define struc_kvm_cpuid_size 8


name: kvm_cpuid_entry2
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_cpuid_entry2
    .function        resb 4
    .index           resb 4
    .flags           resb 4
    .eax             resb 4
    .ebx             resb 4
    .ecx             resb 4
    .edx             resb 4
    .padding         resb 12 ; None
endstruc
%define struc_kvm_cpuid_entry2_size 40


name: kvm_cpuid2
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_cpuid2
    .nent            resb 4
    .padding         resb 4
    .entries         resb 0 ; None
endstruc
%define struc_kvm_cpuid2_size 8


name: kvm_pit_channel_state
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_pit_channel_state
    .count           resb 4
    .latched_count   resb 2
    .count_latched   resb 1
    .status_latched  resb 1
    .status          resb 1
    .read_state      resb 1
    .write_state     resb 1
    .write_latch     resb 1
    .rw_mode         resb 1
    .mode            resb 1
    .bcd             resb 1
    .gate            resb 1
    .count_load_time resb 8
endstruc
%define struc_kvm_pit_channel_state_size 24


name: kvm_debug_exit_arch
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_debug_exit_arch
    .exception       resb 4
    .pad             resb 4
    .pc              resb 8
    .dr6             resb 8
    .dr7             resb 8
endstruc
%define struc_kvm_debug_exit_arch_size 32


name: kvm_guest_debug_arch
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_guest_debug_arch
    .debugreg        resb 64 ; None
endstruc
%define struc_kvm_guest_debug_arch_size 64


name: kvm_pit_state
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_pit_state
    .channels        resb 72 ; None
endstruc
%define struc_kvm_pit_state_size 72


name: kvm_pit_state2
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_pit_state2
    .channels        resb 72 ; None
    .flags           resb 4
    .reserved        resb 36 ; None
endstruc
%define struc_kvm_pit_state2_size 112


name: kvm_reinject_control
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_reinject_control
    .pit_reinject    resb 1
    .reserved        resb 31 ; None
endstruc
%define struc_kvm_reinject_control_size 32


name: kvm_vcpu_events
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_vcpu_events
    .exception       resb 8 ; struc None
    .interrupt       resb 4 ; struc None
    .nmi             resb 4 ; struc None
    .sipi_vector     resb 4
    .flags           resb 4
    .smi             resb 4 ; struc None
    .reserved        resb 27 ; None
    .exception_has_p resb 1
    .exception_paylo resb 8
endstruc
%define struc_kvm_vcpu_events_size 64


name: kvm_debugregs
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_debugregs
    .db              resb 32 ; None
    .dr6             resb 8
    .dr7             resb 8
    .flags           resb 8
    .reserved        resb 72 ; None
endstruc
%define struc_kvm_debugregs_size 128


name: kvm_xsave
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_xsave
    .region          resb 4096 ; None
endstruc
%define struc_kvm_xsave_size 4096


name: kvm_xcr
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_xcr
    .xcr             resb 4
    .reserved        resb 4
    .value           resb 8
endstruc
%define struc_kvm_xcr_size 16


name: kvm_xcrs
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_xcrs
    .nr_xcrs         resb 4
    .flags           resb 4
    .xcrs            resb 256 ; None
    .padding         resb 128 ; None
endstruc
%define struc_kvm_xcrs_size 392


name: kvm_sync_regs
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_sync_regs
    .regs            resb 144 ; struc kvm_regs
    .sregs           resb 312 ; struc kvm_sregs
    .events          resb 64 ; struc kvm_vcpu_events
endstruc
%define struc_kvm_sync_regs_size 520


name: kvm_vmx_nested_state_data
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_vmx_nested_state_data
    .vmcs12          resb 4096 ; None
    .shadow_vmcs12   resb 4096 ; None
endstruc
%define struc_kvm_vmx_nested_state_data_size 8192


name: kvm_vmx_nested_state_hdr
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_vmx_nested_state_hdr
    .vmxon_pa        resb 8
    .vmcs12_pa       resb 8
    .smm             resb 2 ; struc None
    .flags           resb 4
    .preemption_time resb 8
endstruc
%define struc_kvm_vmx_nested_state_hdr_size 32


name: kvm_svm_nested_state_data
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_svm_nested_state_data
    .vmcb12          resb 4096 ; None
endstruc
%define struc_kvm_svm_nested_state_data_size 4096


name: kvm_svm_nested_state_hdr
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_svm_nested_state_hdr
    .vmcb_pa         resb 8
endstruc
%define struc_kvm_svm_nested_state_hdr_size 8


name: kvm_nested_state
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_nested_state
    .flags           resb 2
    .format          resb 2
    .size            resb 4
    .hdr             resb 120 ; union None
    .data            resb 0 ; union None
endstruc
%define struc_kvm_nested_state_size 128


name: kvm_pmu_event_filter
include_file: /usr/include/asm/kvm.h
nasm_code:
; from header /usr/include/asm/kvm.h
struc kvm_pmu_event_filter
    .action          resb 4
    .nevents         resb 4
    .fixed_counter_b resb 4
    .flags           resb 4
    .pad             resb 16 ; None
    .events          resb 0 ; None
endstruc
%define struc_kvm_pmu_event_filter_size 32


name: kvm_steal_time
include_file: /usr/include/asm/kvm_para.h
nasm_code:
; from header /usr/include/asm/kvm_para.h
struc kvm_steal_time
    .steal           resb 8
    .version         resb 4
    .flags           resb 4
    .preempted       resb 1
    .u8_pad          resb 3 ; None
    .pad             resb 44 ; None
endstruc
%define struc_kvm_steal_time_size 64


name: kvm_clock_pairing
include_file: /usr/include/asm/kvm_para.h
nasm_code:
; from header /usr/include/asm/kvm_para.h
struc kvm_clock_pairing
    .sec             resb 8
    .nsec            resb 8
    .tsc             resb 8
    .flags           resb 4
    .pad             resb 36 ; None
endstruc
%define struc_kvm_clock_pairing_size 64


name: kvm_mmu_op_header
include_file: /usr/include/asm/kvm_para.h
nasm_code:
; from header /usr/include/asm/kvm_para.h
struc kvm_mmu_op_header
    .op              resb 4
    .pad             resb 4
endstruc
%define struc_kvm_mmu_op_header_size 8


name: kvm_mmu_op_write_pte
include_file: /usr/include/asm/kvm_para.h
nasm_code:
; from header /usr/include/asm/kvm_para.h
struc kvm_mmu_op_write_pte
    .header          resb 8 ; struc kvm_mmu_op_header
    .pte_phys        resb 8
    .pte_val         resb 8
endstruc
%define struc_kvm_mmu_op_write_pte_size 24


name: kvm_mmu_op_flush_tlb
include_file: /usr/include/asm/kvm_para.h
nasm_code:
; from header /usr/include/asm/kvm_para.h
struc kvm_mmu_op_flush_tlb
    .header          resb 8 ; struc kvm_mmu_op_header
endstruc
%define struc_kvm_mmu_op_flush_tlb_size 8


name: kvm_mmu_op_release_pt
include_file: /usr/include/asm/kvm_para.h
nasm_code:
; from header /usr/include/asm/kvm_para.h
struc kvm_mmu_op_release_pt
    .header          resb 8 ; struc kvm_mmu_op_header
    .pt_phys         resb 8
endstruc
%define struc_kvm_mmu_op_release_pt_size 16


name: kvm_vcpu_pv_apf_data
include_file: /usr/include/asm/kvm_para.h
nasm_code:
; from header /usr/include/asm/kvm_para.h
struc kvm_vcpu_pv_apf_data
    .flags           resb 4
    .token           resb 4
    .pad             resb 56 ; None
    .enabled         resb 4
endstruc
%define struc_kvm_vcpu_pv_apf_data_size 68


name: mtrr_sentry
include_file: /usr/include/asm/mtrr.h
nasm_code:
; from header /usr/include/asm/mtrr.h
struc mtrr_sentry
    .base            resb 8
    .size            resb 4
    .type            resb 4
endstruc
%define struc_mtrr_sentry_size 16


name: mtrr_gentry
include_file: /usr/include/asm/mtrr.h
nasm_code:
; from header /usr/include/asm/mtrr.h
struc mtrr_gentry
    .base            resb 8
    .size            resb 4
    .regnum          resb 4
    .type            resb 4
    ._pad            resb 4
endstruc
%define struc_mtrr_gentry_size 24


name: mtrr_var_range
include_file: /usr/include/asm/mtrr.h
nasm_code:
; from header /usr/include/asm/mtrr.h
struc mtrr_var_range
    .base_lo         resb 4
    .base_hi         resb 4
    .mask_lo         resb 4
    .mask_hi         resb 4
endstruc
%define struc_mtrr_var_range_size 16


name: mtrr_state_type
include_file: /usr/include/asm/mtrr.h
nasm_code:
; from header /usr/include/asm/mtrr.h
struc mtrr_state_type
    .var_ranges      resb 4096 ; None
    .fixed_ranges    resb 88 ; None
    .enabled         resb 1
    .have_fixed      resb 1
    .def_type        resb 1
endstruc
%define struc_mtrr_state_type_size 4188


name: lconv
include_file: /usr/include/locale.h
nasm_code:
; from header /usr/include/locale.h
struc lconv
    .decimal_point   resb 8
    .thousands_sep   resb 8
    .grouping        resb 8
    .int_curr_symbol resb 8
    .currency_symbol resb 8
    .mon_decimal_poi resb 8
    .mon_thousands_s resb 8
    .mon_grouping    resb 8
    .positive_sign   resb 8
    .negative_sign   resb 8
    .int_frac_digits resb 1
    .frac_digits     resb 1
    .p_cs_precedes   resb 1
    .p_sep_by_space  resb 1
    .n_cs_precedes   resb 1
    .n_sep_by_space  resb 1
    .p_sign_posn     resb 1
    .n_sign_posn     resb 1
    .int_p_cs_preced resb 1
    .int_p_sep_by_sp resb 1
    .int_n_cs_preced resb 1
    .int_n_sep_by_sp resb 1
    .int_p_sign_posn resb 1
    .int_n_sign_posn resb 1
endstruc
%define struc_lconv_size 96


name: flock
include_file: /usr/include/fcntl.h
nasm_code:
; from header /usr/include/fcntl.h
struc flock
    .l_type          resb 2
    .l_whence        resb 2
    .l_start         resb 8
    .l_len           resb 8
    .l_pid           resb 4
endstruc
%define struc_flock_size 32


name: CXUnsavedFile
include_file: /usr/include/clang-c/Index.h
nasm_code:
; from header /usr/include/clang-c/Index.h
struc CXUnsavedFile
    .Filename        resb 8
    .Contents        resb 8
    .Length          resb 8
endstruc
%define struc_CXUnsavedFile_size 24


name: CXVersion
include_file: /usr/include/clang-c/Index.h
nasm_code:
; from header /usr/include/clang-c/Index.h
struc CXVersion
    .Major           resb 4
    .Minor           resb 4
    .Subminor        resb 4
endstruc
%define struc_CXVersion_size 12


name: CXTUResourceUsageEntry
include_file: /usr/include/clang-c/Index.h
nasm_code:
; from header /usr/include/clang-c/Index.h
struc CXTUResourceUsageEntry
    .kind            resb 4
    .amount          resb 8
endstruc
%define struc_CXTUResourceUsageEntry_size 16


name: CXTUResourceUsage
include_file: /usr/include/clang-c/Index.h
nasm_code:
; from header /usr/include/clang-c/Index.h
struc CXTUResourceUsage
    .data            resb 8
    .numEntries      resb 4
    .entries         resb 8
endstruc
%define struc_CXTUResourceUsage_size 24


name: CXPlatformAvailability
include_file: /usr/include/clang-c/Index.h
nasm_code:
; from header /usr/include/clang-c/Index.h
struc CXPlatformAvailability
    .Platform        resb 16 ; CXString
    .Introduced      resb 12 ; CXVersion
    .Deprecated      resb 12 ; CXVersion
    .Obsoleted       resb 12 ; CXVersion
    .Unavailable     resb 4
    .Message         resb 16 ; CXString
endstruc
%define struc_CXPlatformAvailability_size 72


name: CXCursorAndRangeVisitor
include_file: /usr/include/clang-c/Index.h
nasm_code:
; from header /usr/include/clang-c/Index.h
struc CXCursorAndRangeVisitor
    .context         resb 8
    .visit           resb 8
endstruc
%define struc_CXCursorAndRangeVisitor_size 16


name: resume_swap_area
include_file: /usr/include/linux/suspend_ioctls.h
nasm_code:
; from header /usr/include/linux/suspend_ioctls.h
struc resume_swap_area
    .offset          resb 8
    .dev             resb 4
endstruc
%define struc_resume_swap_area_size 12


name: rds_info_counter
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_info_counter
    .name            resb 32 ; None
    .value           resb 8
endstruc
%define struc_rds_info_counter_size 40


name: rds_info_connection
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_info_connection
    .next_tx_seq     resb 8
    .next_rx_seq     resb 8
    .laddr           resb 4
    .faddr           resb 4
    .transport       resb 16 ; None
    .flags           resb 1
    .tos             resb 1
endstruc
%define struc_rds_info_connection_size 42


name: rds6_info_connection
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds6_info_connection
    .next_tx_seq     resb 8
    .next_rx_seq     resb 8
    .laddr           resb 16 ; struc in6_addr
    .faddr           resb 16 ; struc in6_addr
    .transport       resb 16 ; None
    .flags           resb 1
endstruc
%define struc_rds6_info_connection_size 65


name: rds_info_message
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_info_message
    .seq             resb 8
    .len             resb 4
    .laddr           resb 4
    .faddr           resb 4
    .lport           resb 2
    .fport           resb 2
    .flags           resb 1
    .tos             resb 1
endstruc
%define struc_rds_info_message_size 26


name: rds6_info_message
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds6_info_message
    .seq             resb 8
    .len             resb 4
    .laddr           resb 16 ; struc in6_addr
    .faddr           resb 16 ; struc in6_addr
    .lport           resb 2
    .fport           resb 2
    .flags           resb 1
    .tos             resb 1
endstruc
%define struc_rds6_info_message_size 50


name: rds_info_socket
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_info_socket
    .sndbuf          resb 4
    .bound_addr      resb 4
    .connected_addr  resb 4
    .bound_port      resb 2
    .connected_port  resb 2
    .rcvbuf          resb 4
    .inum            resb 8
endstruc
%define struc_rds_info_socket_size 28


name: rds6_info_socket
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds6_info_socket
    .sndbuf          resb 4
    .bound_addr      resb 16 ; struc in6_addr
    .connected_addr  resb 16 ; struc in6_addr
    .bound_port      resb 2
    .connected_port  resb 2
    .rcvbuf          resb 4
    .inum            resb 8
endstruc
%define struc_rds6_info_socket_size 52


name: rds_info_tcp_socket
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_info_tcp_socket
    .local_addr      resb 4
    .local_port      resb 2
    .peer_addr       resb 4
    .peer_port       resb 2
    .hdr_rem         resb 8
    .data_rem        resb 8
    .last_sent_nxt   resb 4
    .last_expected_u resb 4
    .last_seen_una   resb 4
    .tos             resb 1
endstruc
%define struc_rds_info_tcp_socket_size 41


name: rds6_info_tcp_socket
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds6_info_tcp_socket
    .local_addr      resb 16 ; struc in6_addr
    .local_port      resb 2
    .peer_addr       resb 16 ; struc in6_addr
    .peer_port       resb 2
    .hdr_rem         resb 8
    .data_rem        resb 8
    .last_sent_nxt   resb 4
    .last_expected_u resb 4
    .last_seen_una   resb 4
endstruc
%define struc_rds6_info_tcp_socket_size 64


name: rds_info_rdma_connection
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_info_rdma_connection
    .src_addr        resb 4
    .dst_addr        resb 4
    .src_gid         resb 16 ; None
    .dst_gid         resb 16 ; None
    .max_send_wr     resb 4
    .max_recv_wr     resb 4
    .max_send_sge    resb 4
    .rdma_mr_max     resb 4
    .rdma_mr_size    resb 4
    .tos             resb 1
    .sl              resb 1
    .cache_allocs    resb 4
endstruc
%define struc_rds_info_rdma_connection_size 68


name: rds6_info_rdma_connection
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds6_info_rdma_connection
    .src_addr        resb 16 ; struc in6_addr
    .dst_addr        resb 16 ; struc in6_addr
    .src_gid         resb 16 ; None
    .dst_gid         resb 16 ; None
    .max_send_wr     resb 4
    .max_recv_wr     resb 4
    .max_send_sge    resb 4
    .rdma_mr_max     resb 4
    .rdma_mr_size    resb 4
    .tos             resb 1
    .sl              resb 1
    .cache_allocs    resb 4
endstruc
%define struc_rds6_info_rdma_connection_size 92


name: rds_rx_trace_so
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_rx_trace_so
    .rx_traces       resb 1
    .rx_trace_pos    resb 3 ; None
endstruc
%define struc_rds_rx_trace_so_size 4


name: rds_cmsg_rx_trace
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_cmsg_rx_trace
    .rx_traces       resb 1
    .rx_trace_pos    resb 3 ; None
    .rx_trace        resb 24 ; None
endstruc
%define struc_rds_cmsg_rx_trace_size 32


name: rds_iovec
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_iovec
    .addr            resb 8
    .bytes           resb 8
endstruc
%define struc_rds_iovec_size 16


name: rds_get_mr_args
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_get_mr_args
    .vec             resb 16 ; struc rds_iovec
    .cookie_addr     resb 8
    .flags           resb 8
endstruc
%define struc_rds_get_mr_args_size 32


name: rds_get_mr_for_dest_args
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_get_mr_for_dest_args
    .dest_addr       resb 128 ; struc __kernel_sockaddr_storage
    .vec             resb 16 ; struc rds_iovec
    .cookie_addr     resb 8
    .flags           resb 8
endstruc
%define struc_rds_get_mr_for_dest_args_size 160


name: rds_free_mr_args
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_free_mr_args
    .cookie          resb 8
    .flags           resb 8
endstruc
%define struc_rds_free_mr_args_size 16


name: rds_rdma_args
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_rdma_args
    .cookie          resb 8
    .remote_vec      resb 16 ; struc rds_iovec
    .local_vec_addr  resb 8
    .nr_local        resb 8
    .flags           resb 8
    .user_token      resb 8
endstruc
%define struc_rds_rdma_args_size 56


name: rds_rdma_notify
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_rdma_notify
    .user_token      resb 8
    .status          resb 4
endstruc
%define struc_rds_rdma_notify_size 16


name: rds_zcopy_cookies
include_file: /usr/include/linux/rds.h
nasm_code:
; from header /usr/include/linux/rds.h
struc rds_zcopy_cookies
    .num             resb 4
    .cookies         resb 32 ; None
endstruc
%define struc_rds_zcopy_cookies_size 36


name: vbg_ioctl_hdr
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_hdr
    .size_in         resb 4
    .version         resb 4
    .type            resb 4
    .rc              resb 4
    .size_out        resb 4
    .reserved        resb 4
endstruc
%define struc_vbg_ioctl_hdr_size 24


name: vbg_ioctl_driver_version_info
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_driver_version_info
    .hdr             resb 24 ; struc vbg_ioctl_hdr
    .u               resb 20 ; union None
endstruc
%define struc_vbg_ioctl_driver_version_info_size 44


name: vbg_ioctl_hgcm_connect
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_hgcm_connect
    .hdr             resb 24 ; struc vbg_ioctl_hdr
    .u               resb 132 ; union None
endstruc
%define struc_vbg_ioctl_hgcm_connect_size 156


name: vbg_ioctl_hgcm_disconnect
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_hgcm_disconnect
    .hdr             resb 24 ; struc vbg_ioctl_hdr
    .u               resb 4 ; union None
endstruc
%define struc_vbg_ioctl_hgcm_disconnect_size 28


name: vbg_ioctl_hgcm_call
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_hgcm_call
    .hdr             resb 24 ; struc vbg_ioctl_hdr
    .client_id       resb 4
    .function        resb 4
    .timeout_ms      resb 4
    .interruptible   resb 1
    .reserved        resb 1
    .parm_count      resb 2
endstruc
%define struc_vbg_ioctl_hgcm_call_size 40


name: vbg_ioctl_log
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_log
    .hdr             resb 24 ; struc vbg_ioctl_hdr
    .u               resb 1 ; union None
endstruc
%define struc_vbg_ioctl_log_size 28


name: vbg_ioctl_wait_for_events
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_wait_for_events
    .hdr             resb 24 ; struc vbg_ioctl_hdr
    .u               resb 8 ; union None
endstruc
%define struc_vbg_ioctl_wait_for_events_size 32


name: vbg_ioctl_change_filter
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_change_filter
    .hdr             resb 24 ; struc vbg_ioctl_hdr
    .u               resb 8 ; union None
endstruc
%define struc_vbg_ioctl_change_filter_size 32


name: vbg_ioctl_acquire_guest_caps
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_acquire_guest_caps
    .hdr             resb 24 ; struc vbg_ioctl_hdr
    .u               resb 12 ; union None
endstruc
%define struc_vbg_ioctl_acquire_guest_caps_size 36


name: vbg_ioctl_set_guest_caps
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_set_guest_caps
    .hdr             resb 24 ; struc vbg_ioctl_hdr
    .u               resb 8 ; union None
endstruc
%define struc_vbg_ioctl_set_guest_caps_size 32


name: vbg_ioctl_check_balloon
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_check_balloon
    .hdr             resb 24 ; struc vbg_ioctl_hdr
    .u               resb 8 ; union None
endstruc
%define struc_vbg_ioctl_check_balloon_size 32


name: vbg_ioctl_write_coredump
include_file: /usr/include/linux/vboxguest.h
nasm_code:
; from header /usr/include/linux/vboxguest.h
struc vbg_ioctl_write_coredump
    .hdr             resb 24 ; struc vbg_ioctl_hdr
    .u               resb 4 ; union None
endstruc
%define struc_vbg_ioctl_write_coredump_size 28


name: ipc_kludge
include_file: /usr/include/linux/ipc.h
nasm_code:
; from header /usr/include/linux/ipc.h
struc ipc_kludge
    .msgp            resb 8
    .msgtyp          resb 8
endstruc
%define struc_ipc_kludge_size 16


name: vhost_vring_state
include_file: /usr/include/linux/vhost_types.h
nasm_code:
; from header /usr/include/linux/vhost_types.h
struc vhost_vring_state
    .index           resb 4
    .num             resb 4
endstruc
%define struc_vhost_vring_state_size 8


name: vhost_vring_file
include_file: /usr/include/linux/vhost_types.h
nasm_code:
; from header /usr/include/linux/vhost_types.h
struc vhost_vring_file
    .index           resb 4
    .fd              resb 4
endstruc
%define struc_vhost_vring_file_size 8


name: vhost_vring_addr
include_file: /usr/include/linux/vhost_types.h
nasm_code:
; from header /usr/include/linux/vhost_types.h
struc vhost_vring_addr
    .index           resb 4
    .flags           resb 4
    .desc_user_addr  resb 8
    .used_user_addr  resb 8
    .avail_user_addr resb 8
    .log_guest_addr  resb 8
endstruc
%define struc_vhost_vring_addr_size 40


name: vhost_iotlb_msg
include_file: /usr/include/linux/vhost_types.h
nasm_code:
; from header /usr/include/linux/vhost_types.h
struc vhost_iotlb_msg
    .iova            resb 8
    .size            resb 8
    .uaddr           resb 8
    .perm            resb 1
    .type            resb 1
endstruc
%define struc_vhost_iotlb_msg_size 32


name: vhost_memory_region
include_file: /usr/include/linux/vhost_types.h
nasm_code:
; from header /usr/include/linux/vhost_types.h
struc vhost_memory_region
    .guest_phys_addr resb 8
    .memory_size     resb 8
    .userspace_addr  resb 8
    .flags_padding   resb 8
endstruc
%define struc_vhost_memory_region_size 32


name: vhost_memory
include_file: /usr/include/linux/vhost_types.h
nasm_code:
; from header /usr/include/linux/vhost_types.h
struc vhost_memory
    .nregions        resb 4
    .padding         resb 4
    .regions         resb 0 ; None
endstruc
%define struc_vhost_memory_size 8


name: vhost_scsi_target
include_file: /usr/include/linux/vhost_types.h
nasm_code:
; from header /usr/include/linux/vhost_types.h
struc vhost_scsi_target
    .abi_version     resb 4
    .vhost_wwpn      resb 224 ; None
    .vhost_tpgt      resb 2
    .reserved        resb 2
endstruc
%define struc_vhost_scsi_target_size 232


name: vhost_vdpa_config
include_file: /usr/include/linux/vhost_types.h
nasm_code:
; from header /usr/include/linux/vhost_types.h
struc vhost_vdpa_config
    .off             resb 4
    .len             resb 4
    .buf             resb 0 ; None
endstruc
%define struc_vhost_vdpa_config_size 8


name: vhost_vdpa_iova_range
include_file: /usr/include/linux/vhost_types.h
nasm_code:
; from header /usr/include/linux/vhost_types.h
struc vhost_vdpa_iova_range
    .first           resb 8
    .last            resb 8
endstruc
%define struc_vhost_vdpa_iova_range_size 16


name: osd_cmd_s
include_file: /usr/include/linux/dvb/osd.h
nasm_code:
; from header /usr/include/linux/dvb/osd.h
struc osd_cmd_s
    .cmd             resb 4
    .x0              resb 4
    .y0              resb 4
    .x1              resb 4
    .y1              resb 4
    .color           resb 4
    .data            resb 8
endstruc
%define struc_osd_cmd_s_size 32


name: osd_cap_s
include_file: /usr/include/linux/dvb/osd.h
nasm_code:
; from header /usr/include/linux/dvb/osd.h
struc osd_cap_s
    .cmd             resb 4
    .val             resb 8
endstruc
%define struc_osd_cap_s_size 16


name: ca_slot_info
include_file: /usr/include/linux/dvb/ca.h
nasm_code:
; from header /usr/include/linux/dvb/ca.h
struc ca_slot_info
    .num             resb 4
    .type            resb 4
    .flags           resb 4
endstruc
%define struc_ca_slot_info_size 12


name: ca_descr_info
include_file: /usr/include/linux/dvb/ca.h
nasm_code:
; from header /usr/include/linux/dvb/ca.h
struc ca_descr_info
    .num             resb 4
    .type            resb 4
endstruc
%define struc_ca_descr_info_size 8


name: ca_caps
include_file: /usr/include/linux/dvb/ca.h
nasm_code:
; from header /usr/include/linux/dvb/ca.h
struc ca_caps
    .slot_num        resb 4
    .slot_type       resb 4
    .descr_num       resb 4
    .descr_type      resb 4
endstruc
%define struc_ca_caps_size 16


name: ca_msg
include_file: /usr/include/linux/dvb/ca.h
nasm_code:
; from header /usr/include/linux/dvb/ca.h
struc ca_msg
    .index           resb 4
    .type            resb 4
    .length          resb 4
    .msg             resb 256 ; None
endstruc
%define struc_ca_msg_size 268


name: ca_descr
include_file: /usr/include/linux/dvb/ca.h
nasm_code:
; from header /usr/include/linux/dvb/ca.h
struc ca_descr
    .index           resb 4
    .parity          resb 4
    .cw              resb 8 ; None
endstruc
%define struc_ca_descr_size 16


name: dvb_net_if
include_file: /usr/include/linux/dvb/net.h
nasm_code:
; from header /usr/include/linux/dvb/net.h
struc dvb_net_if
    .pid             resb 2
    .if_num          resb 2
    .feedtype        resb 1
endstruc
%define struc_dvb_net_if_size 6


name: __dvb_net_if_old
include_file: /usr/include/linux/dvb/net.h
nasm_code:
; from header /usr/include/linux/dvb/net.h
struc __dvb_net_if_old
    .pid             resb 2
    .if_num          resb 2
endstruc
%define struc___dvb_net_if_old_size 4


name: dvb_frontend_info
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dvb_frontend_info
    .name            resb 128 ; None
    .type            resb 4
    .frequency_min   resb 4
    .frequency_max   resb 4
    .frequency_steps resb 4
    .frequency_toler resb 4
    .symbol_rate_min resb 4
    .symbol_rate_max resb 4
    .symbol_rate_tol resb 4
    .notifier_delay  resb 4
    .caps            resb 4
endstruc
%define struc_dvb_frontend_info_size 168


name: dvb_diseqc_master_cmd
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dvb_diseqc_master_cmd
    .msg             resb 6 ; None
    .msg_len         resb 1
endstruc
%define struc_dvb_diseqc_master_cmd_size 7


name: dvb_diseqc_slave_reply
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dvb_diseqc_slave_reply
    .msg             resb 4 ; None
    .msg_len         resb 1
    .timeout         resb 4
endstruc
%define struc_dvb_diseqc_slave_reply_size 12


name: dtv_fe_stats
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dtv_fe_stats
    .len             resb 1
    .stat            resb 36 ; None
endstruc
%define struc_dtv_fe_stats_size 37


name: dtv_property
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dtv_property
    .cmd             resb 4
    .reserved        resb 12 ; None
    .u               resb 56 ; union None
    .result          resb 4
endstruc
%define struc_dtv_property_size 76


name: dtv_properties
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dtv_properties
    .num             resb 4
    .props           resb 8
endstruc
%define struc_dtv_properties_size 16


name: dvb_qpsk_parameters
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dvb_qpsk_parameters
    .symbol_rate     resb 4
    .fec_inner       resb 4
endstruc
%define struc_dvb_qpsk_parameters_size 8


name: dvb_qam_parameters
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dvb_qam_parameters
    .symbol_rate     resb 4
    .fec_inner       resb 4
    .modulation      resb 4
endstruc
%define struc_dvb_qam_parameters_size 12


name: dvb_vsb_parameters
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dvb_vsb_parameters
    .modulation      resb 4
endstruc
%define struc_dvb_vsb_parameters_size 4


name: dvb_ofdm_parameters
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dvb_ofdm_parameters
    .bandwidth       resb 4
    .code_rate_HP    resb 4
    .code_rate_LP    resb 4
    .constellation   resb 4
    .transmission_mo resb 4
    .guard_interval  resb 4
    .hierarchy_infor resb 4
endstruc
%define struc_dvb_ofdm_parameters_size 28


name: dvb_frontend_parameters
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dvb_frontend_parameters
    .frequency       resb 4
    .inversion       resb 4
    .u               resb 28 ; union None
endstruc
%define struc_dvb_frontend_parameters_size 36


name: dvb_frontend_event
include_file: /usr/include/linux/dvb/frontend.h
nasm_code:
; from header /usr/include/linux/dvb/frontend.h
struc dvb_frontend_event
    .status          resb 4
    .parameters      resb 36 ; struc dvb_frontend_parameters
endstruc
%define struc_dvb_frontend_event_size 40


name: video_event
include_file: /usr/include/linux/dvb/video.h
nasm_code:
; from header /usr/include/linux/dvb/video.h
struc video_event
    .type            resb 4
    .timestamp       resb 8
    .u               resb 12 ; union None
endstruc
%define struc_video_event_size 32


name: video_status
include_file: /usr/include/linux/dvb/video.h
nasm_code:
; from header /usr/include/linux/dvb/video.h
struc video_status
    .video_blank     resb 4
    .play_state      resb 4
    .stream_source   resb 4
    .video_format    resb 4
    .display_format  resb 4
endstruc
%define struc_video_status_size 20


name: video_still_picture
include_file: /usr/include/linux/dvb/video.h
nasm_code:
; from header /usr/include/linux/dvb/video.h
struc video_still_picture
    .iFrame          resb 8
    .size            resb 4
endstruc
%define struc_video_still_picture_size 16


name: dmx_filter
include_file: /usr/include/linux/dvb/dmx.h
nasm_code:
; from header /usr/include/linux/dvb/dmx.h
struc dmx_filter
    .filter          resb 16 ; None
    .mask            resb 16 ; None
    .mode            resb 16 ; None
endstruc
%define struc_dmx_filter_size 48


name: dmx_sct_filter_params
include_file: /usr/include/linux/dvb/dmx.h
nasm_code:
; from header /usr/include/linux/dvb/dmx.h
struc dmx_sct_filter_params
    .pid             resb 2
    .filter          resb 48 ; struc dmx_filter
    .timeout         resb 4
    .flags           resb 4
endstruc
%define struc_dmx_sct_filter_params_size 60


name: dmx_pes_filter_params
include_file: /usr/include/linux/dvb/dmx.h
nasm_code:
; from header /usr/include/linux/dvb/dmx.h
struc dmx_pes_filter_params
    .pid             resb 2
    .input           resb 4
    .output          resb 4
    .pes_type        resb 4
    .flags           resb 4
endstruc
%define struc_dmx_pes_filter_params_size 20


name: dmx_stc
include_file: /usr/include/linux/dvb/dmx.h
nasm_code:
; from header /usr/include/linux/dvb/dmx.h
struc dmx_stc
    .num             resb 4
    .base            resb 4
    .stc             resb 8
endstruc
%define struc_dmx_stc_size 16


name: dmx_buffer
include_file: /usr/include/linux/dvb/dmx.h
nasm_code:
; from header /usr/include/linux/dvb/dmx.h
struc dmx_buffer
    .index           resb 4
    .bytesused       resb 4
    .offset          resb 4
    .length          resb 4
    .flags           resb 4
    .count           resb 4
endstruc
%define struc_dmx_buffer_size 24


name: dmx_requestbuffers
include_file: /usr/include/linux/dvb/dmx.h
nasm_code:
; from header /usr/include/linux/dvb/dmx.h
struc dmx_requestbuffers
    .count           resb 4
    .size            resb 4
endstruc
%define struc_dmx_requestbuffers_size 8


name: dmx_exportbuffer
include_file: /usr/include/linux/dvb/dmx.h
nasm_code:
; from header /usr/include/linux/dvb/dmx.h
struc dmx_exportbuffer
    .index           resb 4
    .flags           resb 4
    .fd              resb 4
endstruc
%define struc_dmx_exportbuffer_size 12


name: audio_mixer
include_file: /usr/include/linux/dvb/audio.h
nasm_code:
; from header /usr/include/linux/dvb/audio.h
struc audio_mixer
    .volume_left     resb 4
    .volume_right    resb 4
endstruc
%define struc_audio_mixer_size 8


name: audio_status
include_file: /usr/include/linux/dvb/audio.h
nasm_code:
; from header /usr/include/linux/dvb/audio.h
struc audio_status
    .AV_sync_state   resb 4
    .mute_state      resb 4
    .play_state      resb 4
    .stream_source   resb 4
    .channel_select  resb 4
    .bypass_mode     resb 4
    .mixer_state     resb 8 ; audio_mixer_t
endstruc
%define struc_audio_status_size 32


name: vmcoredd_header
include_file: /usr/include/linux/vmcore.h
nasm_code:
; from header /usr/include/linux/vmcore.h
struc vmcoredd_header
    .n_namesz        resb 4
    .n_descsz        resb 4
    .n_type          resb 4
    .name            resb 8 ; None
    .dump_name       resb 44 ; None
endstruc
%define struc_vmcoredd_header_size 64


name: mgsl_icount
include_file: /usr/include/linux/synclink.h
nasm_code:
; from header /usr/include/linux/synclink.h
struc mgsl_icount
    .cts             resb 4
    .dsr             resb 4
    .rng             resb 4
    .dcd             resb 4
    .tx              resb 4
    .rx              resb 4
    .frame           resb 4
    .parity          resb 4
    .overrun         resb 4
    .brk             resb 4
    .buf_overrun     resb 4
    .txok            resb 4
    .txunder         resb 4
    .txabort         resb 4
    .txtimeout       resb 4
    .rxshort         resb 4
    .rxlong          resb 4
    .rxabort         resb 4
    .rxover          resb 4
    .rxcrc           resb 4
    .rxok            resb 4
    .exithunt        resb 4
    .rxidle          resb 4
endstruc
%define struc_mgsl_icount_size 92


name: gpio_desc
include_file: /usr/include/linux/synclink.h
nasm_code:
; from header /usr/include/linux/synclink.h
struc gpio_desc
    .state           resb 4
    .smask           resb 4
    .dir             resb 4
    .dmask           resb 4
endstruc
%define struc_gpio_desc_size 16


name: bcm_hcs
include_file: /usr/include/linux/bcm933xx_hcs.h
nasm_code:
; from header /usr/include/linux/bcm933xx_hcs.h
struc bcm_hcs
    .magic           resb 2
    .control         resb 2
    .rev_maj         resb 2
    .rev_min         resb 2
    .build_date      resb 4
    .filelen         resb 4
    .ldaddress       resb 4
    .filename        resb 64 ; None
    .hcs             resb 2
    .her_znaet_chto  resb 2
    .crc             resb 4
endstruc
%define struc_bcm_hcs_size 92


name: ivtv_dma_frame
include_file: /usr/include/linux/ivtv.h
nasm_code:
; from header /usr/include/linux/ivtv.h
struc ivtv_dma_frame
    .type            resb 4
    .pixelformat     resb 4
    .y_source        resb 8
    .uv_source       resb 8
    .src             resb 16 ; struc v4l2_rect
    .dst             resb 16 ; struc v4l2_rect
    .src_width       resb 4
    .src_height      resb 4
endstruc
%define struc_ivtv_dma_frame_size 64


name: bpf_insn
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_insn
    .code            resb 1
    .dst_reg         resb 1
    .src_reg         resb 1
    .off             resb 2
    .imm             resb 4
endstruc
%define struc_bpf_insn_size 8


name: bpf_lpm_trie_key
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_lpm_trie_key
    .prefixlen       resb 4
    .data            resb 0 ; None
endstruc
%define struc_bpf_lpm_trie_key_size 4


name: bpf_cgroup_storage_key
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_cgroup_storage_key
    .cgroup_inode_id resb 8
    .attach_type     resb 4
endstruc
%define struc_bpf_cgroup_storage_key_size 16


name: bpf_sock
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_sock
    .bound_dev_if    resb 4
    .family          resb 4
    .type            resb 4
    .protocol        resb 4
    .mark            resb 4
    .priority        resb 4
    .src_ip4         resb 4
    .src_ip6         resb 16 ; None
    .src_port        resb 4
    .dst_port        resb 4
    .dst_ip4         resb 4
    .dst_ip6         resb 16 ; None
    .state           resb 4
    .rx_queue_mappin resb 4
endstruc
%define struc_bpf_sock_size 80


name: bpf_tcp_sock
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_tcp_sock
    .snd_cwnd        resb 4
    .srtt_us         resb 4
    .rtt_min         resb 4
    .snd_ssthresh    resb 4
    .rcv_nxt         resb 4
    .snd_nxt         resb 4
    .snd_una         resb 4
    .mss_cache       resb 4
    .ecn_flags       resb 4
    .rate_delivered  resb 4
    .rate_interval_u resb 4
    .packets_out     resb 4
    .retrans_out     resb 4
    .total_retrans   resb 4
    .segs_in         resb 4
    .data_segs_in    resb 4
    .segs_out        resb 4
    .data_segs_out   resb 4
    .lost_out        resb 4
    .sacked_out      resb 4
    .bytes_received  resb 8
    .bytes_acked     resb 8
    .dsack_dups      resb 4
    .delivered       resb 4
    .delivered_ce    resb 4
    .icsk_retransmit resb 4
endstruc
%define struc_bpf_tcp_sock_size 112


name: bpf_xdp_sock
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_xdp_sock
    .queue_id        resb 4
endstruc
%define struc_bpf_xdp_sock_size 4


name: xdp_md
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc xdp_md
    .data            resb 4
    .data_end        resb 4
    .data_meta       resb 4
    .ingress_ifindex resb 4
    .rx_queue_index  resb 4
    .egress_ifindex  resb 4
endstruc
%define struc_xdp_md_size 24


name: bpf_devmap_val
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_devmap_val
    .ifindex         resb 4
    .bpf_prog        resb 4 ; union None
endstruc
%define struc_bpf_devmap_val_size 8


name: bpf_cpumap_val
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_cpumap_val
    .qsize           resb 4
    .bpf_prog        resb 4 ; union None
endstruc
%define struc_bpf_cpumap_val_size 8


name: bpf_prog_info
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_prog_info
    .type            resb 4
    .id              resb 4
    .tag             resb 8 ; None
    .jited_prog_len  resb 4
    .xlated_prog_len resb 4
    .jited_prog_insn resb 8
    .xlated_prog_ins resb 8
    .load_time       resb 8
    .created_by_uid  resb 4
    .nr_map_ids      resb 4
    .map_ids         resb 8
    .name            resb 16 ; None
    .ifindex         resb 4
    .gpl_compatible  resb 4
    .netns_dev       resb 8
    .netns_ino       resb 8
    .nr_jited_ksyms  resb 4
    .nr_jited_func_l resb 4
    .jited_ksyms     resb 8
    .jited_func_lens resb 8
    .btf_id          resb 4
    .func_info_rec_s resb 4
    .func_info       resb 8
    .nr_func_info    resb 4
    .nr_line_info    resb 4
    .line_info       resb 8
    .jited_line_info resb 8
    .nr_jited_line_i resb 4
    .line_info_rec_s resb 4
    .jited_line_info resb 4
    .nr_prog_tags    resb 4
    .prog_tags       resb 8
    .run_time_ns     resb 8
    .run_cnt         resb 8
endstruc
%define struc_bpf_prog_info_size 208


name: bpf_map_info
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_map_info
    .type            resb 4
    .id              resb 4
    .key_size        resb 4
    .value_size      resb 4
    .max_entries     resb 4
    .map_flags       resb 4
    .name            resb 16 ; None
    .ifindex         resb 4
    .btf_vmlinux_val resb 4
    .netns_dev       resb 8
    .netns_ino       resb 8
    .btf_id          resb 4
    .btf_key_type_id resb 4
    .btf_value_type_ resb 4
endstruc
%define struc_bpf_map_info_size 80


name: bpf_btf_info
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_btf_info
    .btf             resb 8
    .btf_size        resb 4
    .id              resb 4
endstruc
%define struc_bpf_btf_info_size 16


name: bpf_perf_event_value
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_perf_event_value
    .counter         resb 8
    .enabled         resb 8
    .running         resb 8
endstruc
%define struc_bpf_perf_event_value_size 24


name: bpf_cgroup_dev_ctx
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_cgroup_dev_ctx
    .access_type     resb 4
    .major           resb 4
    .minor           resb 4
endstruc
%define struc_bpf_cgroup_dev_ctx_size 12


name: bpf_raw_tracepoint_args
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_raw_tracepoint_args
    .args            resb 0 ; None
endstruc
%define struc_bpf_raw_tracepoint_args_size 0


name: bpf_func_info
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_func_info
    .insn_off        resb 4
    .type_id         resb 4
endstruc
%define struc_bpf_func_info_size 8


name: bpf_line_info
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_line_info
    .insn_off        resb 4
    .file_name_off   resb 4
    .line_off        resb 4
    .line_col        resb 4
endstruc
%define struc_bpf_line_info_size 16


name: bpf_spin_lock
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_spin_lock
    .val             resb 4
endstruc
%define struc_bpf_spin_lock_size 4


name: bpf_sysctl
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_sysctl
    .write           resb 4
    .file_pos        resb 4
endstruc
%define struc_bpf_sysctl_size 8


name: bpf_pidns_info
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc bpf_pidns_info
    .pid             resb 4
    .tgid            resb 4
endstruc
%define struc_bpf_pidns_info_size 8


name: btf_ptr
include_file: /usr/include/linux/bpf.h
nasm_code:
; from header /usr/include/linux/bpf.h
struc btf_ptr
    .ptr             resb 8
    .type_id         resb 4
    .flags           resb 4
endstruc
%define struc_btf_ptr_size 16


name: vfio_device_info_cap_zpci_base
include_file: /usr/include/linux/vfio_zdev.h
nasm_code:
; from header /usr/include/linux/vfio_zdev.h
struc vfio_device_info_cap_zpci_base
    .header          resb 8 ; struc vfio_info_cap_header
    .start_dma       resb 8
    .end_dma         resb 8
    .pchid           resb 2
    .vfn             resb 2
    .fmb_length      resb 2
    .pft             resb 1
    .gid             resb 1
endstruc
%define struc_vfio_device_info_cap_zpci_base_size 32


name: vfio_device_info_cap_zpci_group
include_file: /usr/include/linux/vfio_zdev.h
nasm_code:
; from header /usr/include/linux/vfio_zdev.h
struc vfio_device_info_cap_zpci_group
    .header          resb 8 ; struc vfio_info_cap_header
    .dasm            resb 8
    .msi_addr        resb 8
    .flags           resb 8
    .mui             resb 2
    .noi             resb 2
    .maxstbl         resb 2
    .version         resb 1
endstruc
%define struc_vfio_device_info_cap_zpci_group_size 40


name: vfio_device_info_cap_zpci_util
include_file: /usr/include/linux/vfio_zdev.h
nasm_code:
; from header /usr/include/linux/vfio_zdev.h
struc vfio_device_info_cap_zpci_util
    .header          resb 8 ; struc vfio_info_cap_header
    .size            resb 4
    .util_str        resb 0 ; None
endstruc
%define struc_vfio_device_info_cap_zpci_util_size 12


name: vfio_device_info_cap_zpci_pfip
include_file: /usr/include/linux/vfio_zdev.h
nasm_code:
; from header /usr/include/linux/vfio_zdev.h
struc vfio_device_info_cap_zpci_pfip
    .header          resb 8 ; struc vfio_info_cap_header
    .size            resb 4
    .pfip            resb 0 ; None
endstruc
%define struc_vfio_device_info_cap_zpci_pfip_size 12


name: rfkill_event
include_file: /usr/include/linux/rfkill.h
nasm_code:
; from header /usr/include/linux/rfkill.h
struc rfkill_event
    .idx             resb 4
    .type            resb 1
    .op              resb 1
    .soft            resb 1
    .hard            resb 1
endstruc
%define struc_rfkill_event_size 8


name: mfcctl
include_file: /usr/include/linux/mroute.h
nasm_code:
; from header /usr/include/linux/mroute.h
struc mfcctl
    .mfcc_origin     resb 4 ; struc in_addr
    .mfcc_mcastgrp   resb 4 ; struc in_addr
    .mfcc_parent     resb 2
    .mfcc_ttls       resb 32 ; None
    .mfcc_pkt_cnt    resb 4
    .mfcc_byte_cnt   resb 4
    .mfcc_wrong_if   resb 4
    .mfcc_expire     resb 4
endstruc
%define struc_mfcctl_size 60


name: sioc_sg_req
include_file: /usr/include/linux/mroute.h
nasm_code:
; from header /usr/include/linux/mroute.h
struc sioc_sg_req
    .src             resb 4 ; struc in_addr
    .grp             resb 4 ; struc in_addr
    .pktcnt          resb 8
    .bytecnt         resb 8
    .wrong_if        resb 8
endstruc
%define struc_sioc_sg_req_size 32


name: sioc_vif_req
include_file: /usr/include/linux/mroute.h
nasm_code:
; from header /usr/include/linux/mroute.h
struc sioc_vif_req
    .vifi            resb 2
    .icount          resb 8
    .ocount          resb 8
    .ibytes          resb 8
    .obytes          resb 8
endstruc
%define struc_sioc_vif_req_size 40


name: igmpmsg
include_file: /usr/include/linux/mroute.h
nasm_code:
; from header /usr/include/linux/mroute.h
struc igmpmsg
    .unused1         resb 4
    .unused2         resb 4
    .im_msgtype      resb 1
    .im_mbz          resb 1
    .im_vif          resb 1
    .im_vif_hi       resb 1
    .im_src          resb 4 ; struc in_addr
    .im_dst          resb 4 ; struc in_addr
endstruc
%define struc_igmpmsg_size 20


name: timex
include_file: /usr/include/linux/timex.h
nasm_code:
; from header /usr/include/linux/timex.h
struc timex
    .modes           resb 4
    .offset          resb 8
    .freq            resb 8
    .maxerror        resb 8
    .esterror        resb 8
    .status          resb 4
    .constant        resb 8
    .precision       resb 8
    .tolerance       resb 8
    .time            resb 16 ; struc timeval
    .tick            resb 8
    .ppsfreq         resb 8
    .jitter          resb 8
    .shift           resb 4
    .stabil          resb 8
    .jitcnt          resb 8
    .calcnt          resb 8
    .errcnt          resb 8
    .stbcnt          resb 8
    .tai             resb 4
endstruc
%define struc_timex_size 208


name: __kernel_timex_timeval
include_file: /usr/include/linux/timex.h
nasm_code:
; from header /usr/include/linux/timex.h
struc __kernel_timex_timeval
    .tv_sec          resb 8
    .tv_usec         resb 8
endstruc
%define struc___kernel_timex_timeval_size 16


name: __kernel_timex
include_file: /usr/include/linux/timex.h
nasm_code:
; from header /usr/include/linux/timex.h
struc __kernel_timex
    .modes           resb 4
    .offset          resb 8
    .freq            resb 8
    .maxerror        resb 8
    .esterror        resb 8
    .status          resb 4
    .constant        resb 8
    .precision       resb 8
    .tolerance       resb 8
    .time            resb 16 ; struc __kernel_timex_timeval
    .tick            resb 8
    .ppsfreq         resb 8
    .jitter          resb 8
    .shift           resb 4
    .stabil          resb 8
    .jitcnt          resb 8
    .calcnt          resb 8
    .errcnt          resb 8
    .stbcnt          resb 8
    .tai             resb 4
endstruc
%define struc___kernel_timex_size 208


name: inotify_event
include_file: /usr/include/linux/inotify.h
nasm_code:
; from header /usr/include/linux/inotify.h
struc inotify_event
    .wd              resb 4
    .mask            resb 4
    .cookie          resb 4
    .len             resb 4
    .name            resb 0 ; None
endstruc
%define struc_inotify_event_size 16


name: ccw_io_region
include_file: /usr/include/linux/vfio_ccw.h
nasm_code:
; from header /usr/include/linux/vfio_ccw.h
struc ccw_io_region
    .orb_area        resb 12 ; None
    .scsw_area       resb 12 ; None
    .irb_area        resb 96 ; None
    .ret_code        resb 4
endstruc
%define struc_ccw_io_region_size 124


name: ccw_cmd_region
include_file: /usr/include/linux/vfio_ccw.h
nasm_code:
; from header /usr/include/linux/vfio_ccw.h
struc ccw_cmd_region
    .command         resb 4
    .ret_code        resb 4
endstruc
%define struc_ccw_cmd_region_size 8


name: ccw_schib_region
include_file: /usr/include/linux/vfio_ccw.h
nasm_code:
; from header /usr/include/linux/vfio_ccw.h
struc ccw_schib_region
    .schib_area      resb 52 ; None
endstruc
%define struc_ccw_schib_region_size 52


name: ccw_crw_region
include_file: /usr/include/linux/vfio_ccw.h
nasm_code:
; from header /usr/include/linux/vfio_ccw.h
struc ccw_crw_region
    .crw             resb 4
    .pad             resb 4
endstruc
%define struc_ccw_crw_region_size 8


name: atreq
include_file: /usr/include/linux/cm4000_cs.h
nasm_code:
; from header /usr/include/linux/cm4000_cs.h
struc atreq
    .atr_len         resb 4
    .atr             resb 64 ; None
    .power_act       resb 4
    .bIFSD           resb 1
    .bIFSC           resb 1
endstruc
%define struc_atreq_size 76


name: ptsreq
include_file: /usr/include/linux/cm4000_cs.h
nasm_code:
; from header /usr/include/linux/cm4000_cs.h
struc ptsreq
    .protocol        resb 4
    .flags           resb 1
    .pts1            resb 1
    .pts2            resb 1
    .pts3            resb 1
endstruc
%define struc_ptsreq_size 8


name: pr_reservation
include_file: /usr/include/linux/pr.h
nasm_code:
; from header /usr/include/linux/pr.h
struc pr_reservation
    .key             resb 8
    .type            resb 4
    .flags           resb 4
endstruc
%define struc_pr_reservation_size 16


name: pr_registration
include_file: /usr/include/linux/pr.h
nasm_code:
; from header /usr/include/linux/pr.h
struc pr_registration
    .old_key         resb 8
    .new_key         resb 8
    .flags           resb 4
    .__pad           resb 4
endstruc
%define struc_pr_registration_size 24


name: pr_preempt
include_file: /usr/include/linux/pr.h
nasm_code:
; from header /usr/include/linux/pr.h
struc pr_preempt
    .old_key         resb 8
    .new_key         resb 8
    .type            resb 4
    .flags           resb 4
endstruc
%define struc_pr_preempt_size 24


name: pr_clear
include_file: /usr/include/linux/pr.h
nasm_code:
; from header /usr/include/linux/pr.h
struc pr_clear
    .key             resb 8
    .flags           resb 4
    .__pad           resb 4
endstruc
%define struc_pr_clear_size 16


name: sysinfo
include_file: /usr/include/linux/sysinfo.h
nasm_code:
; from header /usr/include/linux/sysinfo.h
struc sysinfo
    .uptime          resb 8
    .loads           resb 24 ; None
    .totalram        resb 8
    .freeram         resb 8
    .sharedram       resb 8
    .bufferram       resb 8
    .totalswap       resb 8
    .freeswap        resb 8
    .procs           resb 2
    .pad             resb 2
    .totalhigh       resb 8
    .freehigh        resb 8
    .mem_unit        resb 4
    ._f              resb 0 ; None
endstruc
%define struc_sysinfo_size 112


name: nfs_fhbase_old
include_file: /usr/include/linux/nfsd/nfsfh.h
nasm_code:
; from header /usr/include/linux/nfsd/nfsfh.h
struc nfs_fhbase_old
    .fb_dcookie      resb 4
    .fb_ino          resb 4
    .fb_dirino       resb 4
    .fb_dev          resb 4
    .fb_xdev         resb 4
    .fb_xino         resb 4
    .fb_generation   resb 4
endstruc
%define struc_nfs_fhbase_old_size 28


name: nfs_fhbase_new
include_file: /usr/include/linux/nfsd/nfsfh.h
nasm_code:
; from header /usr/include/linux/nfsd/nfsfh.h
struc nfs_fhbase_new
    .fb_version      resb 1
    .fb_auth_type    resb 1
    .fb_fsid_type    resb 1
    .fb_fileid_type  resb 1
    .fb_auth         resb 4 ; None
endstruc
%define struc_nfs_fhbase_new_size 8


name: knfsd_fh
include_file: /usr/include/linux/nfsd/nfsfh.h
nasm_code:
; from header /usr/include/linux/nfsd/nfsfh.h
struc knfsd_fh
    .fh_size         resb 4
    .fh_base         resb 128 ; union None
endstruc
%define struc_knfsd_fh_size 132


name: cld_name
include_file: /usr/include/linux/nfsd/cld.h
nasm_code:
; from header /usr/include/linux/nfsd/cld.h
struc cld_name
    .cn_len          resb 2
    .cn_id           resb 1024 ; None
endstruc
%define struc_cld_name_size 1026


name: cld_princhash
include_file: /usr/include/linux/nfsd/cld.h
nasm_code:
; from header /usr/include/linux/nfsd/cld.h
struc cld_princhash
    .cp_len          resb 1
    .cp_data         resb 32 ; None
endstruc
%define struc_cld_princhash_size 33


name: cld_clntinfo
include_file: /usr/include/linux/nfsd/cld.h
nasm_code:
; from header /usr/include/linux/nfsd/cld.h
struc cld_clntinfo
    .cc_name         resb 1026 ; struc cld_name
    .cc_princhash    resb 33 ; struc cld_princhash
endstruc
%define struc_cld_clntinfo_size 1059


name: cld_msg
include_file: /usr/include/linux/nfsd/cld.h
nasm_code:
; from header /usr/include/linux/nfsd/cld.h
struc cld_msg
    .cm_vers         resb 1
    .cm_cmd          resb 1
    .cm_status       resb 2
    .cm_xid          resb 4
    .cm_u            resb 1026 ; union None
endstruc
%define struc_cld_msg_size 1034


name: cld_msg_v2
include_file: /usr/include/linux/nfsd/cld.h
nasm_code:
; from header /usr/include/linux/nfsd/cld.h
struc cld_msg_v2
    .cm_vers         resb 1
    .cm_cmd          resb 1
    .cm_status       resb 2
    .cm_xid          resb 4
    .cm_u            resb 1059 ; union None
endstruc
%define struc_cld_msg_v2_size 1067


name: cld_msg_hdr
include_file: /usr/include/linux/nfsd/cld.h
nasm_code:
; from header /usr/include/linux/nfsd/cld.h
struc cld_msg_hdr
    .cm_vers         resb 1
    .cm_cmd          resb 1
    .cm_status       resb 2
    .cm_xid          resb 4
endstruc
%define struc_cld_msg_hdr_size 8


name: dm_ulog_request
include_file: /usr/include/linux/dm-log-userspace.h
nasm_code:
; from header /usr/include/linux/dm-log-userspace.h
struc dm_ulog_request
    .luid            resb 8
    .uuid            resb 129 ; None
    .padding         resb 3 ; None
    .version         resb 4
    .error           resb 4
    .seq             resb 4
    .request_type    resb 4
    .data_size       resb 4
    .data            resb 0 ; None
endstruc
%define struc_dm_ulog_request_size 160


name: seg6_iptunnel_encap
include_file: /usr/include/linux/seg6_iptunnel.h
nasm_code:
; from header /usr/include/linux/seg6_iptunnel.h
struc seg6_iptunnel_encap
    .mode            resb 4
    .srh             resb 0 ; None
endstruc
%define struc_seg6_iptunnel_encap_size 4


name: tipc_socket_addr
include_file: /usr/include/linux/tipc.h
nasm_code:
; from header /usr/include/linux/tipc.h
struc tipc_socket_addr
    .ref             resb 4
    .node            resb 4
endstruc
%define struc_tipc_socket_addr_size 8


name: tipc_service_addr
include_file: /usr/include/linux/tipc.h
nasm_code:
; from header /usr/include/linux/tipc.h
struc tipc_service_addr
    .type            resb 4
    .instance        resb 4
endstruc
%define struc_tipc_service_addr_size 8


name: tipc_service_range
include_file: /usr/include/linux/tipc.h
nasm_code:
; from header /usr/include/linux/tipc.h
struc tipc_service_range
    .type            resb 4
    .lower           resb 4
    .upper           resb 4
endstruc
%define struc_tipc_service_range_size 12


name: tipc_subscr
include_file: /usr/include/linux/tipc.h
nasm_code:
; from header /usr/include/linux/tipc.h
struc tipc_subscr
    .seq             resb 12 ; struc tipc_service_range
    .timeout         resb 4
    .filter          resb 4
    .usr_handle      resb 8 ; None
endstruc
%define struc_tipc_subscr_size 28


name: tipc_event
include_file: /usr/include/linux/tipc.h
nasm_code:
; from header /usr/include/linux/tipc.h
struc tipc_event
    .event           resb 4
    .found_lower     resb 4
    .found_upper     resb 4
    .port            resb 8 ; struc tipc_socket_addr
    .s               resb 28 ; struc tipc_subscr
endstruc
%define struc_tipc_event_size 48


name: sockaddr_tipc
include_file: /usr/include/linux/tipc.h
nasm_code:
; from header /usr/include/linux/tipc.h
struc sockaddr_tipc
    .family          resb 2
    .addrtype        resb 1
    .scope           resb 1
    .addr            resb 12 ; union None
endstruc
%define struc_sockaddr_tipc_size 16


name: tipc_group_req
include_file: /usr/include/linux/tipc.h
nasm_code:
; from header /usr/include/linux/tipc.h
struc tipc_group_req
    .type            resb 4
    .instance        resb 4
    .scope           resb 4
    .flags           resb 4
endstruc
%define struc_tipc_group_req_size 16


name: tipc_sioc_ln_req
include_file: /usr/include/linux/tipc.h
nasm_code:
; from header /usr/include/linux/tipc.h
struc tipc_sioc_ln_req
    .peer            resb 4
    .bearer_id       resb 4
    .linkname        resb 68 ; None
endstruc
%define struc_tipc_sioc_ln_req_size 76


name: tipc_sioc_nodeid_req
include_file: /usr/include/linux/tipc.h
nasm_code:
; from header /usr/include/linux/tipc.h
struc tipc_sioc_nodeid_req
    .peer            resb 4
    .node_id         resb 16 ; None
endstruc
%define struc_tipc_sioc_nodeid_req_size 20


name: tipc_aead_key
include_file: /usr/include/linux/tipc.h
nasm_code:
; from header /usr/include/linux/tipc.h
struc tipc_aead_key
    .alg_name        resb 32 ; None
    .keylen          resb 4
    .key             resb 0 ; None
endstruc
%define struc_tipc_aead_key_size 36


name: btrfs_ioctl_vol_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_vol_args
    .fd              resb 8
    .name            resb 4088 ; None
endstruc
%define struc_btrfs_ioctl_vol_args_size 4096


name: btrfs_qgroup_limit
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_qgroup_limit
    .flags           resb 8
    .max_rfer        resb 8
    .max_excl        resb 8
    .rsv_rfer        resb 8
    .rsv_excl        resb 8
endstruc
%define struc_btrfs_qgroup_limit_size 40


name: btrfs_qgroup_inherit
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_qgroup_inherit
    .flags           resb 8
    .num_qgroups     resb 8
    .num_ref_copies  resb 8
    .num_excl_copies resb 8
    .lim             resb 40 ; struc btrfs_qgroup_limit
    .qgroups         resb 0 ; None
endstruc
%define struc_btrfs_qgroup_inherit_size 72


name: btrfs_ioctl_qgroup_limit_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_qgroup_limit_args
    .qgroupid        resb 8
    .lim             resb 40 ; struc btrfs_qgroup_limit
endstruc
%define struc_btrfs_ioctl_qgroup_limit_args_size 48


name: btrfs_scrub_progress
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_scrub_progress
    .data_extents_sc resb 8
    .tree_extents_sc resb 8
    .data_bytes_scru resb 8
    .tree_bytes_scru resb 8
    .read_errors     resb 8
    .csum_errors     resb 8
    .verify_errors   resb 8
    .no_csum         resb 8
    .csum_discards   resb 8
    .super_errors    resb 8
    .malloc_errors   resb 8
    .uncorrectable_e resb 8
    .corrected_error resb 8
    .last_physical   resb 8
    .unverified_erro resb 8
endstruc
%define struc_btrfs_scrub_progress_size 120


name: btrfs_ioctl_scrub_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_scrub_args
    .devid           resb 8
    .start           resb 8
    .end             resb 8
    .flags           resb 8
    .progress        resb 120 ; struc btrfs_scrub_progress
    .unused          resb 872 ; None
endstruc
%define struc_btrfs_ioctl_scrub_args_size 1024


name: btrfs_ioctl_dev_replace_start_params
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_dev_replace_start_params
    .srcdevid        resb 8
    .cont_reading_fr resb 8
    .srcdev_name     resb 1025 ; None
    .tgtdev_name     resb 1025 ; None
endstruc
%define struc_btrfs_ioctl_dev_replace_start_params_size 2072


name: btrfs_ioctl_dev_replace_status_params
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_dev_replace_status_params
    .replace_state   resb 8
    .progress_1000   resb 8
    .time_started    resb 8
    .time_stopped    resb 8
    .num_write_error resb 8
    .num_uncorrectab resb 8
endstruc
%define struc_btrfs_ioctl_dev_replace_status_params_size 48


name: btrfs_ioctl_dev_info_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_dev_info_args
    .devid           resb 8
    .uuid            resb 16 ; None
    .bytes_used      resb 8
    .total_bytes     resb 8
    .unused          resb 3032 ; None
    .path            resb 1024 ; None
endstruc
%define struc_btrfs_ioctl_dev_info_args_size 4096


name: btrfs_ioctl_fs_info_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_fs_info_args
    .max_id          resb 8
    .num_devices     resb 8
    .fsid            resb 16 ; None
    .nodesize        resb 4
    .sectorsize      resb 4
    .clone_alignment resb 4
    .csum_type       resb 2
    .csum_size       resb 2
    .flags           resb 8
    .generation      resb 8
    .metadata_uuid   resb 16 ; None
    .reserved        resb 944 ; None
endstruc
%define struc_btrfs_ioctl_fs_info_args_size 1024


name: btrfs_ioctl_feature_flags
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_feature_flags
    .compat_flags    resb 8
    .compat_ro_flags resb 8
    .incompat_flags  resb 8
endstruc
%define struc_btrfs_ioctl_feature_flags_size 24


name: btrfs_balance_progress
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_balance_progress
    .expected        resb 8
    .considered      resb 8
    .completed       resb 8
endstruc
%define struc_btrfs_balance_progress_size 24


name: btrfs_ioctl_balance_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_balance_args
    .flags           resb 8
    .state           resb 8
    .data            resb 136 ; struc btrfs_balance_args
    .meta            resb 136 ; struc btrfs_balance_args
    .sys             resb 136 ; struc btrfs_balance_args
    .stat            resb 24 ; struc btrfs_balance_progress
    .unused          resb 576 ; None
endstruc
%define struc_btrfs_ioctl_balance_args_size 1024


name: btrfs_ioctl_ino_lookup_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_ino_lookup_args
    .treeid          resb 8
    .objectid        resb 8
    .name            resb 4080 ; None
endstruc
%define struc_btrfs_ioctl_ino_lookup_args_size 4096


name: btrfs_ioctl_ino_lookup_user_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_ino_lookup_user_args
    .dirid           resb 8
    .treeid          resb 8
    .name            resb 256 ; None
    .path            resb 3824 ; None
endstruc
%define struc_btrfs_ioctl_ino_lookup_user_args_size 4096


name: btrfs_ioctl_search_key
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_search_key
    .tree_id         resb 8
    .min_objectid    resb 8
    .max_objectid    resb 8
    .min_offset      resb 8
    .max_offset      resb 8
    .min_transid     resb 8
    .max_transid     resb 8
    .min_type        resb 4
    .max_type        resb 4
    .nr_items        resb 4
    .unused          resb 4
    .unused1         resb 8
    .unused2         resb 8
    .unused3         resb 8
    .unused4         resb 8
endstruc
%define struc_btrfs_ioctl_search_key_size 104


name: btrfs_ioctl_search_header
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_search_header
    .transid         resb 8
    .objectid        resb 8
    .offset          resb 8
    .type            resb 4
    .len             resb 4
endstruc
%define struc_btrfs_ioctl_search_header_size 32


name: btrfs_ioctl_search_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_search_args
    .key             resb 104 ; struc btrfs_ioctl_search_key
    .buf             resb 3992 ; None
endstruc
%define struc_btrfs_ioctl_search_args_size 4096


name: btrfs_ioctl_search_args_v2
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_search_args_v2
    .key             resb 104 ; struc btrfs_ioctl_search_key
    .buf_size        resb 8
    .buf             resb 0 ; None
endstruc
%define struc_btrfs_ioctl_search_args_v2_size 112


name: btrfs_ioctl_clone_range_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_clone_range_args
    .src_fd          resb 8
    .src_offset      resb 8
    .src_length      resb 8
    .dest_offset     resb 8
endstruc
%define struc_btrfs_ioctl_clone_range_args_size 32


name: btrfs_ioctl_defrag_range_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_defrag_range_args
    .start           resb 8
    .len             resb 8
    .flags           resb 8
    .extent_thresh   resb 4
    .compress_type   resb 4
    .unused          resb 16 ; None
endstruc
%define struc_btrfs_ioctl_defrag_range_args_size 48


name: btrfs_ioctl_same_extent_info
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_same_extent_info
    .fd              resb 8
    .logical_offset  resb 8
    .bytes_deduped   resb 8
    .status          resb 4
    .reserved        resb 4
endstruc
%define struc_btrfs_ioctl_same_extent_info_size 32


name: btrfs_ioctl_same_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_same_args
    .logical_offset  resb 8
    .length          resb 8
    .dest_count      resb 2
    .reserved1       resb 2
    .reserved2       resb 4
    .info            resb 0 ; None
endstruc
%define struc_btrfs_ioctl_same_args_size 24


name: btrfs_ioctl_space_info
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_space_info
    .flags           resb 8
    .total_bytes     resb 8
    .used_bytes      resb 8
endstruc
%define struc_btrfs_ioctl_space_info_size 24


name: btrfs_ioctl_space_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_space_args
    .space_slots     resb 8
    .total_spaces    resb 8
    .spaces          resb 0 ; None
endstruc
%define struc_btrfs_ioctl_space_args_size 16


name: btrfs_data_container
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_data_container
    .bytes_left      resb 4
    .bytes_missing   resb 4
    .elem_cnt        resb 4
    .elem_missed     resb 4
    .val             resb 0 ; None
endstruc
%define struc_btrfs_data_container_size 16


name: btrfs_ioctl_ino_path_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_ino_path_args
    .inum            resb 8
    .size            resb 8
    .reserved        resb 32 ; None
    .fspath          resb 8
endstruc
%define struc_btrfs_ioctl_ino_path_args_size 56


name: btrfs_ioctl_logical_ino_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_logical_ino_args
    .logical         resb 8
    .size            resb 8
    .reserved        resb 24 ; None
    .flags           resb 8
    .inodes          resb 8
endstruc
%define struc_btrfs_ioctl_logical_ino_args_size 56


name: btrfs_ioctl_get_dev_stats
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_get_dev_stats
    .devid           resb 8
    .nr_items        resb 8
    .flags           resb 8
    .values          resb 40 ; None
    .unused          resb 968 ; None
endstruc
%define struc_btrfs_ioctl_get_dev_stats_size 1032


name: btrfs_ioctl_quota_ctl_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_quota_ctl_args
    .cmd             resb 8
    .status          resb 8
endstruc
%define struc_btrfs_ioctl_quota_ctl_args_size 16


name: btrfs_ioctl_quota_rescan_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_quota_rescan_args
    .flags           resb 8
    .progress        resb 8
    .reserved        resb 48 ; None
endstruc
%define struc_btrfs_ioctl_quota_rescan_args_size 64


name: btrfs_ioctl_qgroup_assign_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_qgroup_assign_args
    .assign          resb 8
    .src             resb 8
    .dst             resb 8
endstruc
%define struc_btrfs_ioctl_qgroup_assign_args_size 24


name: btrfs_ioctl_qgroup_create_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_qgroup_create_args
    .create          resb 8
    .qgroupid        resb 8
endstruc
%define struc_btrfs_ioctl_qgroup_create_args_size 16


name: btrfs_ioctl_timespec
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_timespec
    .sec             resb 8
    .nsec            resb 4
endstruc
%define struc_btrfs_ioctl_timespec_size 16


name: btrfs_ioctl_received_subvol_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_received_subvol_args
    .uuid            resb 16 ; None
    .stransid        resb 8
    .rtransid        resb 8
    .stime           resb 16 ; struc btrfs_ioctl_timespec
    .rtime           resb 16 ; struc btrfs_ioctl_timespec
    .flags           resb 8
    .reserved        resb 128 ; None
endstruc
%define struc_btrfs_ioctl_received_subvol_args_size 200


name: btrfs_ioctl_send_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_send_args
    .send_fd         resb 8
    .clone_sources_c resb 8
    .clone_sources   resb 8
    .parent_root     resb 8
    .flags           resb 8
    .reserved        resb 32 ; None
endstruc
%define struc_btrfs_ioctl_send_args_size 72


name: btrfs_ioctl_get_subvol_info_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_get_subvol_info_args
    .treeid          resb 8
    .name            resb 256 ; None
    .parent_id       resb 8
    .dirid           resb 8
    .generation      resb 8
    .flags           resb 8
    .uuid            resb 16 ; None
    .parent_uuid     resb 16 ; None
    .received_uuid   resb 16 ; None
    .ctransid        resb 8
    .otransid        resb 8
    .stransid        resb 8
    .rtransid        resb 8
    .ctime           resb 16 ; struc btrfs_ioctl_timespec
    .otime           resb 16 ; struc btrfs_ioctl_timespec
    .stime           resb 16 ; struc btrfs_ioctl_timespec
    .rtime           resb 16 ; struc btrfs_ioctl_timespec
    .reserved        resb 64 ; None
endstruc
%define struc_btrfs_ioctl_get_subvol_info_args_size 504


name: btrfs_ioctl_get_subvol_rootref_args
include_file: /usr/include/linux/btrfs.h
nasm_code:
; from header /usr/include/linux/btrfs.h
struc btrfs_ioctl_get_subvol_rootref_args
    .min_treeid      resb 8
    .rootref         resb 4080 ; None
    .num_items       resb 1
    .align           resb 7 ; None
endstruc
%define struc_btrfs_ioctl_get_subvol_rootref_args_size 4096


name: atmmpc_ioc
include_file: /usr/include/linux/atmmpc.h
nasm_code:
; from header /usr/include/linux/atmmpc.h
struc atmmpc_ioc
    .dev_num         resb 4
    .ipaddr          resb 4
    .type            resb 4
endstruc
%define struc_atmmpc_ioc_size 12


name: in_ctrl_info
include_file: /usr/include/linux/atmmpc.h
nasm_code:
; from header /usr/include/linux/atmmpc.h
struc in_ctrl_info
    .Last_NHRP_CIE_c resb 1
    .Last_Q2931_caus resb 1
    .eg_MPC_ATM_addr resb 20 ; None
    .tag             resb 4
    .in_dst_ip       resb 4
    .holding_time    resb 2
    .request_id      resb 4
endstruc
%define struc_in_ctrl_info_size 40


name: eg_ctrl_info
include_file: /usr/include/linux/atmmpc.h
nasm_code:
; from header /usr/include/linux/atmmpc.h
struc eg_ctrl_info
    .DLL_header      resb 256 ; None
    .DH_length       resb 1
    .cache_id        resb 4
    .tag             resb 4
    .mps_ip          resb 4
    .eg_dst_ip       resb 4
    .in_MPC_data_ATM resb 20 ; None
    .holding_time    resb 2
endstruc
%define struc_eg_ctrl_info_size 300


name: mpc_parameters
include_file: /usr/include/linux/atmmpc.h
nasm_code:
; from header /usr/include/linux/atmmpc.h
struc mpc_parameters
    .mpc_p1          resb 2
    .mpc_p2          resb 2
    .mpc_p3          resb 8 ; None
    .mpc_p4          resb 2
    .mpc_p5          resb 2
    .mpc_p6          resb 2
endstruc
%define struc_mpc_parameters_size 18


name: k_message
include_file: /usr/include/linux/atmmpc.h
nasm_code:
; from header /usr/include/linux/atmmpc.h
struc k_message
    .type            resb 2
    .ip_mask         resb 4
    .MPS_ctrl        resb 20 ; None
    .content         resb 300 ; union None
    .qos             resb 84 ; struc atm_qos
endstruc
%define struc_k_message_size 412


name: llc_snap_hdr
include_file: /usr/include/linux/atmmpc.h
nasm_code:
; from header /usr/include/linux/atmmpc.h
struc llc_snap_hdr
    .dsap            resb 1
    .ssap            resb 1
    .ui              resb 1
    .org             resb 3 ; None
    .type            resb 2 ; None
endstruc
%define struc_llc_snap_hdr_size 8


name: __user_cap_header_struct
include_file: /usr/include/linux/capability.h
nasm_code:
; from header /usr/include/linux/capability.h
struc __user_cap_header_struct
    .version         resb 4
    .pid             resb 4
endstruc
%define struc___user_cap_header_struct_size 8


name: __user_cap_data_struct
include_file: /usr/include/linux/capability.h
nasm_code:
; from header /usr/include/linux/capability.h
struc __user_cap_data_struct
    .effective       resb 4
    .permitted       resb 4
    .inheritable     resb 4
endstruc
%define struc___user_cap_data_struct_size 12


name: vfs_cap_data
include_file: /usr/include/linux/capability.h
nasm_code:
; from header /usr/include/linux/capability.h
struc vfs_cap_data
    .magic_etc       resb 4
    .data            resb 16 ; None
endstruc
%define struc_vfs_cap_data_size 20


name: vfs_ns_cap_data
include_file: /usr/include/linux/capability.h
nasm_code:
; from header /usr/include/linux/capability.h
struc vfs_ns_cap_data
    .magic_etc       resb 4
    .data            resb 16 ; None
    .rootid          resb 4
endstruc
%define struc_vfs_ns_cap_data_size 24


name: sockaddr_rxrpc
include_file: /usr/include/linux/rxrpc.h
nasm_code:
; from header /usr/include/linux/rxrpc.h
struc sockaddr_rxrpc
    .srx_family      resb 2
    .srx_service     resb 2
    .transport_type  resb 2
    .transport_len   resb 2
    .transport       resb 28 ; union None
endstruc
%define struc_sockaddr_rxrpc_size 36


name: virtio_mem_req_plug
include_file: /usr/include/linux/virtio_mem.h
nasm_code:
; from header /usr/include/linux/virtio_mem.h
struc virtio_mem_req_plug
    .addr            resb 8
    .nb_blocks       resb 2
    .padding         resb 6 ; None
endstruc
%define struc_virtio_mem_req_plug_size 16


name: virtio_mem_req_unplug
include_file: /usr/include/linux/virtio_mem.h
nasm_code:
; from header /usr/include/linux/virtio_mem.h
struc virtio_mem_req_unplug
    .addr            resb 8
    .nb_blocks       resb 2
    .padding         resb 6 ; None
endstruc
%define struc_virtio_mem_req_unplug_size 16


name: virtio_mem_req_state
include_file: /usr/include/linux/virtio_mem.h
nasm_code:
; from header /usr/include/linux/virtio_mem.h
struc virtio_mem_req_state
    .addr            resb 8
    .nb_blocks       resb 2
    .padding         resb 6 ; None
endstruc
%define struc_virtio_mem_req_state_size 16


name: virtio_mem_req
include_file: /usr/include/linux/virtio_mem.h
nasm_code:
; from header /usr/include/linux/virtio_mem.h
struc virtio_mem_req
    .type            resb 2
    .padding         resb 6 ; None
    .u               resb 16 ; union None
endstruc
%define struc_virtio_mem_req_size 24


name: virtio_mem_resp_state
include_file: /usr/include/linux/virtio_mem.h
nasm_code:
; from header /usr/include/linux/virtio_mem.h
struc virtio_mem_resp_state
    .state           resb 2
endstruc
%define struc_virtio_mem_resp_state_size 2


name: virtio_mem_resp
include_file: /usr/include/linux/virtio_mem.h
nasm_code:
; from header /usr/include/linux/virtio_mem.h
struc virtio_mem_resp
    .type            resb 2
    .padding         resb 6 ; None
    .u               resb 2 ; union None
endstruc
%define struc_virtio_mem_resp_size 10


name: virtio_mem_config
include_file: /usr/include/linux/virtio_mem.h
nasm_code:
; from header /usr/include/linux/virtio_mem.h
struc virtio_mem_config
    .block_size      resb 8
    .node_id         resb 2
    .padding         resb 6 ; None
    .addr            resb 8
    .region_size     resb 8
    .usable_region_s resb 8
    .plugged_size    resb 8
    .requested_size  resb 8
endstruc
%define struc_virtio_mem_config_size 56


name: virtio_9p_config
include_file: /usr/include/linux/virtio_9p.h
nasm_code:
; from header /usr/include/linux/virtio_9p.h
struc virtio_9p_config
    .tag_len         resb 2
    .tag             resb 0 ; None
endstruc
%define struc_virtio_9p_config_size 2


name: ne_image_load_info
include_file: /usr/include/linux/nitro_enclaves.h
nasm_code:
; from header /usr/include/linux/nitro_enclaves.h
struc ne_image_load_info
    .flags           resb 8
    .memory_offset   resb 8
endstruc
%define struc_ne_image_load_info_size 16


name: ne_user_memory_region
include_file: /usr/include/linux/nitro_enclaves.h
nasm_code:
; from header /usr/include/linux/nitro_enclaves.h
struc ne_user_memory_region
    .flags           resb 8
    .memory_size     resb 8
    .userspace_addr  resb 8
endstruc
%define struc_ne_user_memory_region_size 24


name: ne_enclave_start_info
include_file: /usr/include/linux/nitro_enclaves.h
nasm_code:
; from header /usr/include/linux/nitro_enclaves.h
struc ne_enclave_start_info
    .flags           resb 8
    .enclave_cid     resb 8
endstruc
%define struc_ne_enclave_start_info_size 16


name: fs_disk_quota
include_file: /usr/include/linux/dqblk_xfs.h
nasm_code:
; from header /usr/include/linux/dqblk_xfs.h
struc fs_disk_quota
    .d_version       resb 1
    .d_flags         resb 1
    .d_fieldmask     resb 2
    .d_id            resb 4
    .d_blk_hardlimit resb 8
    .d_blk_softlimit resb 8
    .d_ino_hardlimit resb 8
    .d_ino_softlimit resb 8
    .d_bcount        resb 8
    .d_icount        resb 8
    .d_itimer        resb 4
    .d_btimer        resb 4
    .d_iwarns        resb 2
    .d_bwarns        resb 2
    .d_itimer_hi     resb 1
    .d_btimer_hi     resb 1
    .d_rtbtimer_hi   resb 1
    .d_padding2      resb 1
    .d_rtb_hardlimit resb 8
    .d_rtb_softlimit resb 8
    .d_rtbcount      resb 8
    .d_rtbtimer      resb 4
    .d_rtbwarns      resb 2
    .d_padding3      resb 2
    .d_padding4      resb 8 ; None
endstruc
%define struc_fs_disk_quota_size 112


name: fs_qfilestat
include_file: /usr/include/linux/dqblk_xfs.h
nasm_code:
; from header /usr/include/linux/dqblk_xfs.h
struc fs_qfilestat
    .qfs_ino         resb 8
    .qfs_nblks       resb 8
    .qfs_nextents    resb 4
endstruc
%define struc_fs_qfilestat_size 24


name: fs_quota_stat
include_file: /usr/include/linux/dqblk_xfs.h
nasm_code:
; from header /usr/include/linux/dqblk_xfs.h
struc fs_quota_stat
    .qs_version      resb 1
    .qs_flags        resb 2
    .qs_pad          resb 1
    .qs_uquota       resb 24 ; fs_qfilestat_t
    .qs_gquota       resb 24 ; fs_qfilestat_t
    .qs_incoredqs    resb 4
    .qs_btimelimit   resb 4
    .qs_itimelimit   resb 4
    .qs_rtbtimelimit resb 4
    .qs_bwarnlimit   resb 2
    .qs_iwarnlimit   resb 2
endstruc
%define struc_fs_quota_stat_size 80


name: fs_qfilestatv
include_file: /usr/include/linux/dqblk_xfs.h
nasm_code:
; from header /usr/include/linux/dqblk_xfs.h
struc fs_qfilestatv
    .qfs_ino         resb 8
    .qfs_nblks       resb 8
    .qfs_nextents    resb 4
    .qfs_pad         resb 4
endstruc
%define struc_fs_qfilestatv_size 24


name: fs_quota_statv
include_file: /usr/include/linux/dqblk_xfs.h
nasm_code:
; from header /usr/include/linux/dqblk_xfs.h
struc fs_quota_statv
    .qs_version      resb 1
    .qs_pad1         resb 1
    .qs_flags        resb 2
    .qs_incoredqs    resb 4
    .qs_uquota       resb 24 ; struc fs_qfilestatv
    .qs_gquota       resb 24 ; struc fs_qfilestatv
    .qs_pquota       resb 24 ; struc fs_qfilestatv
    .qs_btimelimit   resb 4
    .qs_itimelimit   resb 4
    .qs_rtbtimelimit resb 4
    .qs_bwarnlimit   resb 2
    .qs_iwarnlimit   resb 2
    .qs_pad2         resb 64 ; None
endstruc
%define struc_fs_quota_statv_size 160


name: pppoe_addr
include_file: /usr/include/linux/if_pppox.h
nasm_code:
; from header /usr/include/linux/if_pppox.h
struc pppoe_addr
    .sid             resb 2
    .remote          resb 6 ; None
    .dev             resb 16 ; None
endstruc
%define struc_pppoe_addr_size 24


name: pptp_addr
include_file: /usr/include/linux/if_pppox.h
nasm_code:
; from header /usr/include/linux/if_pppox.h
struc pptp_addr
    .call_id         resb 2
    .sin_addr        resb 4 ; struc in_addr
endstruc
%define struc_pptp_addr_size 8


name: sockaddr_pppox
include_file: /usr/include/linux/if_pppox.h
nasm_code:
; from header /usr/include/linux/if_pppox.h
struc sockaddr_pppox
    .sa_family       resb 2
    .sa_protocol     resb 4
    .sa_addr         resb 24 ; union None
endstruc
%define struc_sockaddr_pppox_size 30


name: sockaddr_pppol2tp
include_file: /usr/include/linux/if_pppox.h
nasm_code:
; from header /usr/include/linux/if_pppox.h
struc sockaddr_pppol2tp
    .sa_family       resb 2
    .sa_protocol     resb 4
    .pppol2tp        resb 32 ; struc pppol2tp_addr
endstruc
%define struc_sockaddr_pppol2tp_size 38


name: sockaddr_pppol2tpin6
include_file: /usr/include/linux/if_pppox.h
nasm_code:
; from header /usr/include/linux/if_pppox.h
struc sockaddr_pppol2tpin6
    .sa_family       resb 2
    .sa_protocol     resb 4
    .pppol2tp        resb 44 ; struc pppol2tpin6_addr
endstruc
%define struc_sockaddr_pppol2tpin6_size 50


name: sockaddr_pppol2tpv3
include_file: /usr/include/linux/if_pppox.h
nasm_code:
; from header /usr/include/linux/if_pppox.h
struc sockaddr_pppol2tpv3
    .sa_family       resb 2
    .sa_protocol     resb 4
    .pppol2tp        resb 40 ; struc pppol2tpv3_addr
endstruc
%define struc_sockaddr_pppol2tpv3_size 46


name: sockaddr_pppol2tpv3in6
include_file: /usr/include/linux/if_pppox.h
nasm_code:
; from header /usr/include/linux/if_pppox.h
struc sockaddr_pppol2tpv3in6
    .sa_family       resb 2
    .sa_protocol     resb 4
    .pppol2tp        resb 52 ; struc pppol2tpv3in6_addr
endstruc
%define struc_sockaddr_pppol2tpv3in6_size 58


name: pppoe_tag
include_file: /usr/include/linux/if_pppox.h
nasm_code:
; from header /usr/include/linux/if_pppox.h
struc pppoe_tag
    .tag_type        resb 2
    .tag_len         resb 2
    .tag_data        resb 0 ; None
endstruc
%define struc_pppoe_tag_size 4


name: pppoe_hdr
include_file: /usr/include/linux/if_pppox.h
nasm_code:
; from header /usr/include/linux/if_pppox.h
struc pppoe_hdr
    .type            resb 1
    .ver             resb 1
    .code            resb 1
    .sid             resb 2
    .length          resb 2
    .tag             resb 0 ; None
endstruc
%define struc_pppoe_hdr_size 6


name: pppol2tp_addr
include_file: /usr/include/linux/if_pppol2tp.h
nasm_code:
; from header /usr/include/linux/if_pppol2tp.h
struc pppol2tp_addr
    .pid             resb 4
    .fd              resb 4
    .addr            resb 16 ; struc sockaddr_in
    .s_tunnel        resb 2
    .s_session       resb 2
    .d_tunnel        resb 2
    .d_session       resb 2
endstruc
%define struc_pppol2tp_addr_size 32


name: pppol2tpin6_addr
include_file: /usr/include/linux/if_pppol2tp.h
nasm_code:
; from header /usr/include/linux/if_pppol2tp.h
struc pppol2tpin6_addr
    .pid             resb 4
    .fd              resb 4
    .s_tunnel        resb 2
    .s_session       resb 2
    .d_tunnel        resb 2
    .d_session       resb 2
    .addr            resb 28 ; struc sockaddr_in6
endstruc
%define struc_pppol2tpin6_addr_size 44


name: pppol2tpv3_addr
include_file: /usr/include/linux/if_pppol2tp.h
nasm_code:
; from header /usr/include/linux/if_pppol2tp.h
struc pppol2tpv3_addr
    .pid             resb 4
    .fd              resb 4
    .addr            resb 16 ; struc sockaddr_in
    .s_tunnel        resb 4
    .s_session       resb 4
    .d_tunnel        resb 4
    .d_session       resb 4
endstruc
%define struc_pppol2tpv3_addr_size 40


name: pppol2tpv3in6_addr
include_file: /usr/include/linux/if_pppol2tp.h
nasm_code:
; from header /usr/include/linux/if_pppol2tp.h
struc pppol2tpv3in6_addr
    .pid             resb 4
    .fd              resb 4
    .s_tunnel        resb 4
    .s_session       resb 4
    .d_tunnel        resb 4
    .d_session       resb 4
    .addr            resb 28 ; struc sockaddr_in6
endstruc
%define struc_pppol2tpv3in6_addr_size 52


name: bpq_ethaddr
include_file: /usr/include/linux/bpqether.h
nasm_code:
; from header /usr/include/linux/bpqether.h
struc bpq_ethaddr
    .destination     resb 6 ; None
    .accept          resb 6 ; None
endstruc
%define struc_bpq_ethaddr_size 12


name: bpq_req
include_file: /usr/include/linux/bpqether.h
nasm_code:
; from header /usr/include/linux/bpqether.h
struc bpq_req
    .cmd             resb 4
    .speed           resb 4
    .clockmode       resb 4
    .txdelay         resb 4
    .persist         resb 1
    .slotime         resb 4
    .squeldelay      resb 4
    .dmachan         resb 4
    .irq             resb 4
endstruc
%define struc_bpq_req_size 36


name: unix_diag_req
include_file: /usr/include/linux/unix_diag.h
nasm_code:
; from header /usr/include/linux/unix_diag.h
struc unix_diag_req
    .sdiag_family    resb 1
    .sdiag_protocol  resb 1
    .pad             resb 2
    .udiag_states    resb 4
    .udiag_ino       resb 4
    .udiag_show      resb 4
    .udiag_cookie    resb 8 ; None
endstruc
%define struc_unix_diag_req_size 24


name: unix_diag_msg
include_file: /usr/include/linux/unix_diag.h
nasm_code:
; from header /usr/include/linux/unix_diag.h
struc unix_diag_msg
    .udiag_family    resb 1
    .udiag_type      resb 1
    .udiag_state     resb 1
    .pad             resb 1
    .udiag_ino       resb 4
    .udiag_cookie    resb 8 ; None
endstruc
%define struc_unix_diag_msg_size 16


name: unix_diag_vfs
include_file: /usr/include/linux/unix_diag.h
nasm_code:
; from header /usr/include/linux/unix_diag.h
struc unix_diag_vfs
    .udiag_vfs_ino   resb 4
    .udiag_vfs_dev   resb 4
endstruc
%define struc_unix_diag_vfs_size 8


name: unix_diag_rqlen
include_file: /usr/include/linux/unix_diag.h
nasm_code:
; from header /usr/include/linux/unix_diag.h
struc unix_diag_rqlen
    .udiag_rqueue    resb 4
    .udiag_wqueue    resb 4
endstruc
%define struc_unix_diag_rqlen_size 8


name: seq_event_rec
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc seq_event_rec
    .arr             resb 8 ; None
endstruc
%define struc_seq_event_rec_size 8


name: patch_info
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc patch_info
    .key             resb 2
    .device_no       resb 2
    .instr_no        resb 2
    .mode            resb 4
    .len             resb 4
    .loop_start      resb 4
    .loop_end        resb 4
    .base_freq       resb 4
    .base_note       resb 4
    .high_note       resb 4
    .low_note        resb 4
    .panning         resb 4
    .detuning        resb 4
    .env_rate        resb 6 ; None
    .env_offset      resb 6 ; None
    .tremolo_sweep   resb 1
    .tremolo_rate    resb 1
    .tremolo_depth   resb 1
    .vibrato_sweep   resb 1
    .vibrato_rate    resb 1
    .vibrato_depth   resb 1
    .scale_frequency resb 4
    .scale_factor    resb 4
    .volume          resb 4
    .fractions       resb 4
    .reserved1       resb 4
    .spare           resb 8 ; None
    .data            resb 1 ; None
endstruc
%define struc_patch_info_size 100


name: sysex_info
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc sysex_info
    .key             resb 2
    .device_no       resb 2
    .len             resb 4
    .data            resb 1 ; None
endstruc
%define struc_sysex_info_size 12


name: sbi_instrument
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc sbi_instrument
    .key             resb 2
    .device          resb 2
    .channel         resb 4
    .operators       resb 32 ; sbi_instr_data
endstruc
%define struc_sbi_instrument_size 40


name: synth_info
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc synth_info
    .name            resb 30 ; None
    .device          resb 4
    .synth_type      resb 4
    .synth_subtype   resb 4
    .perc_mode       resb 4
    .nr_voices       resb 4
    .nr_drums        resb 4
    .instr_bank_size resb 4
    .capabilities    resb 4
    .dummies         resb 76 ; None
endstruc
%define struc_synth_info_size 140


name: sound_timer_info
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc sound_timer_info
    .name            resb 32 ; None
    .caps            resb 4
endstruc
%define struc_sound_timer_info_size 36


name: midi_info
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc midi_info
    .name            resb 30 ; None
    .device          resb 4
    .capabilities    resb 4
    .dev_type        resb 4
    .dummies         resb 72 ; None
endstruc
%define struc_midi_info_size 116


name: audio_buf_info
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc audio_buf_info
    .fragments       resb 4
    .fragstotal      resb 4
    .fragsize        resb 4
    .bytes           resb 4
endstruc
%define struc_audio_buf_info_size 16


name: count_info
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc count_info
    .bytes           resb 4
    .blocks          resb 4
    .ptr             resb 4
endstruc
%define struc_count_info_size 12


name: buffmem_desc
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc buffmem_desc
    .buffer          resb 8
    .size            resb 4
endstruc
%define struc_buffmem_desc_size 16


name: copr_buffer
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc copr_buffer
    .command         resb 4
    .flags           resb 4
    .len             resb 4
    .offs            resb 4
    .data            resb 4000 ; None
endstruc
%define struc_copr_buffer_size 4016


name: copr_debug_buf
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc copr_debug_buf
    .command         resb 4
    .parm1           resb 4
    .parm2           resb 4
    .flags           resb 4
    .len             resb 4
endstruc
%define struc_copr_debug_buf_size 20


name: copr_msg
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc copr_msg
    .len             resb 4
    .data            resb 4000 ; None
endstruc
%define struc_copr_msg_size 4004


name: mixer_vol_table
include_file: /usr/include/linux/soundcard.h
nasm_code:
; from header /usr/include/linux/soundcard.h
struc mixer_vol_table
    .num             resb 4
    .name            resb 32 ; None
    .levels          resb 128 ; None
endstruc
%define struc_mixer_vol_table_size 164


name: matroxioc_output_mode
include_file: /usr/include/linux/matroxfb.h
nasm_code:
; from header /usr/include/linux/matroxfb.h
struc matroxioc_output_mode
    .output          resb 4
    .mode            resb 4
endstruc
%define struc_matroxioc_output_mode_size 8


name: hwtstamp_config
include_file: /usr/include/linux/net_tstamp.h
nasm_code:
; from header /usr/include/linux/net_tstamp.h
struc hwtstamp_config
    .flags           resb 4
    .tx_type         resb 4
    .rx_filter       resb 4
endstruc
%define struc_hwtstamp_config_size 12


name: scm_ts_pktinfo
include_file: /usr/include/linux/net_tstamp.h
nasm_code:
; from header /usr/include/linux/net_tstamp.h
struc scm_ts_pktinfo
    .if_index        resb 4
    .pkt_length      resb 4
    .reserved        resb 8 ; None
endstruc
%define struc_scm_ts_pktinfo_size 16


name: sock_txtime
include_file: /usr/include/linux/net_tstamp.h
nasm_code:
; from header /usr/include/linux/net_tstamp.h
struc sock_txtime
    .clockid         resb 4
    .flags           resb 4
endstruc
%define struc_sock_txtime_size 8


name: screen_info
include_file: /usr/include/linux/screen_info.h
nasm_code:
; from header /usr/include/linux/screen_info.h
struc screen_info
    .orig_x          resb 1
    .orig_y          resb 1
    .ext_mem_k       resb 2
    .orig_video_page resb 2
    .orig_video_mode resb 1
    .orig_video_cols resb 1
    .flags           resb 1
    .unused2         resb 1
    .orig_video_ega_ resb 2
    .unused3         resb 2
    .orig_video_line resb 1
    .orig_video_isVG resb 1
    .orig_video_poin resb 2
    .lfb_width       resb 2
    .lfb_height      resb 2
    .lfb_depth       resb 2
    .lfb_base        resb 4
    .lfb_size        resb 4
    .cl_magic        resb 2
    .cl_offset       resb 2
    .lfb_linelength  resb 2
    .red_size        resb 1
    .red_pos         resb 1
    .green_size      resb 1
    .green_pos       resb 1
    .blue_size       resb 1
    .blue_pos        resb 1
    .rsvd_size       resb 1
    .rsvd_pos        resb 1
    .vesapm_seg      resb 2
    .vesapm_off      resb 2
    .pages           resb 2
    .vesa_attributes resb 2
    .capabilities    resb 4
    .ext_lfb_base    resb 4
    ._reserved       resb 2 ; None
endstruc
%define struc_screen_info_size 64


name: pps_ktime
include_file: /usr/include/linux/pps.h
nasm_code:
; from header /usr/include/linux/pps.h
struc pps_ktime
    .sec             resb 8
    .nsec            resb 4
    .flags           resb 4
endstruc
%define struc_pps_ktime_size 16


name: pps_ktime_compat
include_file: /usr/include/linux/pps.h
nasm_code:
; from header /usr/include/linux/pps.h
struc pps_ktime_compat
    .sec             resb 8
    .nsec            resb 4
    .flags           resb 4
endstruc
%define struc_pps_ktime_compat_size 16


name: pps_kinfo
include_file: /usr/include/linux/pps.h
nasm_code:
; from header /usr/include/linux/pps.h
struc pps_kinfo
    .assert_sequence resb 4
    .clear_sequence  resb 4
    .assert_tu       resb 16 ; struc pps_ktime
    .clear_tu        resb 16 ; struc pps_ktime
    .current_mode    resb 4
endstruc
%define struc_pps_kinfo_size 48


name: pps_kinfo_compat
include_file: /usr/include/linux/pps.h
nasm_code:
; from header /usr/include/linux/pps.h
struc pps_kinfo_compat
    .assert_sequence resb 4
    .clear_sequence  resb 4
    .assert_tu       resb 16 ; struc pps_ktime_compat
    .clear_tu        resb 16 ; struc pps_ktime_compat
    .current_mode    resb 4
endstruc
%define struc_pps_kinfo_compat_size 44


name: pps_kparams
include_file: /usr/include/linux/pps.h
nasm_code:
; from header /usr/include/linux/pps.h
struc pps_kparams
    .api_version     resb 4
    .mode            resb 4
    .assert_off_tu   resb 16 ; struc pps_ktime
    .clear_off_tu    resb 16 ; struc pps_ktime
endstruc
%define struc_pps_kparams_size 40


name: pps_fdata
include_file: /usr/include/linux/pps.h
nasm_code:
; from header /usr/include/linux/pps.h
struc pps_fdata
    .info            resb 48 ; struc pps_kinfo
    .timeout         resb 16 ; struc pps_ktime
endstruc
%define struc_pps_fdata_size 64


name: pps_fdata_compat
include_file: /usr/include/linux/pps.h
nasm_code:
; from header /usr/include/linux/pps.h
struc pps_fdata_compat
    .info            resb 44 ; struc pps_kinfo_compat
    .timeout         resb 16 ; struc pps_ktime_compat
endstruc
%define struc_pps_fdata_compat_size 60


name: pps_bind_args
include_file: /usr/include/linux/pps.h
nasm_code:
; from header /usr/include/linux/pps.h
struc pps_bind_args
    .tsformat        resb 4
    .edge            resb 4
    .consumer        resb 4
endstruc
%define struc_pps_bind_args_size 12


name: rio_mport_maint_io
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_mport_maint_io
    .rioid           resb 2
    .hopcount        resb 1
    .pad0            resb 5 ; None
    .offset          resb 4
    .length          resb 4
    .buffer          resb 8
endstruc
%define struc_rio_mport_maint_io_size 24


name: rio_mport_properties
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_mport_properties
    .hdid            resb 2
    .id              resb 1
    .index           resb 1
    .flags           resb 4
    .sys_size        resb 4
    .port_ok         resb 1
    .link_speed      resb 1
    .link_width      resb 1
    .pad0            resb 1
    .dma_max_sge     resb 4
    .dma_max_size    resb 4
    .dma_align       resb 4
    .transfer_mode   resb 4
    .cap_sys_size    resb 4
    .cap_addr_size   resb 4
    .cap_transfer_mo resb 4
    .cap_mport       resb 4
endstruc
%define struc_rio_mport_properties_size 48


name: rio_doorbell
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_doorbell
    .rioid           resb 2
    .payload         resb 2
endstruc
%define struc_rio_doorbell_size 4


name: rio_doorbell_filter
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_doorbell_filter
    .rioid           resb 2
    .low             resb 2
    .high            resb 2
    .pad0            resb 2
endstruc
%define struc_rio_doorbell_filter_size 8


name: rio_portwrite
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_portwrite
    .payload         resb 64 ; None
endstruc
%define struc_rio_portwrite_size 64


name: rio_pw_filter
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_pw_filter
    .mask            resb 4
    .low             resb 4
    .high            resb 4
    .pad0            resb 4
endstruc
%define struc_rio_pw_filter_size 16


name: rio_mmap
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_mmap
    .rioid           resb 2
    .pad0            resb 6 ; None
    .rio_addr        resb 8
    .length          resb 8
    .handle          resb 8
    .address         resb 8
endstruc
%define struc_rio_mmap_size 40


name: rio_dma_mem
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_dma_mem
    .length          resb 8
    .dma_handle      resb 8
    .address         resb 8
endstruc
%define struc_rio_dma_mem_size 24


name: rio_event
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_event
    .header          resb 4
    .u               resb 64 ; union None
    .pad0            resb 4
endstruc
%define struc_rio_event_size 72


name: rio_transfer_io
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_transfer_io
    .rio_addr        resb 8
    .loc_addr        resb 8
    .handle          resb 8
    .offset          resb 8
    .length          resb 8
    .rioid           resb 2
    .method          resb 2
    .completion_code resb 4
endstruc
%define struc_rio_transfer_io_size 48


name: rio_transaction
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_transaction
    .block           resb 8
    .count           resb 4
    .transfer_mode   resb 4
    .sync            resb 2
    .dir             resb 2
    .pad0            resb 4
endstruc
%define struc_rio_transaction_size 24


name: rio_async_tx_wait
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_async_tx_wait
    .token           resb 4
    .timeout         resb 4
endstruc
%define struc_rio_async_tx_wait_size 8


name: rio_rdev_info
include_file: /usr/include/linux/rio_mport_cdev.h
nasm_code:
; from header /usr/include/linux/rio_mport_cdev.h
struc rio_rdev_info
    .destid          resb 2
    .hopcount        resb 1
    .pad0            resb 1
    .comptag         resb 4
    .name            resb 21 ; None
endstruc
%define struc_rio_rdev_info_size 32


name: dlm_lock_params
include_file: /usr/include/linux/dlm_device.h
nasm_code:
; from header /usr/include/linux/dlm_device.h
struc dlm_lock_params
    .mode            resb 1
    .namelen         resb 1
    .unused          resb 2
    .flags           resb 4
    .lkid            resb 4
    .parent          resb 4
    .xid             resb 8
    .timeout         resb 8
    .castparam       resb 8
    .castaddr        resb 8
    .bastparam       resb 8
    .bastaddr        resb 8
    .lksb            resb 8
    .lvb             resb 32 ; None
    .name            resb 0 ; None
endstruc
%define struc_dlm_lock_params_size 104


name: dlm_lspace_params
include_file: /usr/include/linux/dlm_device.h
nasm_code:
; from header /usr/include/linux/dlm_device.h
struc dlm_lspace_params
    .flags           resb 4
    .minor           resb 4
    .name            resb 0 ; None
endstruc
%define struc_dlm_lspace_params_size 8


name: dlm_purge_params
include_file: /usr/include/linux/dlm_device.h
nasm_code:
; from header /usr/include/linux/dlm_device.h
struc dlm_purge_params
    .nodeid          resb 4
    .pid             resb 4
endstruc
%define struc_dlm_purge_params_size 8


name: dlm_write_request
include_file: /usr/include/linux/dlm_device.h
nasm_code:
; from header /usr/include/linux/dlm_device.h
struc dlm_write_request
    .version         resb 12 ; None
    .cmd             resb 1
    .is64bit         resb 1
    .unused          resb 2 ; None
    .i               resb 104 ; union None
endstruc
%define struc_dlm_write_request_size 120


name: dlm_device_version
include_file: /usr/include/linux/dlm_device.h
nasm_code:
; from header /usr/include/linux/dlm_device.h
struc dlm_device_version
    .version         resb 12 ; None
endstruc
%define struc_dlm_device_version_size 12


name: dlm_lock_result
include_file: /usr/include/linux/dlm_device.h
nasm_code:
; from header /usr/include/linux/dlm_device.h
struc dlm_lock_result
    .version         resb 12 ; None
    .length          resb 4
    .user_astaddr    resb 8
    .user_astparam   resb 8
    .user_lksb       resb 8
    .lksb            resb 24 ; struc dlm_lksb
    .bast_mode       resb 1
    .unused          resb 3 ; None
    .lvb_offset      resb 4
endstruc
%define struc_dlm_lock_result_size 72


name: atm_backend_ppp
include_file: /usr/include/linux/atmppp.h
nasm_code:
; from header /usr/include/linux/atmppp.h
struc atm_backend_ppp
    .backend_num     resb 2
    .encaps          resb 4
endstruc
%define struc_atm_backend_ppp_size 8


name: nfs_string
include_file: /usr/include/linux/nfs4_mount.h
nasm_code:
; from header /usr/include/linux/nfs4_mount.h
struc nfs_string
    .len             resb 4
    .data            resb 8
endstruc
%define struc_nfs_string_size 16


name: nfs4_mount_data
include_file: /usr/include/linux/nfs4_mount.h
nasm_code:
; from header /usr/include/linux/nfs4_mount.h
struc nfs4_mount_data
    .version         resb 4
    .flags           resb 4
    .rsize           resb 4
    .wsize           resb 4
    .timeo           resb 4
    .retrans         resb 4
    .acregmin        resb 4
    .acregmax        resb 4
    .acdirmin        resb 4
    .acdirmax        resb 4
    .client_addr     resb 16 ; struc nfs_string
    .mnt_path        resb 16 ; struc nfs_string
    .hostname        resb 16 ; struc nfs_string
    .host_addrlen    resb 4
    .host_addr       resb 8
    .proto           resb 4
    .auth_flavourlen resb 4
    .auth_flavours   resb 8
endstruc
%define struc_nfs4_mount_data_size 120


name: crypto_user_alg
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_user_alg
    .cru_name        resb 64 ; None
    .cru_driver_name resb 64 ; None
    .cru_module_name resb 64 ; None
    .cru_type        resb 4
    .cru_mask        resb 4
    .cru_refcnt      resb 4
    .cru_flags       resb 4
endstruc
%define struc_crypto_user_alg_size 208


name: crypto_stat_aead
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_stat_aead
    .type            resb 64 ; None
    .stat_encrypt_cn resb 8
    .stat_encrypt_tl resb 8
    .stat_decrypt_cn resb 8
    .stat_decrypt_tl resb 8
    .stat_err_cnt    resb 8
endstruc
%define struc_crypto_stat_aead_size 104


name: crypto_stat_akcipher
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_stat_akcipher
    .type            resb 64 ; None
    .stat_encrypt_cn resb 8
    .stat_encrypt_tl resb 8
    .stat_decrypt_cn resb 8
    .stat_decrypt_tl resb 8
    .stat_verify_cnt resb 8
    .stat_sign_cnt   resb 8
    .stat_err_cnt    resb 8
endstruc
%define struc_crypto_stat_akcipher_size 120


name: crypto_stat_cipher
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_stat_cipher
    .type            resb 64 ; None
    .stat_encrypt_cn resb 8
    .stat_encrypt_tl resb 8
    .stat_decrypt_cn resb 8
    .stat_decrypt_tl resb 8
    .stat_err_cnt    resb 8
endstruc
%define struc_crypto_stat_cipher_size 104


name: crypto_stat_compress
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_stat_compress
    .type            resb 64 ; None
    .stat_compress_c resb 8
    .stat_compress_t resb 8
    .stat_decompress resb 8
    .stat_decompress resb 8
    .stat_err_cnt    resb 8
endstruc
%define struc_crypto_stat_compress_size 104


name: crypto_stat_hash
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_stat_hash
    .type            resb 64 ; None
    .stat_hash_cnt   resb 8
    .stat_hash_tlen  resb 8
    .stat_err_cnt    resb 8
endstruc
%define struc_crypto_stat_hash_size 88


name: crypto_stat_kpp
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_stat_kpp
    .type            resb 64 ; None
    .stat_setsecret_ resb 8
    .stat_generate_p resb 8
    .stat_compute_sh resb 8
    .stat_err_cnt    resb 8
endstruc
%define struc_crypto_stat_kpp_size 96


name: crypto_stat_rng
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_stat_rng
    .type            resb 64 ; None
    .stat_generate_c resb 8
    .stat_generate_t resb 8
    .stat_seed_cnt   resb 8
    .stat_err_cnt    resb 8
endstruc
%define struc_crypto_stat_rng_size 96


name: crypto_stat_larval
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_stat_larval
    .type            resb 64 ; None
endstruc
%define struc_crypto_stat_larval_size 64


name: crypto_report_larval
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_report_larval
    .type            resb 64 ; None
endstruc
%define struc_crypto_report_larval_size 64


name: crypto_report_hash
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_report_hash
    .type            resb 64 ; None
    .blocksize       resb 4
    .digestsize      resb 4
endstruc
%define struc_crypto_report_hash_size 72


name: crypto_report_cipher
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_report_cipher
    .type            resb 64 ; None
    .blocksize       resb 4
    .min_keysize     resb 4
    .max_keysize     resb 4
endstruc
%define struc_crypto_report_cipher_size 76


name: crypto_report_blkcipher
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_report_blkcipher
    .type            resb 64 ; None
    .geniv           resb 64 ; None
    .blocksize       resb 4
    .min_keysize     resb 4
    .max_keysize     resb 4
    .ivsize          resb 4
endstruc
%define struc_crypto_report_blkcipher_size 144


name: crypto_report_aead
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_report_aead
    .type            resb 64 ; None
    .geniv           resb 64 ; None
    .blocksize       resb 4
    .maxauthsize     resb 4
    .ivsize          resb 4
endstruc
%define struc_crypto_report_aead_size 140


name: crypto_report_comp
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_report_comp
    .type            resb 64 ; None
endstruc
%define struc_crypto_report_comp_size 64


name: crypto_report_rng
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_report_rng
    .type            resb 64 ; None
    .seedsize        resb 4
endstruc
%define struc_crypto_report_rng_size 68


name: crypto_report_akcipher
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_report_akcipher
    .type            resb 64 ; None
endstruc
%define struc_crypto_report_akcipher_size 64


name: crypto_report_kpp
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_report_kpp
    .type            resb 64 ; None
endstruc
%define struc_crypto_report_kpp_size 64


name: crypto_report_acomp
include_file: /usr/include/linux/cryptouser.h
nasm_code:
; from header /usr/include/linux/cryptouser.h
struc crypto_report_acomp
    .type            resb 64 ; None
endstruc
%define struc_crypto_report_acomp_size 64


name: ptrace_peeksiginfo_args
include_file: /usr/include/linux/ptrace.h
nasm_code:
; from header /usr/include/linux/ptrace.h
struc ptrace_peeksiginfo_args
    .off             resb 8
    .flags           resb 4
    .nr              resb 4
endstruc
%define struc_ptrace_peeksiginfo_args_size 16


name: seccomp_metadata
include_file: /usr/include/linux/ptrace.h
nasm_code:
; from header /usr/include/linux/ptrace.h
struc seccomp_metadata
    .filter_off      resb 8
    .flags           resb 8
endstruc
%define struc_seccomp_metadata_size 16


name: iommu_fault_unrecoverable
include_file: /usr/include/linux/iommu.h
nasm_code:
; from header /usr/include/linux/iommu.h
struc iommu_fault_unrecoverable
    .reason          resb 4
    .flags           resb 4
    .pasid           resb 4
    .perm            resb 4
    .addr            resb 8
    .fetch_addr      resb 8
endstruc
%define struc_iommu_fault_unrecoverable_size 32


name: iommu_fault_page_request
include_file: /usr/include/linux/iommu.h
nasm_code:
; from header /usr/include/linux/iommu.h
struc iommu_fault_page_request
    .flags           resb 4
    .pasid           resb 4
    .grpid           resb 4
    .perm            resb 4
    .addr            resb 8
    .private_data    resb 16 ; None
endstruc
%define struc_iommu_fault_page_request_size 40


name: iommu_page_response
include_file: /usr/include/linux/iommu.h
nasm_code:
; from header /usr/include/linux/iommu.h
struc iommu_page_response
    .argsz           resb 4
    .version         resb 4
    .flags           resb 4
    .pasid           resb 4
    .grpid           resb 4
    .code            resb 4
endstruc
%define struc_iommu_page_response_size 24


name: iommu_inv_addr_info
include_file: /usr/include/linux/iommu.h
nasm_code:
; from header /usr/include/linux/iommu.h
struc iommu_inv_addr_info
    .flags           resb 4
    .archid          resb 4
    .pasid           resb 8
    .addr            resb 8
    .granule_size    resb 8
    .nb_granules     resb 8
endstruc
%define struc_iommu_inv_addr_info_size 40


name: iommu_inv_pasid_info
include_file: /usr/include/linux/iommu.h
nasm_code:
; from header /usr/include/linux/iommu.h
struc iommu_inv_pasid_info
    .flags           resb 4
    .archid          resb 4
    .pasid           resb 8
endstruc
%define struc_iommu_inv_pasid_info_size 16


name: iommu_cache_invalidate_info
include_file: /usr/include/linux/iommu.h
nasm_code:
; from header /usr/include/linux/iommu.h
struc iommu_cache_invalidate_info
    .argsz           resb 4
    .version         resb 4
    .cache           resb 1
    .granularity     resb 1
    .padding         resb 6 ; None
    .granu           resb 40 ; union None
endstruc
%define struc_iommu_cache_invalidate_info_size 56


name: iommu_gpasid_bind_data_vtd
include_file: /usr/include/linux/iommu.h
nasm_code:
; from header /usr/include/linux/iommu.h
struc iommu_gpasid_bind_data_vtd
    .flags           resb 8
    .pat             resb 4
    .emt             resb 4
endstruc
%define struc_iommu_gpasid_bind_data_vtd_size 16


name: iommu_gpasid_bind_data
include_file: /usr/include/linux/iommu.h
nasm_code:
; from header /usr/include/linux/iommu.h
struc iommu_gpasid_bind_data
    .argsz           resb 4
    .version         resb 4
    .format          resb 4
    .addr_width      resb 4
    .flags           resb 8
    .gpgd            resb 8
    .hpasid          resb 8
    .gpasid          resb 8
    .padding         resb 8 ; None
    .vendor          resb 16 ; union None
endstruc
%define struc_iommu_gpasid_bind_data_size 72


name: virtio_iommu_range_64
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_range_64
    .start           resb 8
    .end             resb 8
endstruc
%define struc_virtio_iommu_range_64_size 16


name: virtio_iommu_range_32
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_range_32
    .start           resb 4
    .end             resb 4
endstruc
%define struc_virtio_iommu_range_32_size 8


name: virtio_iommu_config
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_config
    .page_size_mask  resb 8
    .input_range     resb 16 ; struc virtio_iommu_range_64
    .domain_range    resb 8 ; struc virtio_iommu_range_32
    .probe_size      resb 4
endstruc
%define struc_virtio_iommu_config_size 40


name: virtio_iommu_req_head
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_req_head
    .type            resb 1
    .reserved        resb 3 ; None
endstruc
%define struc_virtio_iommu_req_head_size 4


name: virtio_iommu_req_tail
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_req_tail
    .status          resb 1
    .reserved        resb 3 ; None
endstruc
%define struc_virtio_iommu_req_tail_size 4


name: virtio_iommu_req_attach
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_req_attach
    .head            resb 4 ; struc virtio_iommu_req_head
    .domain          resb 4
    .endpoint        resb 4
    .reserved        resb 8 ; None
    .tail            resb 4 ; struc virtio_iommu_req_tail
endstruc
%define struc_virtio_iommu_req_attach_size 24


name: virtio_iommu_req_detach
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_req_detach
    .head            resb 4 ; struc virtio_iommu_req_head
    .domain          resb 4
    .endpoint        resb 4
    .reserved        resb 8 ; None
    .tail            resb 4 ; struc virtio_iommu_req_tail
endstruc
%define struc_virtio_iommu_req_detach_size 24


name: virtio_iommu_req_map
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_req_map
    .head            resb 4 ; struc virtio_iommu_req_head
    .domain          resb 4
    .virt_start      resb 8
    .virt_end        resb 8
    .phys_start      resb 8
    .flags           resb 4
    .tail            resb 4 ; struc virtio_iommu_req_tail
endstruc
%define struc_virtio_iommu_req_map_size 40


name: virtio_iommu_req_unmap
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_req_unmap
    .head            resb 4 ; struc virtio_iommu_req_head
    .domain          resb 4
    .virt_start      resb 8
    .virt_end        resb 8
    .reserved        resb 4 ; None
    .tail            resb 4 ; struc virtio_iommu_req_tail
endstruc
%define struc_virtio_iommu_req_unmap_size 32


name: virtio_iommu_probe_property
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_probe_property
    .type            resb 2
    .length          resb 2
endstruc
%define struc_virtio_iommu_probe_property_size 4


name: virtio_iommu_probe_resv_mem
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_probe_resv_mem
    .head            resb 4 ; struc virtio_iommu_probe_property
    .subtype         resb 1
    .reserved        resb 3 ; None
    .start           resb 8
    .end             resb 8
endstruc
%define struc_virtio_iommu_probe_resv_mem_size 24


name: virtio_iommu_req_probe
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_req_probe
    .head            resb 4 ; struc virtio_iommu_req_head
    .endpoint        resb 4
    .reserved        resb 64 ; None
    .properties      resb 0 ; None
endstruc
%define struc_virtio_iommu_req_probe_size 72


name: virtio_iommu_fault
include_file: /usr/include/linux/virtio_iommu.h
nasm_code:
; from header /usr/include/linux/virtio_iommu.h
struc virtio_iommu_fault
    .reason          resb 1
    .reserved        resb 3 ; None
    .flags           resb 4
    .endpoint        resb 4
    .reserved2       resb 4 ; None
    .address         resb 8
endstruc
%define struc_virtio_iommu_fault_size 24


name: posix_acl_xattr_entry
include_file: /usr/include/linux/posix_acl_xattr.h
nasm_code:
; from header /usr/include/linux/posix_acl_xattr.h
struc posix_acl_xattr_entry
    .e_tag           resb 2
    .e_perm          resb 2
    .e_id            resb 4
endstruc
%define struc_posix_acl_xattr_entry_size 8


name: posix_acl_xattr_header
include_file: /usr/include/linux/posix_acl_xattr.h
nasm_code:
; from header /usr/include/linux/posix_acl_xattr.h
struc posix_acl_xattr_header
    .a_version       resb 4
endstruc
%define struc_posix_acl_xattr_header_size 4


name: scif_port_id
include_file: /usr/include/linux/scif_ioctl.h
nasm_code:
; from header /usr/include/linux/scif_ioctl.h
struc scif_port_id
    .node            resb 2
    .port            resb 2
endstruc
%define struc_scif_port_id_size 4


name: scifioctl_connect
include_file: /usr/include/linux/scif_ioctl.h
nasm_code:
; from header /usr/include/linux/scif_ioctl.h
struc scifioctl_connect
    .self            resb 4 ; struc scif_port_id
    .peer            resb 4 ; struc scif_port_id
endstruc
%define struc_scifioctl_connect_size 8


name: scifioctl_accept
include_file: /usr/include/linux/scif_ioctl.h
nasm_code:
; from header /usr/include/linux/scif_ioctl.h
struc scifioctl_accept
    .flags           resb 4
    .peer            resb 4 ; struc scif_port_id
    .endpt           resb 8
endstruc
%define struc_scifioctl_accept_size 16


name: scifioctl_msg
include_file: /usr/include/linux/scif_ioctl.h
nasm_code:
; from header /usr/include/linux/scif_ioctl.h
struc scifioctl_msg
    .msg             resb 8
    .len             resb 4
    .flags           resb 4
    .out_len         resb 4
endstruc
%define struc_scifioctl_msg_size 24


name: scifioctl_reg
include_file: /usr/include/linux/scif_ioctl.h
nasm_code:
; from header /usr/include/linux/scif_ioctl.h
struc scifioctl_reg
    .addr            resb 8
    .len             resb 8
    .offset          resb 8
    .prot            resb 4
    .flags           resb 4
    .out_offset      resb 8
endstruc
%define struc_scifioctl_reg_size 40


name: scifioctl_unreg
include_file: /usr/include/linux/scif_ioctl.h
nasm_code:
; from header /usr/include/linux/scif_ioctl.h
struc scifioctl_unreg
    .offset          resb 8
    .len             resb 8
endstruc
%define struc_scifioctl_unreg_size 16


name: scifioctl_copy
include_file: /usr/include/linux/scif_ioctl.h
nasm_code:
; from header /usr/include/linux/scif_ioctl.h
struc scifioctl_copy
    .loffset         resb 8
    .len             resb 8
    .roffset         resb 8
    .addr            resb 8
    .flags           resb 4
endstruc
%define struc_scifioctl_copy_size 40


name: scifioctl_fence_mark
include_file: /usr/include/linux/scif_ioctl.h
nasm_code:
; from header /usr/include/linux/scif_ioctl.h
struc scifioctl_fence_mark
    .flags           resb 4
    .mark            resb 8
endstruc
%define struc_scifioctl_fence_mark_size 16


name: scifioctl_fence_signal
include_file: /usr/include/linux/scif_ioctl.h
nasm_code:
; from header /usr/include/linux/scif_ioctl.h
struc scifioctl_fence_signal
    .loff            resb 8
    .lval            resb 8
    .roff            resb 8
    .rval            resb 8
    .flags           resb 4
endstruc
%define struc_scifioctl_fence_signal_size 40


name: scifioctl_node_ids
include_file: /usr/include/linux/scif_ioctl.h
nasm_code:
; from header /usr/include/linux/scif_ioctl.h
struc scifioctl_node_ids
    .nodes           resb 8
    .self            resb 8
    .len             resb 4
endstruc
%define struc_scifioctl_node_ids_size 24


name: netconfmsg
include_file: /usr/include/linux/netconf.h
nasm_code:
; from header /usr/include/linux/netconf.h
struc netconfmsg
    .ncm_family      resb 1
endstruc
%define struc_netconfmsg_size 1


name: atm_aal_stats
include_file: /usr/include/linux/atmdev.h
nasm_code:
; from header /usr/include/linux/atmdev.h
struc atm_aal_stats
    .tx              resb 4
    .tx_err          resb 4
    .rx              resb 4
    .rx_err          resb 4
    .rx_drop         resb 4
endstruc
%define struc_atm_aal_stats_size 20


name: atm_dev_stats
include_file: /usr/include/linux/atmdev.h
nasm_code:
; from header /usr/include/linux/atmdev.h
struc atm_dev_stats
    .aal0            resb 20 ; struc atm_aal_stats
    .aal34           resb 20 ; struc atm_aal_stats
    .aal5            resb 20 ; struc atm_aal_stats
endstruc
%define struc_atm_dev_stats_size 60


name: atm_iobuf
include_file: /usr/include/linux/atmdev.h
nasm_code:
; from header /usr/include/linux/atmdev.h
struc atm_iobuf
    .length          resb 4
    .buffer          resb 8
endstruc
%define struc_atm_iobuf_size 16


name: atm_cirange
include_file: /usr/include/linux/atmdev.h
nasm_code:
; from header /usr/include/linux/atmdev.h
struc atm_cirange
    .vpi_bits        resb 1
    .vci_bits        resb 1
endstruc
%define struc_atm_cirange_size 2


name: plipconf
include_file: /usr/include/linux/if_plip.h
nasm_code:
; from header /usr/include/linux/if_plip.h
struc plipconf
    .pcmd            resb 2
    .nibble          resb 8
    .trigger         resb 8
endstruc
%define struc_plipconf_size 24


name: af_vsockmon_hdr
include_file: /usr/include/linux/vsockmon.h
nasm_code:
; from header /usr/include/linux/vsockmon.h
struc af_vsockmon_hdr
    .src_cid         resb 8
    .dst_cid         resb 8
    .src_port        resb 4
    .dst_port        resb 4
    .op              resb 2
    .transport       resb 2
    .len             resb 2
    .reserved        resb 2 ; None
endstruc
%define struc_af_vsockmon_hdr_size 32


name: fsverity_enable_arg
include_file: /usr/include/linux/fsverity.h
nasm_code:
; from header /usr/include/linux/fsverity.h
struc fsverity_enable_arg
    .version         resb 4
    .hash_algorithm  resb 4
    .block_size      resb 4
    .salt_size       resb 4
    .salt_ptr        resb 8
    .sig_size        resb 4
    .__reserved1     resb 4
    .sig_ptr         resb 8
    .__reserved2     resb 88 ; None
endstruc
%define struc_fsverity_enable_arg_size 128


name: fsverity_digest
include_file: /usr/include/linux/fsverity.h
nasm_code:
; from header /usr/include/linux/fsverity.h
struc fsverity_digest
    .digest_algorith resb 2
    .digest_size     resb 2
    .digest          resb 0 ; None
endstruc
%define struc_fsverity_digest_size 4


name: stp_policy_id
include_file: /usr/include/linux/stm.h
nasm_code:
; from header /usr/include/linux/stm.h
struc stp_policy_id
    .size            resb 4
    .master          resb 2
    .channel         resb 2
    .width           resb 2
    .__reserved_0    resb 2
    .__reserved_1    resb 4
    .id              resb 0 ; None
endstruc
%define struc_stp_policy_id_size 16


name: ifaddrmsg
include_file: /usr/include/linux/if_addr.h
nasm_code:
; from header /usr/include/linux/if_addr.h
struc ifaddrmsg
    .ifa_family      resb 1
    .ifa_prefixlen   resb 1
    .ifa_flags       resb 1
    .ifa_scope       resb 1
    .ifa_index       resb 4
endstruc
%define struc_ifaddrmsg_size 8


name: ifa_cacheinfo
include_file: /usr/include/linux/if_addr.h
nasm_code:
; from header /usr/include/linux/if_addr.h
struc ifa_cacheinfo
    .ifa_prefered    resb 4
    .ifa_valid       resb 4
    .cstamp          resb 4
    .tstamp          resb 4
endstruc
%define struc_ifa_cacheinfo_size 16


name: clone_args
include_file: /usr/include/linux/sched.h
nasm_code:
; from header /usr/include/linux/sched.h
struc clone_args
    .flags           resb 8
    .pidfd           resb 8
    .child_tid       resb 8
    .parent_tid      resb 8
    .exit_signal     resb 8
    .stack           resb 8
    .stack_size      resb 8
    .tls             resb 8
    .set_tid         resb 8
    .set_tid_size    resb 8
    .cgroup          resb 8
endstruc
%define struc_clone_args_size 88


name: userio_cmd
include_file: /usr/include/linux/userio.h
nasm_code:
; from header /usr/include/linux/userio.h
struc userio_cmd
    .type            resb 1
    .data            resb 1
endstruc
%define struc_userio_cmd_size 2


name: seg7_conversion_map
include_file: /usr/include/linux/map_to_7segment.h
nasm_code:
; from header /usr/include/linux/map_to_7segment.h
struc seg7_conversion_map
    .table           resb 128 ; None
endstruc
%define struc_seg7_conversion_map_size 128


name: sockaddr_rose
include_file: /usr/include/linux/rose.h
nasm_code:
; from header /usr/include/linux/rose.h
struc sockaddr_rose
    .srose_family    resb 2
    .srose_addr      resb 5 ; rose_address
    .srose_call      resb 7 ; ax25_address
    .srose_ndigis    resb 4
    .srose_digi      resb 7 ; ax25_address
endstruc
%define struc_sockaddr_rose_size 28


name: full_sockaddr_rose
include_file: /usr/include/linux/rose.h
nasm_code:
; from header /usr/include/linux/rose.h
struc full_sockaddr_rose
    .srose_family    resb 2
    .srose_addr      resb 5 ; rose_address
    .srose_call      resb 7 ; ax25_address
    .srose_ndigis    resb 4
    .srose_digis     resb 42 ; None
endstruc
%define struc_full_sockaddr_rose_size 64


name: rose_route_struct
include_file: /usr/include/linux/rose.h
nasm_code:
; from header /usr/include/linux/rose.h
struc rose_route_struct
    .address         resb 5 ; rose_address
    .mask            resb 2
    .neighbour       resb 7 ; ax25_address
    .device          resb 16 ; None
    .ndigis          resb 1
    .digipeaters     resb 56 ; None
endstruc
%define struc_rose_route_struct_size 88


name: rose_cause_struct
include_file: /usr/include/linux/rose.h
nasm_code:
; from header /usr/include/linux/rose.h
struc rose_cause_struct
    .cause           resb 1
    .diagnostic      resb 1
endstruc
%define struc_rose_cause_struct_size 2


name: rose_facilities_struct
include_file: /usr/include/linux/rose.h
nasm_code:
; from header /usr/include/linux/rose.h
struc rose_facilities_struct
    .source_addr     resb 5 ; rose_address
    .dest_addr       resb 5 ; rose_address
    .source_call     resb 7 ; ax25_address
    .dest_call       resb 7 ; ax25_address
    .source_ndigis   resb 1
    .dest_ndigis     resb 1
    .source_digis    resb 42 ; None
    .dest_digis      resb 42 ; None
    .rand            resb 4
    .fail_addr       resb 5 ; rose_address
    .fail_call       resb 7 ; ax25_address
endstruc
%define struc_rose_facilities_struct_size 128


name: sr6_tlv_hmac
include_file: /usr/include/linux/seg6_hmac.h
nasm_code:
; from header /usr/include/linux/seg6_hmac.h
struc sr6_tlv_hmac
    .tlvhdr          resb 2 ; struc sr6_tlv
    .reserved        resb 2
    .hmackeyid       resb 4
    .hmac            resb 32 ; None
endstruc
%define struc_sr6_tlv_hmac_size 40


name: ipmi_addr
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_addr
    .addr_type       resb 4
    .channel         resb 2
    .data            resb 32 ; None
endstruc
%define struc_ipmi_addr_size 40


name: ipmi_system_interface_addr
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_system_interface_addr
    .addr_type       resb 4
    .channel         resb 2
    .lun             resb 1
endstruc
%define struc_ipmi_system_interface_addr_size 8


name: ipmi_ipmb_addr
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_ipmb_addr
    .addr_type       resb 4
    .channel         resb 2
    .slave_addr      resb 1
    .lun             resb 1
endstruc
%define struc_ipmi_ipmb_addr_size 8


name: ipmi_lan_addr
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_lan_addr
    .addr_type       resb 4
    .channel         resb 2
    .privilege       resb 1
    .session_handle  resb 1
    .remote_SWID     resb 1
    .local_SWID      resb 1
    .lun             resb 1
endstruc
%define struc_ipmi_lan_addr_size 12


name: ipmi_msg
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_msg
    .netfn           resb 1
    .cmd             resb 1
    .data_len        resb 2
    .data            resb 8
endstruc
%define struc_ipmi_msg_size 16


name: kernel_ipmi_msg
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc kernel_ipmi_msg
    .netfn           resb 1
    .cmd             resb 1
    .data_len        resb 2
    .data            resb 8
endstruc
%define struc_kernel_ipmi_msg_size 16


name: ipmi_req
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_req
    .addr            resb 8
    .addr_len        resb 4
    .msgid           resb 8
    .msg             resb 16 ; struc ipmi_msg
endstruc
%define struc_ipmi_req_size 40


name: ipmi_req_settime
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_req_settime
    .req             resb 40 ; struc ipmi_req
    .retries         resb 4
    .retry_time_ms   resb 4
endstruc
%define struc_ipmi_req_settime_size 48


name: ipmi_recv
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_recv
    .recv_type       resb 4
    .addr            resb 8
    .addr_len        resb 4
    .msgid           resb 8
    .msg             resb 16 ; struc ipmi_msg
endstruc
%define struc_ipmi_recv_size 48


name: ipmi_cmdspec
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_cmdspec
    .netfn           resb 1
    .cmd             resb 1
endstruc
%define struc_ipmi_cmdspec_size 2


name: ipmi_cmdspec_chans
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_cmdspec_chans
    .netfn           resb 4
    .cmd             resb 4
    .chans           resb 4
endstruc
%define struc_ipmi_cmdspec_chans_size 12


name: ipmi_channel_lun_address_set
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_channel_lun_address_set
    .channel         resb 2
    .value           resb 1
endstruc
%define struc_ipmi_channel_lun_address_set_size 4


name: ipmi_timing_parms
include_file: /usr/include/linux/ipmi.h
nasm_code:
; from header /usr/include/linux/ipmi.h
struc ipmi_timing_parms
    .retries         resb 4
    .retry_time_ms   resb 4
endstruc
%define struc_ipmi_timing_parms_size 8


name: rpmsg_endpoint_info
include_file: /usr/include/linux/rpmsg.h
nasm_code:
; from header /usr/include/linux/rpmsg.h
struc rpmsg_endpoint_info
    .name            resb 32 ; None
    .src             resb 4
    .dst             resb 4
endstruc
%define struc_rpmsg_endpoint_info_size 40


name: sync_merge_data
include_file: /usr/include/linux/sync_file.h
nasm_code:
; from header /usr/include/linux/sync_file.h
struc sync_merge_data
    .name            resb 32 ; None
    .fd2             resb 4
    .fence           resb 4
    .flags           resb 4
    .pad             resb 4
endstruc
%define struc_sync_merge_data_size 48


name: sync_fence_info
include_file: /usr/include/linux/sync_file.h
nasm_code:
; from header /usr/include/linux/sync_file.h
struc sync_fence_info
    .obj_name        resb 32 ; None
    .driver_name     resb 32 ; None
    .status          resb 4
    .flags           resb 4
    .timestamp_ns    resb 8
endstruc
%define struc_sync_fence_info_size 80


name: sync_file_info
include_file: /usr/include/linux/sync_file.h
nasm_code:
; from header /usr/include/linux/sync_file.h
struc sync_file_info
    .name            resb 32 ; None
    .status          resb 4
    .flags           resb 4
    .num_fences      resb 4
    .pad             resb 4
    .sync_fence_info resb 8
endstruc
%define struc_sync_file_info_size 56


name: idt77105_stats
include_file: /usr/include/linux/atm_idt77105.h
nasm_code:
; from header /usr/include/linux/atm_idt77105.h
struc idt77105_stats
    .symbol_errors   resb 4
    .tx_cells        resb 4
    .rx_cells        resb 4
    .rx_hec_errors   resb 4
endstruc
%define struc_idt77105_stats_size 16


name: arc_rfc1201
include_file: /usr/include/linux/if_arcnet.h
nasm_code:
; from header /usr/include/linux/if_arcnet.h
struc arc_rfc1201
    .proto           resb 1
    .split_flag      resb 1
    .sequence        resb 2
    .payload         resb 0 ; None
endstruc
%define struc_arc_rfc1201_size 4


name: arc_rfc1051
include_file: /usr/include/linux/if_arcnet.h
nasm_code:
; from header /usr/include/linux/if_arcnet.h
struc arc_rfc1051
    .proto           resb 1
    .payload         resb 0 ; None
endstruc
%define struc_arc_rfc1051_size 1


name: arc_eth_encap
include_file: /usr/include/linux/if_arcnet.h
nasm_code:
; from header /usr/include/linux/if_arcnet.h
struc arc_eth_encap
    .proto           resb 1
    .eth             resb 14 ; struc ethhdr
    .payload         resb 0 ; None
endstruc
%define struc_arc_eth_encap_size 15


name: arc_cap
include_file: /usr/include/linux/if_arcnet.h
nasm_code:
; from header /usr/include/linux/if_arcnet.h
struc arc_cap
    .proto           resb 1
    .cookie          resb 4 ; None
    .mes             resb 1 ; union None
endstruc
%define struc_arc_cap_size 6


name: arc_hardware
include_file: /usr/include/linux/if_arcnet.h
nasm_code:
; from header /usr/include/linux/if_arcnet.h
struc arc_hardware
    .source          resb 1
    .dest            resb 1
    .offset          resb 2 ; None
endstruc
%define struc_arc_hardware_size 4


name: archdr
include_file: /usr/include/linux/if_arcnet.h
nasm_code:
; from header /usr/include/linux/if_arcnet.h
struc archdr
    .hard            resb 4 ; struc arc_hardware
    .soft            resb 16 ; union None
endstruc
%define struc_archdr_size 20


name: dlm_lock_data
include_file: /usr/include/linux/dlm_netlink.h
nasm_code:
; from header /usr/include/linux/dlm_netlink.h
struc dlm_lock_data
    .version         resb 2
    .lockspace_id    resb 4
    .nodeid          resb 4
    .ownpid          resb 4
    .id              resb 4
    .remid           resb 4
    .xid             resb 8
    .status          resb 1
    .grmode          resb 1
    .rqmode          resb 1
    .timestamp       resb 8
    .resource_namele resb 4
    .resource_name   resb 64 ; None
endstruc
%define struc_dlm_lock_data_size 120


name: ipv6_sr_hdr
include_file: /usr/include/linux/seg6.h
nasm_code:
; from header /usr/include/linux/seg6.h
struc ipv6_sr_hdr
    .nexthdr         resb 1
    .hdrlen          resb 1
    .type            resb 1
    .segments_left   resb 1
    .first_segment   resb 1
    .flags           resb 1
    .tag             resb 2
    .segments        resb 0 ; None
endstruc
%define struc_ipv6_sr_hdr_size 8


name: sr6_tlv
include_file: /usr/include/linux/seg6.h
nasm_code:
; from header /usr/include/linux/seg6.h
struc sr6_tlv
    .type            resb 1
    .len             resb 1
    .data            resb 0 ; None
endstruc
%define struc_sr6_tlv_size 2


