RTEMS CAN/CAN FD Stack
Loading...
Searching...
No Matches
ctucanfd.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0 OR GPL-2.0-or-later */
2
12/*
13* Copyright (C) 2023-2024 Michal Lenc <michallenc@seznam.cz>
14* Implementation is based on Linux CTU CAN FD driver
15* Copyright (C) 2015-2018 Ondrej Ille <ondrej.ille@gmail.com> FEE CTU
16* Copyright (C) 2018-2021 Ondrej Ille <ondrej.ille@gmail.com> self-funded
17* Copyright (C) 2018-2019 Martin Jerabek <martin.jerabek01@gmail.com> FEE CTU
18* Copyright (C) 2018-2022 Pavel Pisa <pisa@cmp.felk.cvut.cz> FEE CTU/self-funded
19*
20* Redistribution and use in source and binary forms, with or without
21* modification, are permitted provided that the following conditions
22* are met:
23* 1. Redistributions of source code must retain the above copyright
24* notice, this list of conditions and the following disclaimer.
25* 2. Redistributions in binary form must reproduce the above copyright
26* notice, this list of conditions and the following disclaimer in the
27* documentation and/or other materials provided with the distribution.
28*
29* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
33* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39* POSSIBILITY OF SUCH DAMAGE.
40*/
41
42#ifndef _DEV_CAN_CTUCANFD_H
43#define _DEV_CAN_CTUCANFD_H
44
45struct can_chip;
46
48 uint32_t addr,
49 rtems_vector_number irq,
50 int ntxbufs,
51 rtems_option irq_option,
52 unsigned long can_clk_rate
53);
54
55#endif /* _DEV_CAN_CTUCANFD_H */
struct can_chip * ctucanfd_initialize(uint32_t addr, rtems_vector_number irq, int ntxbufs, rtems_option irq_option, unsigned long can_clk_rate)
This function initializes the CTU CAN FD controller.
Definition: ctucanfd.c:1491
This structure represents one CAN controller.
Definition: can-devcommon.h:144
rtems_vector_number irq
This member holds controller's interrupt number.
Definition: can-devcommon.h:152