summaryrefslogtreecommitdiff
path: root/src/systemc/ext/tlm_core/tlm_2/tlm_sockets/tlm_base_socket_if.h
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-12-08 02:05:34 -0800
committerGabe Black <gabeblack@google.com>2019-01-09 01:32:29 +0000
commit275d2779656fd2dd72762b2eb16a738d1b3b2b18 (patch)
tree0c15a93a00f8c8529bbf456843bb137629fbe8a9 /src/systemc/ext/tlm_core/tlm_2/tlm_sockets/tlm_base_socket_if.h
parent584a1f6723f8cc20319b6b594d70b19056fb7679 (diff)
downloadgem5-275d2779656fd2dd72762b2eb16a738d1b3b2b18.tar.xz
systemc: Fix style issues in the TLM header files.
Change-Id: Id12ffb9b56b3887afcf30120f81ce5eb75a5987b Reviewed-on: https://gem5-review.googlesource.com/c/15057 Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>
Diffstat (limited to 'src/systemc/ext/tlm_core/tlm_2/tlm_sockets/tlm_base_socket_if.h')
-rw-r--r--src/systemc/ext/tlm_core/tlm_2/tlm_sockets/tlm_base_socket_if.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/systemc/ext/tlm_core/tlm_2/tlm_sockets/tlm_base_socket_if.h b/src/systemc/ext/tlm_core/tlm_2/tlm_sockets/tlm_base_socket_if.h
index c847835d7..5dcd40129 100644
--- a/src/systemc/ext/tlm_core/tlm_2/tlm_sockets/tlm_base_socket_if.h
+++ b/src/systemc/ext/tlm_core/tlm_2/tlm_sockets/tlm_base_socket_if.h
@@ -17,12 +17,13 @@
*****************************************************************************/
-#ifndef TLM_CORE_TLM_BASE_SOCKET_IF_H_INCLUDED_
-#define TLM_CORE_TLM_BASE_SOCKET_IF_H_INCLUDED_
+#ifndef __SYSTEMC_EXT_TLM_CORE_TLM_2_TLM_SOCKETS_TLM_BASE_SOCKET_IF_H__
+#define __SYSTEMC_EXT_TLM_CORE_TLM_2_TLM_SOCKETS_TLM_BASE_SOCKET_IF_H__
-#include "sysc/utils/sc_typeindex.h"
+#include <systemc>
-namespace tlm {
+namespace tlm
+{
enum tlm_socket_category
{
@@ -38,19 +39,19 @@ enum tlm_socket_category
class tlm_base_socket_if
{
-public:
- virtual sc_core::sc_port_base & get_port_base() = 0;
- virtual sc_core::sc_port_base const & get_port_base() const = 0;
- virtual sc_core::sc_export_base & get_export_base() = 0;
- virtual sc_core::sc_export_base const & get_export_base() const = 0;
- virtual unsigned int get_bus_width() const = 0;
- virtual sc_core::sc_type_index get_protocol_types() const = 0;
- virtual tlm_socket_category get_socket_category() const = 0;
-
-protected:
- virtual ~tlm_base_socket_if() {}
+ public:
+ virtual sc_core::sc_port_base &get_port_base() = 0;
+ virtual sc_core::sc_port_base const &get_port_base() const = 0;
+ virtual sc_core::sc_export_base &get_export_base() = 0;
+ virtual sc_core::sc_export_base const &get_export_base() const = 0;
+ virtual unsigned int get_bus_width() const = 0;
+ virtual sc_core::sc_type_index get_protocol_types() const = 0;
+ virtual tlm_socket_category get_socket_category() const = 0;
+
+ protected:
+ virtual ~tlm_base_socket_if() {}
};
} // namespace tlm
-#endif // TLM_CORE_TLM_BASE_SOCKET_IF_H_INCLUDED_
+#endif // __SYSTEMC_EXT_TLM_CORE_TLM_2_TLM_SOCKETS_TLM_BASE_SOCKET_IF_H__