aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2025-01-12 11:22:00 +0530
committerAnup Patel <anup@brainfault.org>2025-02-13 11:10:03 +0530
commit91012b475dafaa21a5fdeebbdea73af2b6733b4f (patch)
tree451557161f8e79e394434bbc83c81ddea392fbd2 /include
parentf8272946daf6bfd6d566254a16d9234b3afda1ee (diff)
downloadopensbi-91012b475dafaa21a5fdeebbdea73af2b6733b4f.zip
opensbi-91012b475dafaa21a5fdeebbdea73af2b6733b4f.tar.gz
opensbi-91012b475dafaa21a5fdeebbdea73af2b6733b4f.tar.bz2
lib: utils: Implement get_attribute() for the RPMI shared memory mailbox
To allow clients query service group version of a RPMI mailbox channel, implement get_attribute() callback for the RPMI shared memory mailbox controller. Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbi_utils/mailbox/rpmi_msgprot.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/sbi_utils/mailbox/rpmi_msgprot.h b/include/sbi_utils/mailbox/rpmi_msgprot.h
index 9575dc7..17d678a 100644
--- a/include/sbi_utils/mailbox/rpmi_msgprot.h
+++ b/include/sbi_utils/mailbox/rpmi_msgprot.h
@@ -175,7 +175,7 @@ enum rpmi_error {
RPMI_ERR_VENDOR_START = -128,
};
-/** RPMI Message Arguments */
+/** RPMI Mailbox Message Arguments */
struct rpmi_message_args {
u32 flags;
#define RPMI_MSG_FLAGS_NO_TX (1U << 0)
@@ -189,6 +189,17 @@ struct rpmi_message_args {
u32 rx_data_len;
};
+/** RPMI Mailbox Channel Attribute IDs */
+enum rpmi_channel_attribute_id {
+ RPMI_CHANNEL_ATTR_PROTOCOL_VERSION = 0,
+ RPMI_CHANNEL_ATTR_MAX_DATA_LEN,
+ RPMI_CHANNEL_ATTR_TX_TIMEOUT,
+ RPMI_CHANNEL_ATTR_RX_TIMEOUT,
+ RPMI_CHANNEL_ATTR_SERVICEGROUP_ID,
+ RPMI_CHANNEL_ATTR_SERVICEGROUP_VERSION,
+ RPMI_CHANNEL_ATTR_MAX,
+};
+
/*
* RPMI SERVICEGROUPS AND SERVICES
*/