summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKrzysztof Richert <krzysztof.richert@intel.com>2022-04-05 16:19:52 +0300
committerKrzysztof Richert <krzysiek.richert@gmail.com>2022-04-15 10:15:51 +0300
commit6329b11a61a5c3ee529e228731023239d036e40b (patch)
tree747577787a5cf6e089181a0182f4df4338271ab6 /include
parent913231244a40110c832b5ec0afabda89d4d95f0f (diff)
downloadlinux-6329b11a61a5c3ee529e228731023239d036e40b.tar.xz
soc: aspeed: mctp: Extend internal aspeed-mctp driver API
New API allows to read DomainId information by internal kernel clients (for example peci-mctp). Signed-off-by: Krzysztof Richert <krzysztof.richert@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/aspeed-mctp.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/aspeed-mctp.h b/include/linux/aspeed-mctp.h
index d56dceaf146d..d286060a79ee 100644
--- a/include/linux/aspeed-mctp.h
+++ b/include/linux/aspeed-mctp.h
@@ -129,6 +129,20 @@ void aspeed_mctp_flush_rx_queue(struct mctp_client *client);
*/
int aspeed_mctp_get_eid_bdf(struct mctp_client *client, u8 eid, u16 *bdf);
+/**
+ * aspeed_mctp_get_eid() - return EID for requested BDF and domainId.
+ * @client: pointer to existing mctp_client context
+ * @bdf: requested BDF value
+ * @domain_id: requested domainId
+ * @eid: pointer to store EID value
+ *
+ * Return:
+ * * 0 - success,
+ * * -ENOENT - there is no record for requested bdf/domainId.
+ */
+int aspeed_mctp_get_eid(struct mctp_client *client, u16 bdf,
+ u8 domain_id, u8 *eid);
+
void *aspeed_mctp_packet_alloc(gfp_t flags);
void aspeed_mctp_packet_free(void *packet);