diff mbox series

[MONARCH_LTS,5/5] helper: add additional doxygen documentation

Message ID 20170712014545.13325-5-bill.fischofer@linaro.org
State New
Headers show
Series [MONARCH_LTS,1/5] api: classification: add additional doxygen documentation | expand

Commit Message

Bill Fischofer July 12, 2017, 1:45 a.m. UTC
Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2952 by adding
additional field documentation to avoid problems with doxygen 1.8.13
and higher.

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>

---
 helper/include/odp/helper/icmp.h         | 11 ++++++----
 helper/include/odp/helper/linux.h        |  7 +++++--
 helper/include/odp/helper/strong_types.h |  3 ++-
 helper/include/odp/helper/table.h        |  2 +-
 helper/include/odp/helper/tcp.h          | 35 ++++++++++++++++----------------
 5 files changed, 33 insertions(+), 25 deletions(-)

-- 
2.11.0
diff mbox series

Patch

diff --git a/helper/include/odp/helper/icmp.h b/helper/include/odp/helper/icmp.h
index e25646ad..bef96784 100644
--- a/helper/include/odp/helper/icmp.h
+++ b/helper/include/odp/helper/icmp.h
@@ -32,15 +32,18 @@  typedef struct ODP_PACKED {
 	uint8_t type;		/**< message type */
 	uint8_t code;		/**< type sub-code */
 	odp_u16sum_t chksum;	/**< checksum of icmp header */
+	/** Variant mappings of ICMP fields */
 	union {
+		/** Fields used for ICMP echo msgs */
 		struct {
-			odp_u16be_t id;
-			odp_u16be_t sequence;
+			odp_u16be_t id;       /**< id */
+			odp_u16be_t sequence; /**< sequence */
 		} echo;			/**< echo datagram */
 		odp_u32be_t gateway;	/**< gateway address */
+		/** Fields used for ICMP frag msgs */
 		struct {
-			odp_u16be_t __unused;
-			odp_u16be_t mtu;
+			odp_u16be_t __unused; /**< @internal */
+			odp_u16be_t mtu;  /**< mtu */
 		} frag;			/**< path mtu discovery */
 	} un;			/**< icmp sub header */
 } odph_icmphdr_t;
diff --git a/helper/include/odp/helper/linux.h b/helper/include/odp/helper/linux.h
index 238bcf8c..aa0e8f5e 100644
--- a/helper/include/odp/helper/linux.h
+++ b/helper/include/odp/helper/linux.h
@@ -82,12 +82,15 @@  typedef struct {
 	odph_odpthread_start_args_t	start_args; /**< start arguments */
 	int				cpu;	/**< CPU ID */
 	int				last;   /**< true if last table entry */
+	/** Variant mappings for thread/process */
 	union {
-		struct { /* for thread implementation */
+		/** for thread implementation */
+		struct {
 			pthread_t	thread_id; /**< Pthread ID */
 			pthread_attr_t	attr;	/**< Pthread attributes */
 		} thread;
-		struct { /* for process implementation */
+		/** for process implementation */
+		struct {
 			pid_t		pid;	/**< Process ID */
 			int		status;	/**< Process state chge status*/
 		} proc;
diff --git a/helper/include/odp/helper/strong_types.h b/helper/include/odp/helper/strong_types.h
index 13e35a43..501d0f28 100644
--- a/helper/include/odp/helper/strong_types.h
+++ b/helper/include/odp/helper/strong_types.h
@@ -20,10 +20,11 @@ 
 
 /** Use strong typing for ODP types */
 #ifdef __cplusplus
+/** @internal C++ helper macro for strong typing  @param type @return */
 #define ODPH_HANDLE_T(type) struct _##type { uint8_t unused_dummy_var; } *type
 #else
 #define odph_handle_t struct { uint8_t unused_dummy_var; } *
-/** C/C++ helper macro for strong typing */
+/** @internal C helper macro for strong typing @param type @return */
 #define ODPH_HANDLE_T(type) odph_handle_t type
 #endif
 
diff --git a/helper/include/odp/helper/table.h b/helper/include/odp/helper/table.h
index 81022e55..be492381 100644
--- a/helper/include/odp/helper/table.h
+++ b/helper/include/odp/helper/table.h
@@ -89,7 +89,7 @@  extern "C" {
 #define ODPH_TABLE_NAME_LEN      32
 
 #include <odp/helper/strong_types.h>
-/** ODP table handle */
+/** @internal ODPH table handle @return */
 typedef ODPH_HANDLE_T(odph_table_t);
 
 /**
diff --git a/helper/include/odp/helper/tcp.h b/helper/include/odp/helper/tcp.h
index cabef907..1c94af48 100644
--- a/helper/include/odp/helper/tcp.h
+++ b/helper/include/odp/helper/tcp.h
@@ -32,8 +32,9 @@  typedef struct ODP_PACKED {
 	odp_u16be_t dst_port; /**< Destination port */
 	odp_u32be_t seq_no;   /**< Sequence number */
 	odp_u32be_t ack_no;   /**< Acknowledgment number */
+	/** Variant mappings for TCP fields */
 	union {
-		odp_u16be_t doffset_flags;
+		odp_u16be_t doffset_flags;  /**< dscp and offset mapping */
 #if defined(ODP_BIG_ENDIAN_BITFIELD)
 		struct {
 			odp_u16be_t rsvd1:8;
@@ -42,14 +43,14 @@  typedef struct ODP_PACKED {
 		struct {
 			odp_u16be_t hl:4;    /**< Hdr len, in words */
 			odp_u16be_t rsvd3:4; /**< Reserved */
-			odp_u16be_t cwr:1;
-			odp_u16be_t ece:1;
-			odp_u16be_t urg:1;
-			odp_u16be_t ack:1;
-			odp_u16be_t psh:1;
-			odp_u16be_t rst:1;
-			odp_u16be_t syn:1;
-			odp_u16be_t fin:1;
+			odp_u16be_t cwr:1;   /**< cwr bit */
+			odp_u16be_t ece:1;   /**< ece bit */
+			odp_u16be_t urg:1;   /**< urg bit */
+			odp_u16be_t ack:1;   /**< ack bit */
+			odp_u16be_t psh:1;   /**< psh bit */
+			odp_u16be_t rst:1;   /**< rst bit */
+			odp_u16be_t syn:1;   /**< syn bit */
+			odp_u16be_t fin:1;   /**< fin bit */
 		};
 #elif defined(ODP_LITTLE_ENDIAN_BITFIELD)
 		struct {
@@ -59,14 +60,14 @@  typedef struct ODP_PACKED {
 		struct {
 			odp_u16be_t rsvd3:4; /**< Reserved */
 			odp_u16be_t hl:4;    /**< Hdr len, in words */
-			odp_u16be_t fin:1;
-			odp_u16be_t syn:1;
-			odp_u16be_t rst:1;
-			odp_u16be_t psh:1;
-			odp_u16be_t ack:1;
-			odp_u16be_t urg:1;
-			odp_u16be_t ece:1;
-			odp_u16be_t cwr:1;
+			odp_u16be_t fin:1;   /**< fin bit */
+			odp_u16be_t syn:1;   /**< syn bit */
+			odp_u16be_t rst:1;   /**< rst bit */
+			odp_u16be_t psh:1;   /**< psh bit */
+			odp_u16be_t ack:1;   /**< ack bit */
+			odp_u16be_t urg:1;   /**< urg bit */
+			odp_u16be_t ece:1;   /**< ece bit */
+			odp_u16be_t cwr:1;   /**< cwr bit */
 		};
 
 #else