summaryrefslogtreecommitdiff
path: root/include/soc/imx8/sc/scfw.h
blob: 3c77c69f7f891710b1c7f0a7f1468548e2d8225e (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
/*
 * Copyright (C) 2016 Freescale Semiconductor, Inc.
 * Copyright 2017 NXP
 *
 * SPDX-License-Identifier:     GPL-2.0+
 */

#ifndef _SC_SCFW_H
#define _SC_SCFW_H

#include <linux/types.h>

/*!
 * This type is used to declare a handle for an IPC communication
 * channel. Its meaning is specific to the IPC implementation.
 */
typedef uint32_t sc_ipc_t;

/*!
 * This type is used to declare an ID for an IPC communication
 * channel. Its meaning is specific to the IPC implementation.
 */
typedef uint32_t sc_ipc_id_t;

/*!
 * This function returns the MU channel ID for this implementation
 *
 * @param[in]     ipc         pointer to Mu channel ID
 * @return Returns an error code (SC_ERR_NONE = success, SC_ERR_IPC
 *         otherwise).
 */
int sc_ipc_getMuID(uint32_t *mu_id);

#endif