Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
bcm.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/hrtimer.h>
#include <linux/list.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/uio.h>
#include <linux/net.h>
#include <linux/netdevice.h>
#include <linux/socket.h>
#include <linux/if_arp.h>
#include <linux/skbuff.h>
#include <linux/can.h>
#include <linux/can/core.h>
#include <linux/can/bcm.h>
#include <linux/slab.h>
#include <net/sock.h>
#include <net/net_namespace.h>

Go to the source code of this file.

Data Structures

struct  bcm_op
 
struct  bcm_sock
 

Macros

#define MAX_NFRAMES   256
 
#define RX_RECV   0x40 /* received data for this element */
 
#define RX_THR   0x80 /* element not been sent due to throttle feature */
 
#define BCM_CAN_DLC_MASK   0x0F /* clean private flags in can_dlc by masking */
 
#define REGMASK(id)
 
#define CAN_BCM_VERSION   CAN_VERSION
 
#define CFSIZ   sizeof(struct can_frame)
 
#define OPSIZ   sizeof(struct bcm_op)
 
#define MHSIZ   sizeof(struct bcm_msg_head)
 

Functions

 MODULE_DESCRIPTION ("PF_CAN broadcast manager protocol")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 MODULE_AUTHOR ("Oliver Hartkopp <[email protected]>")
 
 MODULE_ALIAS ("can-proto-2")
 
 module_init (bcm_module_init)
 
 module_exit (bcm_module_exit)
 

Macro Definition Documentation

#define BCM_CAN_DLC_MASK   0x0F /* clean private flags in can_dlc by masking */

Definition at line 72 of file bcm.c.

#define CAN_BCM_VERSION   CAN_VERSION

Definition at line 79 of file bcm.c.

#define CFSIZ   sizeof(struct can_frame)

Definition at line 135 of file bcm.c.

#define MAX_NFRAMES   256

Definition at line 67 of file bcm.c.

#define MHSIZ   sizeof(struct bcm_msg_head)

Definition at line 137 of file bcm.c.

#define OPSIZ   sizeof(struct bcm_op)

Definition at line 136 of file bcm.c.

#define REGMASK (   id)
Value:

Definition at line 75 of file bcm.c.

#define RX_RECV   0x40 /* received data for this element */

Definition at line 70 of file bcm.c.

#define RX_THR   0x80 /* element not been sent due to throttle feature */

Definition at line 71 of file bcm.c.

Function Documentation

MODULE_ALIAS ( "can-proto-2"  )
MODULE_AUTHOR ( "Oliver Hartkopp <[email protected]>"  )
MODULE_DESCRIPTION ( "PF_CAN broadcast manager protocol )
module_exit ( bcm_module_exit  )
module_init ( bcm_module_init  )
MODULE_LICENSE ( "Dual BSD/GPL"  )