Anson Huang | b629413 | 2018-06-05 16:05:59 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef SCI_SCFW_H |
| 8 | #define SCI_SCFW_H |
Anson Huang | b629413 | 2018-06-05 16:05:59 +0800 | [diff] [blame] | 9 | |
| 10 | /* Includes */ |
| 11 | |
Antonio Nino Diaz | 4b32e62 | 2018-08-16 16:52:57 +0100 | [diff] [blame] | 12 | #include <stdint.h> |
Anson Huang | b629413 | 2018-06-05 16:05:59 +0800 | [diff] [blame] | 13 | |
| 14 | #ifdef __cplusplus |
| 15 | #define __I volatile /*!< Defines 'read only' permissions */ |
| 16 | #else |
| 17 | #define __I volatile const /*!< Defines 'read only' permissions */ |
| 18 | #endif |
| 19 | #define __O volatile /*!< Defines 'write only' permissions */ |
| 20 | #define __IO volatile /*!< Defines 'read / write' permissions */ |
| 21 | |
| 22 | /*! |
| 23 | * This type is used to declare a handle for an IPC communication |
| 24 | * channel. Its meaning is specific to the IPC implementation. |
| 25 | */ |
| 26 | typedef uint64_t sc_ipc_t; |
| 27 | |
| 28 | /*! |
| 29 | * This type is used to declare an ID for an IPC communication |
| 30 | * channel. For the reference IPC implementation, this ID |
| 31 | * selects the base address of the MU used for IPC. |
| 32 | */ |
| 33 | typedef uint64_t sc_ipc_id_t; |
| 34 | |
| 35 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 36 | #endif /* SCI_SCFW_H */ |