Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
shmem.h
Go to the documentation of this file.
1/*
2 * Copyright 2024 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef _INCLUDE_ZEPHYR_DRIVERS_FIRMWARE_SCMI_SHMEM_H_
13#define _INCLUDE_ZEPHYR_DRIVERS_FIRMWARE_SCMI_SHMEM_H_
14
15#include <zephyr/device.h>
16#include <zephyr/arch/cpu.h>
17#include <errno.h>
18
19#define SCMI_SHMEM_CHAN_STATUS_BUSY_BIT BIT(0)
20#define SCMI_SHMEM_CHAN_FLAG_IRQ_BIT BIT(0)
21
22struct scmi_message;
23
33int scmi_shmem_write_message(const struct device *shmem,
34 struct scmi_message *msg);
35
45int scmi_shmem_read_message(const struct device *shmem,
46 struct scmi_message *msg);
47
57void scmi_shmem_update_flags(const struct device *shmem,
58 uint32_t mask, uint32_t val);
59
66
67#endif /* _INCLUDE_ZEPHYR_DRIVERS_FIRMWARE_SCMI_SHMEM_H_ */
System error numbers.
uint32_t scmi_shmem_channel_status(const struct device *shmem)
Read a channel's status.
void scmi_shmem_update_flags(const struct device *shmem, uint32_t mask, uint32_t val)
Update the channel flags.
int scmi_shmem_write_message(const struct device *shmem, struct scmi_message *msg)
Write a message in the SHMEM area.
int scmi_shmem_read_message(const struct device *shmem, struct scmi_message *msg)
Read a message from a SHMEM area.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Runtime device structure (in ROM) per driver instance.
Definition device.h:403
SCMI message structure.
Definition protocol.h:90