HomeFreeBSD

scmi: Extend and refactor SCMI shmem support

Description

scmi: Extend and refactor SCMI shmem support

Add a few new common public scmi_shmem methods to be used to handle SCMI
shared memory areas from multiple transports; while doing that review
the shared memory accesses to read only the SMT header fields strictly
relevant to the SCMI message processing.

Move all the SCMI shmem related code to the existing scmi_shmem.c file
and add a new dedicated scmi_shmem.h header.

Introduce some commonly needed message header manipulation macros.

Reviewed by: andrew
Tested on: Arm Morello Board
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D43041

Details

Provenance
cristian.marussi_arm.comAuthored on Dec 6 2023, 7:36 PM
andrewCommitted on Apr 11 2024, 9:58 AM
Reviewer
andrew
Differential Revision
D43041: scmi: Extend and refactor SCMI shmem support
Parents
rG5ea251c4ed6e: scmi: Add an SCMI SMC transport driver
Branches
Unknown
Tags
Unknown