aboutsummaryrefslogtreecommitdiff
path: root/library/include/mipi_syst/message.h
diff options
context:
space:
mode:
authorMatthew A. Schnoor (@Intel) <matthew.schnoor@intel.com>2023-01-23 10:05:04 -0800
committerGitHub <noreply@github.com>2023-01-23 10:05:04 -0800
commit9e987325e061bfd0e8bd3add2cb693a5ca4a39ad (patch)
treedfc1174ac09b295d3ffae470bd51c22df1d8c0b7 /library/include/mipi_syst/message.h
parent6a02f9780d5d115dc34dac7ad40bf4e95adac83c (diff)
parent2ef162313cf084d32e2da8691f173e14901af84a (diff)
downloadmipisyst-9e987325e061bfd0e8bd3add2cb693a5ca4a39ad.zip
mipisyst-9e987325e061bfd0e8bd3add2cb693a5ca4a39ad.tar.gz
mipisyst-9e987325e061bfd0e8bd3add2cb693a5ca4a39ad.tar.bz2
Merge pull request #5 from l0ud/sbdv1.1
Add Structured Binary Data messages
Diffstat (limited to 'library/include/mipi_syst/message.h')
-rw-r--r--library/include/mipi_syst/message.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/library/include/mipi_syst/message.h b/library/include/mipi_syst/message.h
index 285512b..beb528d 100644
--- a/library/include/mipi_syst/message.h
+++ b/library/include/mipi_syst/message.h
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2018, MIPI Alliance, Inc.
+Copyright (c) 2018-2023, MIPI Alliance, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -34,6 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/*
* Contributors:
* Norbert Schulz (Intel Corporation) - Initial API and implementation
+ * Przemyslaw Romaniak (Intel Corporation) - SBD implementation
*/
/* Internal message storage buffering */
@@ -51,7 +52,17 @@ extern "C" {
union mipi_syst_catid {
mipi_syst_u32 sci_32;
mipi_syst_u64 sci_64;
-} ;
+};
+
+#if defined(MIPI_SYST_PCFG_ENABLE_SBD_API)
+/**
+ * SBD union for 32bit/64bit ID
+ */
+union mipi_syst_sbd_id {
+ mipi_syst_u32 sbd_id_32;
+ mipi_syst_u64 sbd_id_64;
+};
+#endif
/**
* SyS-T message descriptor
@@ -91,6 +102,15 @@ union mipi_syst_catid {
mipi_syst_u32 *param;
} data_catid;
+#if defined(MIPI_SYST_PCFG_ENABLE_SBD_API)
+ struct {
+ union mipi_syst_sbd_id id;
+ mipi_syst_address address;
+ const char *name;
+ const void *blob;
+ } data_sbd;
+#endif
+
#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
mipi_syst_u64 data_clock[2];
#endif