[openib-general] [PATCH][SDP][18/33] Fix comment style in sdp_msgs.h

Tom Duffy Tom.Duffy at Sun.COM
Thu Feb 17 14:11:34 PST 2005


Signed-off-by: Tom Duffy <tduffy at sun.com>

--- drivers/infiniband/ulp/sdp-orig/sdp_msgs.h	2005-02-10 18:42:56.449031000 -0800
+++ drivers/infiniband/ulp/sdp/sdp_msgs.h	2005-02-17 11:07:20.058017000 -0800
@@ -1,25 +1,36 @@
 /*
-  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 at
-  <http://www.fsf.org/copyleft/gpl.html>, or the OpenIB.org BSD
-  license, available in the LICENSE.TXT file accompanying this
-  software.  These details are also available at
-  <http://openib.org/license.html>.
-
-  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.
-
-  Copyright (c) 2005 Topspin Communications.  All rights reserved.
-
-  $Id: sdp_msgs.h 229 2004-06-04 00:55:12Z libor $
-*/
+ * Copyright (c) 2005 Topspin Communications.  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.
+ *
+ * $Id$
+ */
 
 #ifndef _SDP_MSGS_H
 #define _SDP_MSGS_H
@@ -259,12 +270,14 @@ struct msg_hdr_sch {
 #define SDP_MSG_MCH_GET_MODE(mch) (((mch)->flags & 0xF0) >> 4)
 #define SDP_MSG_MCH_SET_MODE(mch, value) \
         ((mch)->flags = (((mch)->flags & 0x0F) | (value << 4)))
-/* ------------------------------------------------------------------------ */
-/* Endian Conversions                                                       */
-/* ------------------------------------------------------------------------ */
 
-/* =========================================================== */
-/*..__sdp_msg_swap_bsdh -- SDP header endian byte swapping    */
+/*
+ * Endian Conversions
+ */
+
+/*
+ * __sdp_msg_swap_bsdh - SDP header endian byte swapping
+ */
 static __inline__ void __sdp_msg_swap_bsdh(struct msg_hdr_bsdh *header)
 {
 	header->recv_bufs = cpu_to_be16(header->recv_bufs);
@@ -273,8 +286,9 @@ static __inline__ void __sdp_msg_swap_bs
 	header->seq_ack = cpu_to_be32(header->seq_ack);
 } /* __sdp_msg_swap_bsdh */
 
-/* =========================================================== */
-/*..__sdp_msg_swap_hh -- SDP header endian byte swapping      */
+/*
+ * __sdp_msg_swap_hh - SDP header endian byte swapping
+ */
 static __inline__ void __sdp_msg_swap_hh(struct msg_hdr_hh *header)
 {
 	header->r_rcv_size = cpu_to_be32(header->r_rcv_size);
@@ -290,15 +304,17 @@ static __inline__ void __sdp_msg_swap_hh
 	header->dst.ipv6.addr3 = cpu_to_be32(header->dst.ipv6.addr3);
 } /* __sdp_msg_swap_ */
 
-/* =========================================================== */
-/*..__sdp_msg_swap_hah -- SDP header endian byte swapping     */
+/*
+ * __sdp_msg_swap_hah - SDP header endian byte swapping
+ */
 static __inline__ void __sdp_msg_swap_hah(struct msg_hdr_hah *header)
 {
 	header->l_rcv_size = cpu_to_be32(header->l_rcv_size);
 } /* __sdp_msg_swap_hah */
 
-/* =========================================================== */
-/*..__sdp_msg_swap_srcah -- SDP header endian byte swapping   */
+/*
+ * __sdp_msg_swap_srcah - SDP header endian byte swapping
+ */
 static __inline__ void __sdp_msg_swap_srcah(struct msg_hdr_srcah *header)
 {
 	header->size = cpu_to_be32(header->size);
@@ -311,8 +327,9 @@ static __inline__ void __sdp_msg_swap_sr
 #endif
 } /* __sdp_msg_swap_srcah */
 
-/* =========================================================== */
-/*..__sdp_msg_swap_snkah -- SDP header endian byte swapping   */
+/*
+ * __sdp_msg_swap_snkah - SDP header endian byte swapping
+ */
 static __inline__ void __sdp_msg_swap_snkah(struct msg_hdr_snkah *header)
 {
 	header->size = cpu_to_be32(header->size);
@@ -321,43 +338,49 @@ static __inline__ void __sdp_msg_swap_sn
 	header->non_disc = cpu_to_be32(header->non_disc);
 } /* __sdp_msg_swap_snkah */
 
-/* =========================================================== */
-/*..__sdp_msg_swap_rwch -- SDP header endian byte swapping    */
+/*
+ * __sdp_msg_swap_rwch - SDP header endian byte swapping
+ */
 static __inline__ void __sdp_msg_swap_rwch(struct msg_hdr_rwch *header)
 {
 	header->size = cpu_to_be32(header->size);
 } /* __sdp_msg_swap_rwch */
 
-/* =========================================================== */
-/*..__sdp_msg_swap_rrch -- SDP header endian byte swapping    */
+/*
+ * __sdp_msg_swap_rrch - SDP header endian byte swapping
+ */
 static __inline__ void __sdp_msg_swap_rrch(struct msg_hdr_rrch *header)
 {
 	header->size = cpu_to_be32(header->size);
 } /* __sdp_msg_swap_rrch */
 
-/* =========================================================== */
-/*..__sdp_msg_swap_mch -- SDP header endian byte swapping     */
+/*
+ * __sdp_msg_swap_mch - SDP header endian byte swapping
+ */
 static __inline__ void __sdp_msg_swap_mch(struct msg_hdr_mch *header)
 {
 	return;
 } /* __sdp_msg_swap_ */
 
-/* =========================================================== */
-/*..__sdp_msg_swap_crbh -- SDP header endian byte swapping    */
+/*
+ * __sdp_msg_swap_crbh - SDP header endian byte swapping
+ */
 static __inline__ void __sdp_msg_swap_crbh(struct msg_hdr_crbh *header)
 {
 	header->size = cpu_to_be32(header->size);
 } /* __sdp_msg_swap_crbh */
 
-/* =========================================================== */
-/*..__sdp_msg_swap_crbah -- SDP header endian byte swapping   */
+/*
+ * __sdp_msg_swap_crbah - SDP header endian byte swapping
+ */
 static __inline__ void __sdp_msg_swap_crbah(struct msg_hdr_crbah *header)
 {
 	header->size = cpu_to_be32(header->size);
 } /* __sdp_msg_swap_crbah */
 
-/* =========================================================== */
-/*..__sdp_msg_swap_sch -- SDP header endian byte swapping     */
+/*
+ * __sdp_msg_swap_sch - SDP header endian byte swapping
+ */
 static __inline__ void __sdp_msg_swap_sch(struct msg_hdr_sch *header)
 {
 	header->service_id = cpu_to_be64(header->service_id);
@@ -386,9 +409,10 @@ static __inline__ void __sdp_msg_swap_sc
 #define _sdp_msg_cpu_to_net_sch   __sdp_msg_swap_sch
 #define _sdp_msg_net_to_cpu_sch   __sdp_msg_swap_sch
 
-/* ------------------------------------------------------------------------ */
-/* Miscellaneous message related informtation                               */
-/* ------------------------------------------------------------------------ */
+/*
+ * Miscellaneous message related informtation
+ */
+
 /*
  * Connection messages
  */




More information about the general mailing list