Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux/can
File: bcm.h
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
[0] Fix | Delete
/*
[1] Fix | Delete
* linux/can/bcm.h
[2] Fix | Delete
*
[3] Fix | Delete
* Definitions for CAN Broadcast Manager (BCM)
[4] Fix | Delete
*
[5] Fix | Delete
* Author: Oliver Hartkopp <oliver.hartkopp@volkswagen.de>
[6] Fix | Delete
* Copyright (c) 2002-2007 Volkswagen Group Electronic Research
[7] Fix | Delete
* All rights reserved.
[8] Fix | Delete
*
[9] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[10] Fix | Delete
* modification, are permitted provided that the following conditions
[11] Fix | Delete
* are met:
[12] Fix | Delete
* 1. Redistributions of source code must retain the above copyright
[13] Fix | Delete
* notice, this list of conditions and the following disclaimer.
[14] Fix | Delete
* 2. Redistributions in binary form must reproduce the above copyright
[15] Fix | Delete
* notice, this list of conditions and the following disclaimer in the
[16] Fix | Delete
* documentation and/or other materials provided with the distribution.
[17] Fix | Delete
* 3. Neither the name of Volkswagen nor the names of its contributors
[18] Fix | Delete
* may be used to endorse or promote products derived from this software
[19] Fix | Delete
* without specific prior written permission.
[20] Fix | Delete
*
[21] Fix | Delete
* Alternatively, provided that this notice is retained in full, this
[22] Fix | Delete
* software may be distributed under the terms of the GNU General
[23] Fix | Delete
* Public License ("GPL") version 2, in which case the provisions of the
[24] Fix | Delete
* GPL apply INSTEAD OF those given above.
[25] Fix | Delete
*
[26] Fix | Delete
* The provided data structures and external interfaces from this code
[27] Fix | Delete
* are not restricted to be used by modules with a GPL compatible license.
[28] Fix | Delete
*
[29] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
[30] Fix | Delete
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
[31] Fix | Delete
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
[32] Fix | Delete
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
[33] Fix | Delete
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
[34] Fix | Delete
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
[35] Fix | Delete
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
[36] Fix | Delete
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
[37] Fix | Delete
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
[38] Fix | Delete
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
[39] Fix | Delete
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
[40] Fix | Delete
* DAMAGE.
[41] Fix | Delete
*/
[42] Fix | Delete
[43] Fix | Delete
#ifndef _CAN_BCM_H
[44] Fix | Delete
#define _CAN_BCM_H
[45] Fix | Delete
[46] Fix | Delete
#include <linux/types.h>
[47] Fix | Delete
#include <linux/can.h>
[48] Fix | Delete
[49] Fix | Delete
struct bcm_timeval {
[50] Fix | Delete
long tv_sec;
[51] Fix | Delete
long tv_usec;
[52] Fix | Delete
};
[53] Fix | Delete
[54] Fix | Delete
/**
[55] Fix | Delete
* struct bcm_msg_head - head of messages to/from the broadcast manager
[56] Fix | Delete
* @opcode: opcode, see enum below.
[57] Fix | Delete
* @flags: special flags, see below.
[58] Fix | Delete
* @count: number of frames to send before changing interval.
[59] Fix | Delete
* @ival1: interval for the first @count frames.
[60] Fix | Delete
* @ival2: interval for the following frames.
[61] Fix | Delete
* @can_id: CAN ID of frames to be sent or received.
[62] Fix | Delete
* @nframes: number of frames appended to the message head.
[63] Fix | Delete
* @frames: array of CAN frames.
[64] Fix | Delete
*/
[65] Fix | Delete
struct bcm_msg_head {
[66] Fix | Delete
__u32 opcode;
[67] Fix | Delete
__u32 flags;
[68] Fix | Delete
__u32 count;
[69] Fix | Delete
struct bcm_timeval ival1, ival2;
[70] Fix | Delete
canid_t can_id;
[71] Fix | Delete
__u32 nframes;
[72] Fix | Delete
struct can_frame frames[0];
[73] Fix | Delete
};
[74] Fix | Delete
[75] Fix | Delete
enum {
[76] Fix | Delete
TX_SETUP = 1, /* create (cyclic) transmission task */
[77] Fix | Delete
TX_DELETE, /* remove (cyclic) transmission task */
[78] Fix | Delete
TX_READ, /* read properties of (cyclic) transmission task */
[79] Fix | Delete
TX_SEND, /* send one CAN frame */
[80] Fix | Delete
RX_SETUP, /* create RX content filter subscription */
[81] Fix | Delete
RX_DELETE, /* remove RX content filter subscription */
[82] Fix | Delete
RX_READ, /* read properties of RX content filter subscription */
[83] Fix | Delete
TX_STATUS, /* reply to TX_READ request */
[84] Fix | Delete
TX_EXPIRED, /* notification on performed transmissions (count=0) */
[85] Fix | Delete
RX_STATUS, /* reply to RX_READ request */
[86] Fix | Delete
RX_TIMEOUT, /* cyclic message is absent */
[87] Fix | Delete
RX_CHANGED /* updated CAN frame (detected content change) */
[88] Fix | Delete
};
[89] Fix | Delete
[90] Fix | Delete
#define SETTIMER 0x0001
[91] Fix | Delete
#define STARTTIMER 0x0002
[92] Fix | Delete
#define TX_COUNTEVT 0x0004
[93] Fix | Delete
#define TX_ANNOUNCE 0x0008
[94] Fix | Delete
#define TX_CP_CAN_ID 0x0010
[95] Fix | Delete
#define RX_FILTER_ID 0x0020
[96] Fix | Delete
#define RX_CHECK_DLC 0x0040
[97] Fix | Delete
#define RX_NO_AUTOTIMER 0x0080
[98] Fix | Delete
#define RX_ANNOUNCE_RESUME 0x0100
[99] Fix | Delete
#define TX_RESET_MULTI_IDX 0x0200
[100] Fix | Delete
#define RX_RTR_FRAME 0x0400
[101] Fix | Delete
#define CAN_FD_FRAME 0x0800
[102] Fix | Delete
[103] Fix | Delete
#endif /* !_UAPI_CAN_BCM_H */
[104] Fix | Delete
[105] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function