182d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris/****************************************************************************
282d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ****************************************************************************
382d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***
482d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***   This header was automatically generated from a Linux kernel header
582d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***   of the same name, to make information necessary for userspace to
682d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***   call into the kernel available to libc.  It contains only constants,
782d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***   structures, and macros generated from the original header, and thus,
882d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***   contains no copyrightable information.
982d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***
1082d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***   To edit the content of this header, modify the corresponding
1182d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***   source file (e.g. under external/kernel-headers/original/) then
1282d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***   run bionic/libc/kernel/tools/update_all.py
1382d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***
1482d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***   Any manual change here will be lost the next time this script will
1582d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***   be run. You've been warned!
1682d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ***
1782d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ****************************************************************************
1882d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris ****************************************************************************/
191308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris#ifndef IB_USER_IOCTL_VERBS_H
201308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris#define IB_USER_IOCTL_VERBS_H
211308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris#include <rdma/rdma_user_ioctl.h>
221308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris#define UVERBS_UDATA_DRIVER_DATA_NS 1
231308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris#define UVERBS_UDATA_DRIVER_DATA_FLAG (1UL << UVERBS_ID_NS_SHIFT)
241308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferrisenum uverbs_default_objects {
251308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_DEVICE,
261308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_PD,
271308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_COMP_CHANNEL,
281308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_CQ,
291308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_QP,
301308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_SRQ,
311308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_AH,
321308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_MR,
331308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_MW,
341308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_FLOW,
351308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_XRCD,
361308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_RWQ_IND_TBL,
371308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_WQ,
381308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_OBJECT_LAST,
3982d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris};
401308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferrisenum {
411308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_UHW_IN = UVERBS_UDATA_DRIVER_DATA_FLAG,
421308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_UHW_OUT,
4382d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris};
441308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferrisenum uverbs_create_cq_cmd_attr_ids {
451308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  CREATE_CQ_HANDLE,
461308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  CREATE_CQ_CQE,
471308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  CREATE_CQ_USER_HANDLE,
481308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  CREATE_CQ_COMP_CHANNEL,
491308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  CREATE_CQ_COMP_VECTOR,
501308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  CREATE_CQ_FLAGS,
511308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  CREATE_CQ_RESP_CQE,
521308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris};
531308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferrisenum uverbs_destroy_cq_cmd_attr_ids {
541308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  DESTROY_CQ_HANDLE,
551308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  DESTROY_CQ_RESP,
561308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris};
571308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferrisenum uverbs_actions_cq_ops {
581308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_CQ_CREATE,
591308ad3ab33294c3abfd96da12b6df58b381ce52Christopher Ferris  UVERBS_CQ_DESTROY,
6082d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris};
6182d7504cd7d5c8d2175fb3b1a4ee3518cad6aa0fChristopher Ferris#endif
62