diff options
Diffstat (limited to 'include/host_command.h')
-rw-r--r-- | include/host_command.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h index 158367a80b..1fbf0b6554 100644 --- a/include/host_command.h +++ b/include/host_command.h @@ -207,4 +207,18 @@ void host_packet_receive(struct host_packet *pkt); */ void host_throttle_cpu(int throttle); +/** + * Send host command to PD MCU. + * + * @param command Host command number + * @param version Version of host command + * @param outdata Pointer to buffer of out data + * @param outsize Size of buffer to out data + * @param indata Pointer to buffer to store response + * @param insize Size of buffer to store response + */ +int pd_host_command(int command, int version, + const void *outdata, int outsize, + void *indata, int insize); + #endif /* __CROS_EC_HOST_COMMAND_H */ |