xref: /openbmc/linux/drivers/infiniband/sw/rdmavt/ah.h (revision 90898850)
14c1e4972SDennis Dalessandro #ifndef DEF_RVTAH_H
24c1e4972SDennis Dalessandro #define DEF_RVTAH_H
34c1e4972SDennis Dalessandro 
44c1e4972SDennis Dalessandro /*
5fe314195SDennis Dalessandro  * Copyright(c) 2016 Intel Corporation.
64c1e4972SDennis Dalessandro  *
74c1e4972SDennis Dalessandro  * This file is provided under a dual BSD/GPLv2 license.  When using or
84c1e4972SDennis Dalessandro  * redistributing this file, you may do so under either license.
94c1e4972SDennis Dalessandro  *
104c1e4972SDennis Dalessandro  * GPL LICENSE SUMMARY
114c1e4972SDennis Dalessandro  *
124c1e4972SDennis Dalessandro  * This program is free software; you can redistribute it and/or modify
134c1e4972SDennis Dalessandro  * it under the terms of version 2 of the GNU General Public License as
144c1e4972SDennis Dalessandro  * published by the Free Software Foundation.
154c1e4972SDennis Dalessandro  *
164c1e4972SDennis Dalessandro  * This program is distributed in the hope that it will be useful, but
174c1e4972SDennis Dalessandro  * WITHOUT ANY WARRANTY; without even the implied warranty of
184c1e4972SDennis Dalessandro  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
194c1e4972SDennis Dalessandro  * General Public License for more details.
204c1e4972SDennis Dalessandro  *
214c1e4972SDennis Dalessandro  * BSD LICENSE
224c1e4972SDennis Dalessandro  *
234c1e4972SDennis Dalessandro  * Redistribution and use in source and binary forms, with or without
244c1e4972SDennis Dalessandro  * modification, are permitted provided that the following conditions
254c1e4972SDennis Dalessandro  * are met:
264c1e4972SDennis Dalessandro  *
274c1e4972SDennis Dalessandro  *  - Redistributions of source code must retain the above copyright
284c1e4972SDennis Dalessandro  *    notice, this list of conditions and the following disclaimer.
294c1e4972SDennis Dalessandro  *  - Redistributions in binary form must reproduce the above copyright
304c1e4972SDennis Dalessandro  *    notice, this list of conditions and the following disclaimer in
314c1e4972SDennis Dalessandro  *    the documentation and/or other materials provided with the
324c1e4972SDennis Dalessandro  *    distribution.
334c1e4972SDennis Dalessandro  *  - Neither the name of Intel Corporation nor the names of its
344c1e4972SDennis Dalessandro  *    contributors may be used to endorse or promote products derived
354c1e4972SDennis Dalessandro  *    from this software without specific prior written permission.
364c1e4972SDennis Dalessandro  *
374c1e4972SDennis Dalessandro  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
384c1e4972SDennis Dalessandro  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
394c1e4972SDennis Dalessandro  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
404c1e4972SDennis Dalessandro  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
414c1e4972SDennis Dalessandro  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
424c1e4972SDennis Dalessandro  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
434c1e4972SDennis Dalessandro  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
444c1e4972SDennis Dalessandro  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
454c1e4972SDennis Dalessandro  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
464c1e4972SDennis Dalessandro  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
474c1e4972SDennis Dalessandro  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
484c1e4972SDennis Dalessandro  *
494c1e4972SDennis Dalessandro  */
504c1e4972SDennis Dalessandro 
514c1e4972SDennis Dalessandro #include <rdma/rdma_vt.h>
524c1e4972SDennis Dalessandro 
534c1e4972SDennis Dalessandro struct ib_ah *rvt_create_ah(struct ib_pd *pd,
5490898850SDasaratharaman Chandramouli 			    struct rdma_ah_attr *ah_attr);
554c1e4972SDennis Dalessandro int rvt_destroy_ah(struct ib_ah *ibah);
5690898850SDasaratharaman Chandramouli int rvt_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr);
5790898850SDasaratharaman Chandramouli int rvt_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr);
584c1e4972SDennis Dalessandro 
594c1e4972SDennis Dalessandro #endif          /* DEF_RVTAH_H */
60