aboutsummaryrefslogtreecommitdiff
path: root/product/rcar/module/rcar_mfismh/src/rcar_mfismh.h
blob: e01d21337bdab50f313dfde66b48666c56ebafb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 */