PDK API Guide for AM64x
mailbox_soc.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Texas Instruments Incorporated 2020
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
39 #ifndef MAILBOX_SOC_H_
40 #define MAILBOX_SOC_H_
41 
42 /* ========================================================================== */
43 /* Include Files */
44 /* ========================================================================== */
45 
46 #include <ti/csl/csl_types.h>
47 #include <ti/csl/csl_mailbox.h>
48 #include <ti/csl/soc.h>
49 #include <ti/csl/arch/csl_arch.h>
50 #include <ti/csl/src/ip/mailbox/V0/mailbox.h>
51 //#include <ti/drv/mailbox/mailbox.h>
52 //#include <ti/drv/mailbox/src/mailbox_internal.h>
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
58 /* ========================================================================== */
59 /* Macros & Typedefs */
60 /* ========================================================================== */
62 typedef uint32_t Mailbox_Instance;
63 
70 #define MAILBOX_INST_MPU1_0 (0U)
71 
72 #define MAILBOX_INST_MCU1_0 (1U)
73 
74 #define MAILBOX_INST_MCU1_1 (2U)
75 
76 #define MAILBOX_INST_MCU2_0 (3U)
77 
78 #define MAILBOX_INST_MCU2_1 (4U)
79 
80 #define MAILBOX_INST_M4F_0 (5U)
81 
82 #define MAILBOX_INST_LAST (MAILBOX_INST_M4F_0)
83 
84 #define MAILBOX_INST_INVALID (0xFFU)
85  /* end defgroup MAILBOX_INSTANCE */
87 
89 #define MAILBOX_MAX_INST (MAILBOX_INST_LAST + 1U)
90 
91 #define MAILBOX_CLUSTER_INVALID (0xFFU)
92 #define MAILBOX_USER_INVALID (0xFFU)
93 
94 #define TEST_VIM_BASE_ADDR (CSL_MAIN_DOMAIN_VIM_BASE_ADDR)
95 
96 /* ========================================================================== */
97 /* Structure Declarations */
98 /* ========================================================================== */
99 
103 typedef struct Mailbox_MbConfig_s
104 {
105  uint32_t priority;
106  uint32_t eventId;
107  uint32_t inputIntrNum;
108  uint32_t outputIntrNum;
110 
111 /* ========================================================================== */
112 /* Function Declarations */
113 /* ========================================================================== */
114 
115 /* None */
116 
117 /* ========================================================================== */
118 /* Static Function Definitions */
119 /* ========================================================================== */
120 
121 /* None */
122 
123 #ifdef __cplusplus
124 }
125 #endif
126 
127 #endif /* #ifndef MAILBOX_SOC_H_ */
uint32_t Mailbox_Instance
Mailbox Instance Number.
Definition: mailbox_soc.h:62
uint32_t eventId
Definition: mailbox_soc.h:106
uint32_t outputIntrNum
Definition: mailbox_soc.h:108
uint32_t priority
Definition: mailbox_soc.h:105
This file contains the Register Desciptions for CSL types.
uint32_t inputIntrNum
Definition: mailbox_soc.h:107
Mailbox interrupt router configuration.
Definition: mailbox_soc.h:103