|
1 |
| -/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ |
| 1 | +/* SPDX-License-Identifier: ((GPL-2.0-only WITH Linux-syscall-note) OR BSD-3-Clause) */ |
2 | 2 | /*
|
3 |
| - * socketcan/can/isotp.h |
| 3 | + * linux/can/isotp.h |
4 | 4 | *
|
5 |
| - * Definitions for isotp CAN sockets |
| 5 | + * Definitions for isotp CAN sockets (ISO 15765-2:2016) |
6 | 6 | *
|
7 |
| - * Author: Oliver Hartkopp <oliver.hartkopp@volkswagen.de> |
8 |
| - * Copyright (c) 2008 Volkswagen Group Electronic Research |
| 7 | + * Copyright (c) 2020 Volkswagen Group Electronic Research |
9 | 8 | * All rights reserved.
|
10 | 9 | *
|
11 |
| - * Send feedback to <socketcan-users@lists.berlios.de> |
| 10 | + * Redistribution and use in source and binary forms, with or without |
| 11 | + * modification, are permitted provided that the following conditions |
| 12 | + * are met: |
| 13 | + * 1. Redistributions of source code must retain the above copyright |
| 14 | + * notice, this list of conditions and the following disclaimer. |
| 15 | + * 2. Redistributions in binary form must reproduce the above copyright |
| 16 | + * notice, this list of conditions and the following disclaimer in the |
| 17 | + * documentation and/or other materials provided with the distribution. |
| 18 | + * 3. Neither the name of Volkswagen nor the names of its contributors |
| 19 | + * may be used to endorse or promote products derived from this software |
| 20 | + * without specific prior written permission. |
12 | 21 | *
|
| 22 | + * Alternatively, provided that this notice is retained in full, this |
| 23 | + * software may be distributed under the terms of the GNU General |
| 24 | + * Public License ("GPL") version 2, in which case the provisions of the |
| 25 | + * GPL apply INSTEAD OF those given above. |
| 26 | + * |
| 27 | + * The provided data structures and external interfaces from this code |
| 28 | + * are not restricted to be used by modules with a GPL compatible license. |
| 29 | + * |
| 30 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 31 | + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 32 | + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 33 | + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 34 | + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 35 | + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 36 | + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 37 | + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 38 | + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 39 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 40 | + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
| 41 | + * DAMAGE. |
13 | 42 | */
|
14 | 43 |
|
15 |
| -#ifndef CAN_ISOTP_H |
16 |
| -#define CAN_ISOTP_H |
| 44 | +#ifndef _UAPI_CAN_ISOTP_H |
| 45 | +#define _UAPI_CAN_ISOTP_H |
17 | 46 |
|
| 47 | +#include <linux/types.h> |
18 | 48 | #include <linux/can.h>
|
19 | 49 |
|
20 | 50 | #define SOL_CAN_ISOTP (SOL_CAN_BASE + CAN_ISOTP)
|
@@ -132,4 +162,4 @@ struct can_isotp_ll_options {
|
132 | 162 | *
|
133 | 163 | */
|
134 | 164 |
|
135 |
| -#endif |
| 165 | +#endif /* !_UAPI_CAN_ISOTP_H */ |
0 commit comments