diff options
author | Jan Charvat | 2020-09-14 10:13:38 +0200 |
---|---|---|
committer | Paolo Bonzini | 2020-09-30 19:11:37 +0200 |
commit | ad0c6740d1085a67f319ed1432598e3f3912a707 (patch) | |
tree | d3792d8595fd52c1428badb2fd0008532723b001 /include/net | |
parent | hw/net/can: sja1000 ignore CAN FD frames (diff) | |
download | qemu-ad0c6740d1085a67f319ed1432598e3f3912a707.tar.gz qemu-ad0c6740d1085a67f319ed1432598e3f3912a707.tar.xz qemu-ad0c6740d1085a67f319ed1432598e3f3912a707.zip |
net/can: Add can_dlc2len and can_len2dlc for CAN FD.
Signed-off-by: Jan Charvat <charvj10@fel.cvut.cz>
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Reviewed-by: Vikram Garhwal <fnu.vikram@xilinx.com>
Message-Id: <0a2efc6ef9c458505952ed230e49ae25cad7f324.1600069689.git.pisa@cmp.felk.cvut.cz>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/can_emu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/can_emu.h b/include/net/can_emu.h index cab98ee8ec..6f9b206bb5 100644 --- a/include/net/can_emu.h +++ b/include/net/can_emu.h @@ -122,4 +122,8 @@ int can_bus_client_set_filters(CanBusClientState *, const struct qemu_can_filter *filters, size_t filters_cnt); +uint8_t can_dlc2len(uint8_t can_dlc); + +uint8_t can_len2dlc(uint8_t len); + #endif |