summaryrefslogtreecommitdiff
path: root/src/systemc/ext/tlm_core/1/req_rsp/channels
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-12-12 16:43:18 -0800
committerGabe Black <gabeblack@google.com>2019-01-09 01:35:21 +0000
commite345154b19939db37fb391111d4dad190c62e81c (patch)
tree2bb6f5a3fe3a13f447f8b179337afc20e11b3648 /src/systemc/ext/tlm_core/1/req_rsp/channels
parent8c560b6c80e641a1937d9af98cb75588ec4eac05 (diff)
downloadgem5-e345154b19939db37fb391111d4dad190c62e81c.tar.xz
systemc: Rename tlm_core header files to have a .hh extentension.
This makes those files more consistent with other headers in gem5. The top level headers (tlm and tlm.h) and the tlm_utils headers were left alone since the user might reasonably expect those to have a well known name. The tlm_core headers by comparison are an implementation detail, and users shouldn't include them directly by name. Change-Id: Ibc82e8159e47717c79d76f50ed96fdd619294a06 Reviewed-on: https://gem5-review.googlesource.com/c/15067 Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Diffstat (limited to 'src/systemc/ext/tlm_core/1/req_rsp/channels')
-rw-r--r--src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/circular_buffer.hh (renamed from src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/circular_buffer.h)6
-rw-r--r--src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo.hh (renamed from src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo.h)16
-rw-r--r--src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_peek.hh (renamed from src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_peek.h)6
-rw-r--r--src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_put_get.hh (renamed from src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_put_get.h)6
-rw-r--r--src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_resize.hh (renamed from src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_resize.h)6
-rw-r--r--src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/put_get_imp.hh (renamed from src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/put_get_imp.h)8
-rw-r--r--src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/req_rsp_channels.hh (renamed from src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/req_rsp_channels.h)14
7 files changed, 32 insertions, 30 deletions
diff --git a/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/circular_buffer.h b/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/circular_buffer.hh
index 7625d712c..0badaa56f 100644
--- a/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/circular_buffer.h
+++ b/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/circular_buffer.hh
@@ -17,8 +17,8 @@
*****************************************************************************/
-#ifndef __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_CIRCULAR_BUFFER_H__
-#define __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_CIRCULAR_BUFFER_H__
+#ifndef __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_CIRCULAR_BUFFER_HH__
+#define __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_CIRCULAR_BUFFER_HH__
#include <iostream>
@@ -249,4 +249,4 @@ circular_buffer<T>::buf_clear(void *buf, int n)
} // namespace tlm
-#endif /* __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_CIRCULAR_BUFFER_H__ */
+#endif /* __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_CIRCULAR_BUFFER_HH__ */
diff --git a/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo.h b/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo.hh
index a85c89045..d1ce4835b 100644
--- a/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo.h
+++ b/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo.hh
@@ -17,8 +17,8 @@
*****************************************************************************/
-#ifndef __SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_H__
-#define __SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_H__
+#ifndef __SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_HH__
+#define __SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_HH__
//
// This implements put, get and peek
@@ -34,8 +34,8 @@
// actual physical buffer.
//
-#include "tlm_core/1/req_rsp/channels/fifo/circular_buffer.h"
-#include "tlm_core/1/req_rsp/interfaces/fifo_ifs.h"
+#include "tlm_core/1/req_rsp/channels/fifo/circular_buffer.hh"
+#include "tlm_core/1/req_rsp/interfaces/fifo_ifs.hh"
namespace tlm
{
@@ -223,8 +223,8 @@ tlm_fifo<T>::update()
} // namespace tlm
-#include "tlm_core/1/req_rsp/channels/fifo/fifo_peek.h"
-#include "tlm_core/1/req_rsp/channels/fifo/fifo_put_get.h"
-#include "tlm_core/1/req_rsp/channels/fifo/fifo_resize.h"
+#include "tlm_core/1/req_rsp/channels/fifo/fifo_peek.hh"
+#include "tlm_core/1/req_rsp/channels/fifo/fifo_put_get.hh"
+#include "tlm_core/1/req_rsp/channels/fifo/fifo_resize.hh"
-#endif /* __SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_H__ */
+#endif /* __SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_HH__ */
diff --git a/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_peek.h b/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_peek.hh
index c132852f9..843120512 100644
--- a/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_peek.h
+++ b/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_peek.hh
@@ -17,8 +17,8 @@
*****************************************************************************/
-#ifndef __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PEEK_H__
-#define __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PEEK_H__
+#ifndef __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PEEK_HH__
+#define __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PEEK_HH__
namespace tlm
{
@@ -84,4 +84,4 @@ tlm_fifo<T>::nb_poke(const T &t, int n)
} // namespace tlm
-#endif /* __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PEEK_H__ */
+#endif /* __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PEEK_HH__ */
diff --git a/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_put_get.h b/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_put_get.hh
index 8d34d2a56..ed419b2c7 100644
--- a/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_put_get.h
+++ b/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_put_get.hh
@@ -17,8 +17,8 @@
*****************************************************************************/
-#ifndef __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PUT_GET_H__
-#define __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PUT_GET_H__
+#ifndef __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PUT_GET_HH__
+#define __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PUT_GET_HH__
namespace tlm
{
@@ -110,4 +110,4 @@ tlm_fifo<T>::nb_can_put(tlm_tag<T> *) const
} // namespace tlm
-#endif /* __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PUT_GET_H__ */
+#endif /* __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_PUT_GET_HH__ */
diff --git a/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_resize.h b/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_resize.hh
index 3f936fb9c..31175ac41 100644
--- a/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_resize.h
+++ b/src/systemc/ext/tlm_core/1/req_rsp/channels/fifo/fifo_resize.hh
@@ -17,8 +17,8 @@
*****************************************************************************/
-#ifndef __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_RESIZE_H__
-#define __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_RESIZE_H__
+#ifndef __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_RESIZE_HH__
+#define __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_RESIZE_HH__
// Resize interface.
namespace tlm
@@ -77,4 +77,4 @@ tlm_fifo<T>::nb_bound(unsigned int new_size)
} // namespace tlm
-#endif /* __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_RESIZE_H__ */
+#endif /* __TLM_CORE_1_REQ_RSP_CHANNELS_FIFO_FIFO_RESIZE_HH__ */
diff --git a/src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/put_get_imp.h b/src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/put_get_imp.hh
index e821573b9..f9821dbef 100644
--- a/src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/put_get_imp.h
+++ b/src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/put_get_imp.hh
@@ -18,11 +18,11 @@
*****************************************************************************/
#ifndef \
- __SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_PUT_GET_IMP_H__
+ __SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_PUT_GET_IMP_HH__
#define \
- __SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_PUT_GET_IMP_H__
+ __SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_PUT_GET_IMP_HH__
-#include "tlm_core/1/req_rsp/interfaces/master_slave_ifs.h"
+#include "tlm_core/1/req_rsp/interfaces/master_slave_ifs.hh"
namespace tlm
{
@@ -112,4 +112,4 @@ class tlm_slave_imp : private tlm_put_get_imp<RSP, REQ>,
} // namespace tlm
#endif
-/* __SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_PUT_GET_IMP_H__*/
+/*__SYSTEMC_EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_PUT_GET_IMP_HH__*/
diff --git a/src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/req_rsp_channels.h b/src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/req_rsp_channels.hh
index 321d947ea..196a72e7d 100644
--- a/src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/req_rsp_channels.h
+++ b/src/systemc/ext/tlm_core/1/req_rsp/channels/req_rsp_channels/req_rsp_channels.hh
@@ -17,12 +17,14 @@
*****************************************************************************/
-#ifndef __EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_H__
-#define __EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_H__
+#ifndef \
+ __EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_HH__
+#define \
+ __EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_HH__
-#include "tlm_core/1/req_rsp/adapters/adapters.h"
-#include "tlm_core/1/req_rsp/channels/fifo/fifo.h"
-#include "tlm_core/1/req_rsp/channels/req_rsp_channels/put_get_imp.h"
+#include "tlm_core/1/req_rsp/adapters/adapters.hh"
+#include "tlm_core/1/req_rsp/channels/fifo/fifo.hh"
+#include "tlm_core/1/req_rsp/channels/req_rsp_channels/put_get_imp.hh"
namespace tlm
{
@@ -135,4 +137,4 @@ class tlm_transport_channel : public sc_core::sc_module
} // namespace tlm
#endif
-/* __EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_H__ */
+/* __EXT_TLM_CORE_1_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_REQ_RSP_CHANNELS_HH__ */