X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fscmi_agent.h;h=ee6286366df7883f6bb8c41281dbce772e00ab62;hb=c56289ddafce3d1ec442fb18064f136c2c47d0bb;hp=18bcd48a9d4300be31561dc5a83ca884c92e24bc;hpb=4de720e98d552dfda9278516bf788c4a73b3e56f;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/scmi_agent.h b/include/scmi_agent.h index 18bcd48..ee62863 100644 --- a/include/scmi_agent.h +++ b/include/scmi_agent.h @@ -13,6 +13,7 @@ #include struct udevice; +struct scmi_channel; /* * struct scmi_msg - Context of a SCMI message sent and the response received @@ -45,6 +46,15 @@ struct scmi_msg { } /** + * devm_scmi_of_get_channel() - Get SCMI channel handle from SCMI agent DT node + * + * @dev: Device requesting a channel + * @channel: Output reference to the SCMI channel upon success + * @return 0 on success and a negative errno on failure + */ +int devm_scmi_of_get_channel(struct udevice *dev, struct scmi_channel **channel); + +/** * devm_scmi_process_msg() - Send and process an SCMI message * * Send a message to an SCMI server through a target SCMI agent device. @@ -52,10 +62,12 @@ struct scmi_msg { * On return, scmi_msg::out_msg_sz stores the response payload size. * * @dev: SCMI device + * @channel: Communication channel for the device * @msg: Message structure reference * Return: 0 on success and a negative errno on failure */ -int devm_scmi_process_msg(struct udevice *dev, struct scmi_msg *msg); +int devm_scmi_process_msg(struct udevice *dev, struct scmi_channel *channel, + struct scmi_msg *msg); /** * scmi_to_linux_errno() - Convert an SCMI error code into a Linux errno code