diff options
author | 2021-09-24 07:12:42 -0500 | |
---|---|---|
committer | 2021-10-05 06:54:16 -0500 | |
commit | 1e4071f6282b3323435b02b1719bcfbfe1b57150 (patch) | |
tree | 13e77253e6da5bdf85e51c297355e16a32c799c5 /include/linux/ipmi.h | |
parent | ipmi: Fix a typo (diff) | |
download | linux-1e4071f6282b3323435b02b1719bcfbfe1b57150.tar.gz linux-1e4071f6282b3323435b02b1719bcfbfe1b57150.tar.bz2 linux-1e4071f6282b3323435b02b1719bcfbfe1b57150.zip |
ipmi: Export ipmb_checksum()
It will be needed by the upcoming ipmb direct addressing.
Signed-off-by: Corey Minyard <minyard@acm.org>
Tested-by: Andrew Manley <andrew.manley@sealingtech.com>
Reviewed-by: Andrew Manley <andrew.manley@sealingtech.com>
Diffstat (limited to 'include/linux/ipmi.h')
-rw-r--r-- | include/linux/ipmi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/ipmi.h b/include/linux/ipmi.h index 52850a02a3d0..163831a087ef 100644 --- a/include/linux/ipmi.h +++ b/include/linux/ipmi.h @@ -335,4 +335,7 @@ extern int ipmi_get_smi_info(int if_num, struct ipmi_smi_info *data); #define GET_DEVICE_ID_MAX_RETRY 5 +/* Helper function for computing the IPMB checksum of some data. */ +unsigned char ipmb_checksum(unsigned char *data, int size); + #endif /* __LINUX_IPMI_H */ |