]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
mft-3.8.0 porting pt3
authorAdrian Chiris <adrianc@mellanox.com>
Tue, 6 Jan 2015 14:06:53 +0000 (16:06 +0200)
committerAdrian Chiris <adrianc@mellanox.com>
Tue, 6 Jan 2015 14:06:53 +0000 (16:06 +0200)
cmdif/tools_cif.c
cmdif/tools_cif.h
mft_utils/Makefile.am
mft_utils/errmsg.cpp
mft_utils/errmsg.h
reg_access/Makefile.am

index d83a4ba180499cb350c3d9c560afc5a5bb3a33ac..ea4658b18d7d031c196153565fe55da08b9a2213 100644 (file)
@@ -87,28 +87,6 @@ MError tcif_query_per_port_def_params(mfile* dev, u_int8_t port, struct tools_op
 }
 
 
-MError tcif_qpc_context_read(mfile* dev, u_int32_t qpn, u_int32_t source, u_int8_t* data, u_int32_t len)
-{
-    u_int32_t input_mod = 0;
-    input_mod = MERGE(input_mod, source, 24,  8);
-    input_mod = MERGE(input_mod, qpn   ,  0, 24);
-    int rc = tools_cmdif_send_mbox_command(dev, input_mod, QPC_READ_OP, 0, 0, data, len, 0);
-    CHECK_RC(rc);
-    return ME_OK;
-}
-
-
-MError tcif_qpc_context_write(mfile* dev, u_int32_t qpn, u_int32_t source, u_int8_t* data, u_int32_t len)
-{
-    u_int32_t input_mod = 0;
-    input_mod = MERGE(input_mod, source, 24,  8);
-    input_mod = MERGE(input_mod, qpn   ,  0, 24);
-    int rc = tools_cmdif_send_mbox_command(dev, input_mod, QPC_WRITE_OP, 0, 0, data, len, 0);
-    CHECK_RC(rc);
-    return ME_OK;
-}
-
-
 MError tcif_hw_access(mfile* dev, u_int64_t key, int lock_unlock)
 {
     return tools_cmdif_send_inline_cmd(dev, key, NULL, 0, HW_ACCESS_OP, lock_unlock);
index 0ca91e3cf142d315be4b118dc213b2e58146a6b7..7e35ea56db715b9f9483c35d0177e7b3c27a4d7a 100644 (file)
@@ -74,29 +74,6 @@ MError tcif_query_global_def_params(mfile* dev, struct tools_open_query_def_para
  **/
 MError tcif_query_per_port_def_params(mfile* dev, u_int8_t port, struct tools_open_query_def_params_per_port* port_params);
 
-/**
- * tcif_qpc_context_read:
- * @param[in]     dev           A pointer to a device context.
- * @param[in]     qpn           QP Number
- * @param[in]     source        QP Source
- * @param[in]     data          Data that was read
- *
- * @return     One of the MError* values, or a raw
- **/
-MError tcif_qpc_context_read(mfile* dev, u_int32_t qpn, u_int32_t source, u_int8_t* data, u_int32_t len);
-
-/**
- * tcif_qpc_context_write:
- * @param[in]     dev           A pointer to a device context.
- * @param[in]     qpn           QP Number
- * @param[in]     source        QP Source
- * @param[in]     data          Data to be written
- *
- * @return     One of the MError* values, or a raw
- **/
-MError tcif_qpc_context_write(mfile* dev, u_int32_t qpn, u_int32_t source, u_int8_t* data, u_int32_t len);
-
-
 /**
  * tcif_hw_access:
  * @param[in]  dev           A pointer to a device context.
index a9d5ab5e470c7703965d7fd139a3bfc793021f4e..ad9ad8e3ce78c900439327a52f484075e957130e 100644 (file)
@@ -1,14 +1,33 @@
 #--
-#                 - Mellanox Confidential and Proprietary -
-# 
-# Copyright (C) Jan 2013, Mellanox Technologies Ltd.  ALL RIGHTS RESERVED.
-# 
-# Except as specifically permitted herein, no portion of the information,
-# including but not limited to object code and source code, may be reproduced,
-# modified, distributed, republished or otherwise exploited in any form or by
-# any means for any purpose without the prior written permission of Mellanox
-# Technologies Ltd. Use of software subject to the terms and conditions
-# detailed in the file "LICENSE.txt".
+# Copyright (c) 2004-2010 Mellanox Technologies LTD. All rights reserved.
+#
+# This software is available to you under a choice of one of two
+# licenses.  You may choose to be licensed under the terms of the GNU
+# General Public License (GPL) Version 2, available from the file
+# COPYING in the main directory of this source tree, or the
+# OpenIB.org BSD license below:
+#
+#     Redistribution and use in source and binary forms, with or
+#     without modification, are permitted provided that the following
+#     conditions are met:
+#
+#      - Redistributions of source code must retain the above
+#        copyright notice, this list of conditions and the following
+#        disclaimer.
+#
+#      - Redistributions in binary form must reproduce the above
+#        copyright notice, this list of conditions and the following
+#        disclaimer in the documentation and/or other materials
+#        provided with the distribution.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
 #--
 
 # Makefile.am -- Process this file with automake to produce Makefile.in
index 09e8a53a6485ffa740b7671e0f143a4e21b2938c..f386e76da36da7c4d729339ac2b6346c9ce1b4fc 100644 (file)
@@ -1,20 +1,33 @@
 /*
- *                 - Mellanox Confidential and Proprietary -
+ * Copyright (C) Jan 2013 Mellanox Technologies Ltd. All rights reserved.
  *
- * Copyright (C) Jan 2013, Mellanox Technologies Ltd.  ALL RIGHTS RESERVED.
+ * This software is available to you under a choice of one of two
+ * licenses.  You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * OpenIB.org BSD license below:
  *
- * Except as specifically permitted herein, no portion of the information,
- * including but not limited to object code and source code, may be reproduced,
- * modified, distributed, republished or otherwise exploited in any form or by
- * any means for any purpose without the prior written permission of Mellanox
- * Technologies Ltd. Use of software subject to the terms and conditions
- * detailed in the file "LICENSE.txt".
+ *     Redistribution and use in source and binary forms, with or
+ *     without modification, are permitted provided that the following
+ *     conditions are met:
  *
- * errmsg.cpp - ErrMsg class implementation.
+ *      - Redistributions of source code must retain the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer.
  *
- *  Created on: May 7, 2014
- *      Author: adrianc
+ *      - Redistributions in binary form must reproduce the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer in the documentation and/or other materials
+ *        provided with the distribution.
  *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
  */
 
 #include <stdio.h>
index db1c26bf0a4208c5351b6f4105d2775fae014e7b..6d071c4d957942ad9209fcf1b37b6f132d36b29b 100644 (file)
@@ -1,20 +1,33 @@
 /*
- *                 - Mellanox Confidential and Proprietary -
+ * Copyright (C) Jan 2013 Mellanox Technologies Ltd. All rights reserved.
  *
- * Copyright (C) Jan 2013, Mellanox Technologies Ltd.  ALL RIGHTS RESERVED.
+ * This software is available to you under a choice of one of two
+ * licenses.  You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * OpenIB.org BSD license below:
  *
- * Except as specifically permitted herein, no portion of the information,
- * including but not limited to object code and source code, may be reproduced,
- * modified, distributed, republished or otherwise exploited in any form or by
- * any means for any purpose without the prior written permission of Mellanox
- * Technologies Ltd. Use of software subject to the terms and conditions
- * detailed in the file "LICENSE.txt".
+ *     Redistribution and use in source and binary forms, with or
+ *     without modification, are permitted provided that the following
+ *     conditions are met:
  *
- * errmsg.h - base class that provides the returning of error messages for classes that inherit it.
+ *      - Redistributions of source code must retain the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer.
  *
- *  Created on: May 7, 2014
- *      Author: adrianc
+ *      - Redistributions in binary form must reproduce the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer in the documentation and/or other materials
+ *        provided with the distribution.
  *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
  */
 
 #ifndef ERRMSG_H_
index 2582c8845fe54555914e100f8335451c4c32441b..3e5640686f8c15e17d32f91fb3f93e69434acdaf 100644 (file)
@@ -1,14 +1,33 @@
 #--
-#                 - Mellanox Confidential and Proprietary -
-# 
-# Copyright (C) Jan 2013, Mellanox Technologies Ltd.  ALL RIGHTS RESERVED.
-# 
-# Except as specifically permitted herein, no portion of the information,
-# including but not limited to object code and source code, may be reproduced,
-# modified, distributed, republished or otherwise exploited in any form or by
-# any means for any purpose without the prior written permission of Mellanox
-# Technologies Ltd. Use of software subject to the terms and conditions
-# detailed in the file "LICENSE.txt".
+# Copyright (c) 2004-2010 Mellanox Technologies LTD. All rights reserved.
+#
+# This software is available to you under a choice of one of two
+# licenses.  You may choose to be licensed under the terms of the GNU
+# General Public License (GPL) Version 2, available from the file
+# COPYING in the main directory of this source tree, or the
+# OpenIB.org BSD license below:
+#
+#     Redistribution and use in source and binary forms, with or
+#     without modification, are permitted provided that the following
+#     conditions are met:
+#
+#      - Redistributions of source code must retain the above
+#        copyright notice, this list of conditions and the following
+#        disclaimer.
+#
+#      - Redistributions in binary form must reproduce the above
+#        copyright notice, this list of conditions and the following
+#        disclaimer in the documentation and/or other materials
+#        provided with the distribution.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
 #--
 
 # Makefile.am -- Process this file with automake to produce Makefile.in