Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
gw.h File Reference
#include <linux/types.h>
#include <linux/can.h>

Go to the source code of this file.

Data Structures

struct  rtcanmsg
 
struct  cgw_frame_mod
 
struct  cgw_csum_xor
 
struct  cgw_csum_crc8
 

Macros

#define CGW_TYPE_MAX   (__CGW_TYPE_MAX - 1)
 
#define CGW_MAX   (__CGW_MAX - 1)
 
#define CGW_FLAGS_CAN_ECHO   0x01
 
#define CGW_FLAGS_CAN_SRC_TSTAMP   0x02
 
#define CGW_MOD_FUNCS   4 /* AND OR XOR SET */
 
#define CGW_MOD_ID   0x01
 
#define CGW_MOD_DLC   0x02
 
#define CGW_MOD_DATA   0x04
 
#define CGW_FRAME_MODS   3 /* ID DLC DATA */
 
#define MAX_MODFUNCTIONS   (CGW_MOD_FUNCS * CGW_FRAME_MODS)
 
#define CGW_MODATTR_LEN   sizeof(struct cgw_frame_mod)
 
#define CGW_CS_XOR_LEN   sizeof(struct cgw_csum_xor)
 
#define CGW_CS_CRC8_LEN   sizeof(struct cgw_csum_crc8)
 
#define CGW_CRC8PRF_MAX   (__CGW_CRC8PRF_MAX - 1)
 

Enumerations

enum  { CGW_TYPE_UNSPEC, CGW_TYPE_CAN_CAN, __CGW_TYPE_MAX }
 
enum  {
  CGW_UNSPEC, CGW_MOD_AND, CGW_MOD_OR, CGW_MOD_XOR,
  CGW_MOD_SET, CGW_CS_XOR, CGW_CS_CRC8, CGW_HANDLED,
  CGW_DROPPED, CGW_SRC_IF, CGW_DST_IF, CGW_FILTER,
  __CGW_MAX
}
 
enum  {
  CGW_CRC8PRF_UNSPEC, CGW_CRC8PRF_1U8, CGW_CRC8PRF_16U8, CGW_CRC8PRF_SFFID_XOR,
  __CGW_CRC8PRF_MAX
}
 

Functions

struct cgw_frame_mod __attribute__ ((packed))
 

Variables

struct can_frame cf
 
__u8 modtype
 
__s8 from_idx
 
__s8 to_idx
 
__s8 result_idx
 
__u8 init_xor_val
 
__u8 init_crc_val
 
__u8 final_xor_val
 
__u8 crctab [256]
 
__u8 profile
 
__u8 profile_data [20]
 
enum { ... }  __attribute__
 

Macro Definition Documentation

#define CGW_CRC8PRF_MAX   (__CGW_CRC8PRF_MAX - 1)

Definition at line 104 of file gw.h.

#define CGW_CS_CRC8_LEN   sizeof(struct cgw_csum_crc8)

Definition at line 93 of file gw.h.

#define CGW_CS_XOR_LEN   sizeof(struct cgw_csum_xor)

Definition at line 92 of file gw.h.

#define CGW_FLAGS_CAN_ECHO   0x01

Definition at line 52 of file gw.h.

#define CGW_FLAGS_CAN_SRC_TSTAMP   0x02

Definition at line 53 of file gw.h.

#define CGW_FRAME_MODS   3 /* ID DLC DATA */

Definition at line 62 of file gw.h.

#define CGW_MAX   (__CGW_MAX - 1)

Definition at line 50 of file gw.h.

#define CGW_MOD_DATA   0x04

Definition at line 60 of file gw.h.

#define CGW_MOD_DLC   0x02

Definition at line 59 of file gw.h.

#define CGW_MOD_FUNCS   4 /* AND OR XOR SET */

Definition at line 55 of file gw.h.

#define CGW_MOD_ID   0x01

Definition at line 58 of file gw.h.

#define CGW_MODATTR_LEN   sizeof(struct cgw_frame_mod)

Definition at line 71 of file gw.h.

#define CGW_TYPE_MAX   (__CGW_TYPE_MAX - 1)

Definition at line 31 of file gw.h.

#define MAX_MODFUNCTIONS   (CGW_MOD_FUNCS * CGW_FRAME_MODS)

Definition at line 64 of file gw.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CGW_TYPE_UNSPEC 
CGW_TYPE_CAN_CAN 
__CGW_TYPE_MAX 

Definition at line 25 of file gw.h.

anonymous enum
Enumerator:
CGW_UNSPEC 
CGW_MOD_AND 
CGW_MOD_OR 
CGW_MOD_XOR 
CGW_MOD_SET 
CGW_CS_XOR 
CGW_CS_CRC8 
CGW_HANDLED 
CGW_DROPPED 
CGW_SRC_IF 
CGW_DST_IF 
CGW_FILTER 
__CGW_MAX 

Definition at line 34 of file gw.h.

anonymous enum
Enumerator:
CGW_CRC8PRF_UNSPEC 
CGW_CRC8PRF_1U8 
CGW_CRC8PRF_16U8 
CGW_CRC8PRF_SFFID_XOR 
__CGW_CRC8PRF_MAX 

Definition at line 96 of file gw.h.

Function Documentation

struct cgw_frame_mod __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

enum { ... } __attribute__

Definition at line 70 of file gw.h.

__u8 crctab[256]

Definition at line 95 of file gw.h.

__u8 final_xor_val

Definition at line 94 of file gw.h.

__s8 from_idx

Definition at line 79 of file gw.h.

__u8 init_crc_val

Definition at line 93 of file gw.h.

__u8 init_xor_val

Definition at line 82 of file gw.h.

__u8 modtype

Definition at line 71 of file gw.h.

__u8 profile

Definition at line 96 of file gw.h.

__u8 profile_data[20]

Definition at line 97 of file gw.h.

__s8 result_idx

Definition at line 81 of file gw.h.

__s8 to_idx

Definition at line 80 of file gw.h.