aboutsummaryrefslogtreecommitdiff
path: root/product/rcar/module/rcar_mfismh/src/rcar_mfismh.h
diff options
context:
space:
mode:
Diffstat (limited to 'product/rcar/module/rcar_mfismh/src/rcar_mfismh.h')
-rw-r--r--product/rcar/module/rcar_mfismh/src/rcar_mfismh.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/product/rcar/module/rcar_mfismh/src/rcar_mfismh.h b/product/rcar/module/rcar_mfismh/src/rcar_mfismh.h
new file mode 100644
index 00000000..e01d2133
--- /dev/null
+++ b/product/rcar/module/rcar_mfismh/src/rcar_mfismh.h
@@ -0,0 +1,40 @@
+/*
+ * Renesas SCP/MCP Software
+ * Copyright (c) 2020, Renesas Electronics Corporation. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef RCAR_MFISMH_H
+#define RCAR_MFISMH_H
+
+#include <mod_rcar_mfismh.h>
+
+#include <fwk_macros.h>
+
+#include <stdint.h>
+
+#define MFIS_IRQ_MIN (256U)
+#define MFIS_IRQ_MAX (MFIS_IRQ_MIN + 8U)
+#define MFIS_IRQ2NO(irn) (irn - MFIS_IRQ_MIN)
+#define IS_MFIS_IRQ(irn) \
+ (((irn < MFIS_IRQ_MIN) || (irn > MFIS_IRQ_MAX)) ? 0 : 1)
+
+/*!
+ * \brief SMCMB Register Definitions
+ */
+struct mfismh_reg {
+ /*! Communication Control Register(->R) */
+ FWK_R uint32_t reserve;
+ /*! Communication Control Register(->CA) */
+ FWK_W union {
+ struct {
+ uint32_t eir : 1;
+ uint32_t eic : 15;
+ uint32_t reserve : 16;
+ } CCR;
+ uint32_t CCR2CA;
+ };
+};
+
+#endif /* RCAR_MFISMH_H */