From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu-Chien Peter Lin Date: Fri, 11 Oct 2024 19:26:23 +0800 Subject: [PATCH 13/16] lib: sbi: Add SBI Message Proxy (MPXY) framework In-Reply-To: <20240806073338.1856901-14-apatel@ventanamicro.com> References: <20240806073338.1856901-1-apatel@ventanamicro.com> <20240806073338.1856901-14-apatel@ventanamicro.com> Message-ID: List-Id: To: opensbi@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Anup, On Tue, Aug 06, 2024 at 01:03:35PM +0530, Anup Patel wrote: > From: Rahul Pathak > > Introduce SBI Message Proxy (MPXY) framework which allows platform specific > code or drivers to register message protocol specific channels. > > This framework enables the supervisor software to send messages belonging > to different message protocols via OpenSBI firmware. > > Signed-off-by: Rahul Pathak > Co-developed-by: Himanshu Chauhan > Signed-off-by: Himanshu Chauhan > Co-developed-by: Anup Patel > Signed-off-by: Anup Patel <...> > +/** Disable hart shared memory */ > +static inline void sbi_mpxy_shmem_disable(struct mpxy_state *rs) > +{ > + rs->shmem.shmem_size = 0; > + rs->shmem.shmem_addr_lo = INVALID_ADDR; > + rs->shmem.shmem_addr_hi = INVALID_ADDR; nitpicking: if the abbreviation "rs" representing the RPXY state, would it be renamed as "ms"? Best regards, Peter Lin