Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ocrdma_ah.h
Go to the documentation of this file.
1 /*******************************************************************
2  * This file is part of the Emulex RoCE Device Driver for *
3  * RoCE (RDMA over Converged Ethernet) adapters. *
4  * Copyright (C) 2008-2012 Emulex. All rights reserved. *
5  * EMULEX and SLI are trademarks of Emulex. *
6  * www.emulex.com *
7  * *
8  * This program is free software; you can redistribute it and/or *
9  * modify it under the terms of version 2 of the GNU General *
10  * Public License as published by the Free Software Foundation. *
11  * This program is distributed in the hope that it will be useful. *
12  * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND *
13  * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, *
14  * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
15  * DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD *
16  * TO BE LEGALLY INVALID. See the GNU General Public License for *
17  * more details, a copy of which can be found in the file COPYING *
18  * included with this package. *
19  *
20  * Contact Information:
22  *
23  * Emulex
24  * 3333 Susan Street
25  * Costa Mesa, CA 92626
26  *******************************************************************/
27 
28 #ifndef __OCRDMA_AH_H__
29 #define __OCRDMA_AH_H__
30 
31 struct ib_ah *ocrdma_create_ah(struct ib_pd *, struct ib_ah_attr *);
32 int ocrdma_destroy_ah(struct ib_ah *);
33 int ocrdma_query_ah(struct ib_ah *, struct ib_ah_attr *);
34 int ocrdma_modify_ah(struct ib_ah *, struct ib_ah_attr *);
35 
36 int ocrdma_process_mad(struct ib_device *,
37  int process_mad_flags,
38  u8 port_num,
39  struct ib_wc *in_wc,
40  struct ib_grh *in_grh,
41  struct ib_mad *in_mad, struct ib_mad *out_mad);
42 #endif /* __OCRDMA_AH_H__ */