linux-stable/include/linux/can
Marc Kleine-Budde 9beebc2b5d can: dev: add can_state_get_by_berr_counter() to return the CAN state based on the current error counters
Some CAN controllers do not have a register that contains the current
CAN state, but only a register that contains the error counters.

Introduce a new function can_state_get_by_berr_counter() that returns
the current TX and RX state depending on the provided CAN bit error
counters.

Link: https://lore.kernel.org/all/20231005-at91_can-rx_offload-v2-1-9987d53600e0@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2023-10-05 21:44:48 +02:00
..
dev can: remove obsolete get_canfd_dlc() macro 2020-11-20 09:43:30 +01:00
platform can: sja1000: fix size of OCR_MODE_MASK define 2022-11-24 16:01:04 +01:00
bittiming.h can: bittiming: can_calc_bittiming(): add missing parameter to no-op function 2023-02-08 21:53:24 +01:00
can-ml.h net: introduce CAN specific pointer in the struct net_device 2021-02-24 14:32:15 -08:00
core.h can: remove obsolete version strings 2020-10-12 10:06:39 +02:00
dev.h can: dev: add can_state_get_by_berr_counter() to return the CAN state based on the current error counters 2023-10-05 21:44:48 +02:00
length.h can: length: refactor frame lengths definition to add size in bits 2023-06-22 09:43:40 +02:00
rx-offload.h can: rx-offload: add can_rx_offload_get_echo_skb_queue_tail() 2023-07-28 09:45:25 +02:00
skb.h can: canxl: update CAN infrastructure for CAN XL frames 2022-09-15 09:08:09 +02:00