/*1* Copyright (c) 2004 Mellanox Technologies Ltd. All rights reserved.2* Copyright (c) 2004 Infinicon Corporation. All rights reserved.3* Copyright (c) 2004 Intel Corporation. All rights reserved.4* Copyright (c) 2004 Topspin Corporation. All rights reserved.5* Copyright (c) 2004 Voltaire Corporation. All rights reserved.6*7* This software is available to you under a choice of one of two8* licenses. You may choose to be licensed under the terms of the GNU9* General Public License (GPL) Version 2, available from the file10* COPYING in the main directory of this source tree, or the11* OpenIB.org BSD license below:12*13* Redistribution and use in source and binary forms, with or14* without modification, are permitted provided that the following15* conditions are met:16*17* - Redistributions of source code must retain the above18* copyright notice, this list of conditions and the following19* disclaimer.20*21* - Redistributions in binary form must reproduce the above22* copyright notice, this list of conditions and the following23* disclaimer in the documentation and/or other materials24* provided with the distribution.25*26* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,27* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF28* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND29* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS30* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN31* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN32* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE33* SOFTWARE.34*/3536#ifndef __AGENT_H_37#define __AGENT_H_3839#include <linux/err.h>40#include <rdma/ib_mad.h>4142extern int ib_agent_port_open(struct ib_device *device, int port_num);4344extern int ib_agent_port_close(struct ib_device *device, int port_num);4546extern void agent_send_response(struct ib_mad *mad, struct ib_grh *grh,47struct ib_wc *wc, struct ib_device *device,48int port_num, int qpn);4950#endif /* __AGENT_H_ */515253