~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/can/bcm.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/can/bcm.h (Version linux-6.11.5) and /include/uapi/linux/can/bcm.h (Version policy-sample)


  1 /* SPDX-License-Identifier: ((GPL-2.0-only WIT      1 
  2 /*                                                
  3  * linux/can/bcm.h                                
  4  *                                                
  5  * Definitions for CAN Broadcast Manager (BCM)    
  6  *                                                
  7  * Author: Oliver Hartkopp <oliver.hartkopp@vo    
  8  * Copyright (c) 2002-2007 Volkswagen Group El    
  9  * All rights reserved.                           
 10  *                                                
 11  * Redistribution and use in source and binary    
 12  * modification, are permitted provided that t    
 13  * are met:                                       
 14  * 1. Redistributions of source code must reta    
 15  *    notice, this list of conditions and the     
 16  * 2. Redistributions in binary form must repr    
 17  *    notice, this list of conditions and the     
 18  *    documentation and/or other materials pro    
 19  * 3. Neither the name of Volkswagen nor the n    
 20  *    may be used to endorse or promote produc    
 21  *    without specific prior written permissio    
 22  *                                                
 23  * Alternatively, provided that this notice is    
 24  * software may be distributed under the terms    
 25  * Public License ("GPL") version 2, in which     
 26  * GPL apply INSTEAD OF those given above.        
 27  *                                                
 28  * The provided data structures and external i    
 29  * are not restricted to be used by modules wi    
 30  *                                                
 31  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT     
 32  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTI    
 33  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCH    
 34  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO     
 35  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIR    
 36  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGE    
 37  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS    
 38  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION)    
 39  * THEORY OF LIABILITY, WHETHER IN CONTRACT, S    
 40  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING    
 41  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE PO    
 42  * DAMAGE.                                        
 43  */                                               
 44                                                   
 45 #ifndef _UAPI_CAN_BCM_H                           
 46 #define _UAPI_CAN_BCM_H                           
 47                                                   
 48 #include <linux/types.h>                          
 49 #include <linux/can.h>                            
 50                                                   
 51 struct bcm_timeval {                              
 52         long tv_sec;                              
 53         long tv_usec;                             
 54 };                                                
 55                                                   
 56 /**                                               
 57  * struct bcm_msg_head - head of messages to/f    
 58  * @opcode:    opcode, see enum below.            
 59  * @flags:     special flags, see below.          
 60  * @count:     number of frames to send before    
 61  * @ival1:     interval for the first @count f    
 62  * @ival2:     interval for the following fram    
 63  * @can_id:    CAN ID of frames to be sent or     
 64  * @nframes:   number of frames appended to th    
 65  * @frames:    array of CAN frames.               
 66  */                                               
 67 struct bcm_msg_head {                             
 68         __u32 opcode;                             
 69         __u32 flags;                              
 70         __u32 count;                              
 71         struct bcm_timeval ival1, ival2;          
 72         canid_t can_id;                           
 73         __u32 nframes;                            
 74         struct can_frame frames[];                
 75 };                                                
 76                                                   
 77 enum {                                            
 78         TX_SETUP = 1,   /* create (cyclic) tra    
 79         TX_DELETE,      /* remove (cyclic) tra    
 80         TX_READ,        /* read properties of     
 81         TX_SEND,        /* send one CAN frame     
 82         RX_SETUP,       /* create RX content f    
 83         RX_DELETE,      /* remove RX content f    
 84         RX_READ,        /* read properties of     
 85         TX_STATUS,      /* reply to TX_READ re    
 86         TX_EXPIRED,     /* notification on per    
 87         RX_STATUS,      /* reply to RX_READ re    
 88         RX_TIMEOUT,     /* cyclic message is a    
 89         RX_CHANGED      /* updated CAN frame (    
 90 };                                                
 91                                                   
 92 #define SETTIMER            0x0001                
 93 #define STARTTIMER          0x0002                
 94 #define TX_COUNTEVT         0x0004                
 95 #define TX_ANNOUNCE         0x0008                
 96 #define TX_CP_CAN_ID        0x0010                
 97 #define RX_FILTER_ID        0x0020                
 98 #define RX_CHECK_DLC        0x0040                
 99 #define RX_NO_AUTOTIMER     0x0080                
100 #define RX_ANNOUNCE_RESUME  0x0100                
101 #define TX_RESET_MULTI_IDX  0x0200                
102 #define RX_RTR_FRAME        0x0400                
103 #define CAN_FD_FRAME        0x0800                
104                                                   
105 #endif /* !_UAPI_CAN_BCM_H */                     
106                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php