1a7084c3dSSuman Anna /* SPDX-License-Identifier: BSD-3-Clause */ 234ed5a33SOhad Ben-Cohen /* 334ed5a33SOhad Ben-Cohen * Remote processor messaging 434ed5a33SOhad Ben-Cohen * 59077ac1aSSuman Anna * Copyright (C) 2011-2020 Texas Instruments, Inc. 634ed5a33SOhad Ben-Cohen * Copyright (C) 2011 Google, Inc. 734ed5a33SOhad Ben-Cohen * All rights reserved. 834ed5a33SOhad Ben-Cohen */ 934ed5a33SOhad Ben-Cohen 1034ed5a33SOhad Ben-Cohen #ifndef _OMAP_RPMSG_H 1134ed5a33SOhad Ben-Cohen #define _OMAP_RPMSG_H 1234ed5a33SOhad Ben-Cohen 1334ed5a33SOhad Ben-Cohen /* 1434ed5a33SOhad Ben-Cohen * enum - Predefined Mailbox Messages 1534ed5a33SOhad Ben-Cohen * 1634ed5a33SOhad Ben-Cohen * @RP_MBOX_READY: informs the M3's that we're up and running. this is 1734ed5a33SOhad Ben-Cohen * part of the init sequence sent that the M3 expects to see immediately 1834ed5a33SOhad Ben-Cohen * after it is booted. 1934ed5a33SOhad Ben-Cohen * 2034ed5a33SOhad Ben-Cohen * @RP_MBOX_PENDING_MSG: informs the receiver that there is an inbound 2134ed5a33SOhad Ben-Cohen * message waiting in its own receive-side vring. please note that currently 2234ed5a33SOhad Ben-Cohen * this message is optional: alternatively, one can explicitly send the index 2334ed5a33SOhad Ben-Cohen * of the triggered virtqueue itself. the preferred approach will be decided 2434ed5a33SOhad Ben-Cohen * as we progress and experiment with those two different approaches. 2534ed5a33SOhad Ben-Cohen * 2634ed5a33SOhad Ben-Cohen * @RP_MBOX_CRASH: this message is sent if BIOS crashes 2734ed5a33SOhad Ben-Cohen * 2834ed5a33SOhad Ben-Cohen * @RP_MBOX_ECHO_REQUEST: a mailbox-level "ping" message. 2934ed5a33SOhad Ben-Cohen * 3034ed5a33SOhad Ben-Cohen * @RP_MBOX_ECHO_REPLY: a mailbox-level reply to a "ping" 3134ed5a33SOhad Ben-Cohen * 3234ed5a33SOhad Ben-Cohen * @RP_MBOX_ABORT_REQUEST: a "please crash" request, used for testing the 3334ed5a33SOhad Ben-Cohen * recovery mechanism (to some extent). 348135d1d2SSuman Anna * 359077ac1aSSuman Anna * @RP_MBOX_SUSPEND_AUTO: auto suspend request for the remote processor 369077ac1aSSuman Anna * 379077ac1aSSuman Anna * @RP_MBOX_SUSPEND_SYSTEM: system suspend request for the remote processor 389077ac1aSSuman Anna * 399077ac1aSSuman Anna * @RP_MBOX_SUSPEND_ACK: successful response from remote processor for a 409077ac1aSSuman Anna * suspend request 419077ac1aSSuman Anna * 429077ac1aSSuman Anna * @RP_MBOX_SUSPEND_CANCEL: a cancel suspend response from a remote processor 439077ac1aSSuman Anna * on a suspend request 449077ac1aSSuman Anna * 458135d1d2SSuman Anna * Introduce new message definitions if any here. 468135d1d2SSuman Anna * 478135d1d2SSuman Anna * @RP_MBOX_END_MSG: Indicates end of known/defined messages from remote core 488135d1d2SSuman Anna * This should be the last definition. 498135d1d2SSuman Anna * 5034ed5a33SOhad Ben-Cohen */ 5134ed5a33SOhad Ben-Cohen enum omap_rp_mbox_messages { 5234ed5a33SOhad Ben-Cohen RP_MBOX_READY = 0xFFFFFF00, 5334ed5a33SOhad Ben-Cohen RP_MBOX_PENDING_MSG = 0xFFFFFF01, 5434ed5a33SOhad Ben-Cohen RP_MBOX_CRASH = 0xFFFFFF02, 5534ed5a33SOhad Ben-Cohen RP_MBOX_ECHO_REQUEST = 0xFFFFFF03, 5634ed5a33SOhad Ben-Cohen RP_MBOX_ECHO_REPLY = 0xFFFFFF04, 5734ed5a33SOhad Ben-Cohen RP_MBOX_ABORT_REQUEST = 0xFFFFFF05, 589077ac1aSSuman Anna RP_MBOX_SUSPEND_AUTO = 0xFFFFFF10, 599077ac1aSSuman Anna RP_MBOX_SUSPEND_SYSTEM = 0xFFFFFF11, 609077ac1aSSuman Anna RP_MBOX_SUSPEND_ACK = 0xFFFFFF12, 619077ac1aSSuman Anna RP_MBOX_SUSPEND_CANCEL = 0xFFFFFF13, 629077ac1aSSuman Anna RP_MBOX_END_MSG = 0xFFFFFF14, 6334ed5a33SOhad Ben-Cohen }; 6434ed5a33SOhad Ben-Cohen 6534ed5a33SOhad Ben-Cohen #endif /* _OMAP_RPMSG_H */ 66