mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
lib: sbi: Update MPXY framework and SBI extension as per latest spec
The latest SBI 3.0 spec defines a new sbi_mpxy_get_shmem_size() function and simplifies sbi_mpxy_set_shmem() function so update the MPXY framework and SBI extension accordingly. Signed-off-by: Anup Patel <apatel@ventanamicro.com>
This commit is contained in:
@@ -423,13 +423,14 @@ enum sbi_sse_state {
|
||||
#define SBI_SSE_EVENT_PLATFORM_BIT (1 << 14)
|
||||
|
||||
/* SBI function IDs for MPXY extension */
|
||||
#define SBI_EXT_MPXY_SET_SHMEM 0x0
|
||||
#define SBI_EXT_MPXY_GET_CHANNEL_IDS 0x1
|
||||
#define SBI_EXT_MPXY_READ_ATTRS 0x2
|
||||
#define SBI_EXT_MPXY_WRITE_ATTRS 0x3
|
||||
#define SBI_EXT_MPXY_SEND_MSG_WITH_RESP 0x4
|
||||
#define SBI_EXT_MPXY_SEND_MSG_NO_RESP 0x5
|
||||
#define SBI_EXT_MPXY_GET_NOTIFICATION_EVENTS 0x6
|
||||
#define SBI_EXT_MPXY_GET_SHMEM_SIZE 0x0
|
||||
#define SBI_EXT_MPXY_SET_SHMEM 0x1
|
||||
#define SBI_EXT_MPXY_GET_CHANNEL_IDS 0x2
|
||||
#define SBI_EXT_MPXY_READ_ATTRS 0x3
|
||||
#define SBI_EXT_MPXY_WRITE_ATTRS 0x4
|
||||
#define SBI_EXT_MPXY_SEND_MSG_WITH_RESP 0x5
|
||||
#define SBI_EXT_MPXY_SEND_MSG_WITHOUT_RESP 0x6
|
||||
#define SBI_EXT_MPXY_GET_NOTIFICATION_EVENTS 0x7
|
||||
|
||||
/* SBI base specification related macros */
|
||||
#define SBI_SPEC_VERSION_MAJOR_OFFSET 24
|
||||
|
Reference in New Issue
Block a user