1 // Copyright (C) 2022 Beken Corporation 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #pragma once 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 #include <soc/soc.h> 22 23 //TODO place all auto-generated Registers here!!! 24 //MBOX0 cpu0 to cpu1 25 //MBOX1 cpu1 to cpu0 26 #define MAILBOX_BASE (SOC_MBOX0_REG_BASE) 27 28 /* 29 IRQ_MAILBOX1 (49) 30 IRQ_MAILBOX0 (48) 31 IRQ_MAILBOX1_BIT (1<<49) 32 IRQ_MAILBOX0_BIT (1<<48) 33 */ 34 35 //Be careful of the following configurations 36 //IRQ_MAILBOX1 for MAILBOX0 37 //IRQ_MAILBOX2 for MAILBOX1 38 #define IRQ_MAILBOX0_SENDER IRQ_MAILBOX1 39 #define IRQ_MAILBOX1_RECEIVER IRQ_MAILBOX2 40 #define IRQ_MAILBOX0_SENDER_BIT IRQ_MAILBOX1_BIT 41 #define IRQ_MAILBOX1_RECEIVER_BIT IRQ_MAILBOX2_BIT 42 43 #ifdef __cplusplus 44 } 45 #endif 46 // eof 47 48