ocrdma_ah.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:
  21. * linux-drivers@emulex.com
  22. *
  23. * Emulex
  24. * 3333 Susan Street
  25. * Costa Mesa, CA 92626
  26. *******************************************************************/
  27. #ifndef __OCRDMA_AH_H__
  28. #define __OCRDMA_AH_H__
  29. struct ib_ah *ocrdma_create_ah(struct ib_pd *, struct ib_ah_attr *);
  30. int ocrdma_destroy_ah(struct ib_ah *);
  31. int ocrdma_query_ah(struct ib_ah *, struct ib_ah_attr *);
  32. int ocrdma_modify_ah(struct ib_ah *, struct ib_ah_attr *);
  33. int ocrdma_process_mad(struct ib_device *,
  34. int process_mad_flags,
  35. u8 port_num,
  36. struct ib_wc *in_wc,
  37. struct ib_grh *in_grh,
  38. struct ib_mad *in_mad, struct ib_mad *out_mad);
  39. #endif /* __OCRDMA_AH_H__ */