Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
capi.h File Reference

Go to the source code of this file.

Data Structures

struct  actcapi_msgcmd
 
struct  actcapi_msghdr
 
struct  actcapi_msgdsc
 
struct  actcapi_addr
 
union  actcapi_infonr
 
struct  actcapi_infonr::bmask
 
union  actcapi_infoel
 
struct  actcapi_infoel::cause
 
struct  actcapi_infoel::charge
 
struct  actcapi_msn
 
struct  actcapi_dlpd
 
struct  actcapi_ncpd
 
struct  actcapi_msg
 

Macros

#define actcapi_ncpi   actcapi_ncpd
 
#define MAKE_NCCI(plci, contr, ncci)   ((plci & 0x1f) | ((contr & 0x7) << 5) | ((ncci & 0xff) << 8))
 
#define EVAL_NCCI(fakencci, plci, contr, ncci)
 
#define MAKE_PLCI(plci, contr)   ((plci & 0x1f) | ((contr & 0x7) << 5))
 
#define EVAL_PLCI(fakeplci, plci, contr)
 
#define DEBUG_MSG
 

Typedefs

typedef struct actcapi_msgcmd actcapi_msgcmd
 
typedef struct actcapi_msghdr actcapi_msghdr
 
typedef struct actcapi_msgdsc actcapi_msgdsc
 
typedef struct actcapi_addr actcapi_addr
 
typedef union actcapi_infonr actcapi_infonr
 
typedef union actcapi_infoel actcapi_infoel
 

Functions

struct actcapi_msn __attribute__ ((packed)) actcapi_msn
 
int actcapi_chkhdr (act2000_card *, actcapi_msghdr *)
 
int actcapi_listen_req (act2000_card *)
 
int actcapi_manufacturer_req_net (act2000_card *)
 
int actcapi_manufacturer_req_errh (act2000_card *)
 
int actcapi_manufacturer_req_msn (act2000_card *)
 
int actcapi_connect_req (act2000_card *, act2000_chan *, char *, char, int, int)
 
void actcapi_select_b2_protocol_req (act2000_card *, act2000_chan *)
 
void actcapi_disconnect_b3_req (act2000_card *, act2000_chan *)
 
void actcapi_connect_resp (act2000_card *, act2000_chan *, __u8)
 
void actcapi_dispatch (struct work_struct *)
 
void actcapi_debug_msg (struct sk_buff *skb, int)
 

Variables

__u8 eaz
 
__u8 len
 
__u8 msn [15]
 
__u16 dlen
 
__u8 laa
 
__u8 lab
 
__u8 modulo
 
__u8 win
 
__u8 xid [100]
 
__u16 lic
 
__u16 hic
 
__u16 ltc
 
__u16 htc
 
__u16 loc
 
__u16 hoc
 
__u16 manuf_msg
 
__u16 controller
 
actcapi_msn msnmap
 
__u8 bchan
 
__u32 infomask
 
__u8 si1
 
__u8 si2
 
actcapi_addr addr
 
__u16 plci
 
actcapi_ncpi ncpi
 
__u16 ncci
 
__u8 rejectcause
 
__u16 info
 
actcapi_infonr nr
 
actcapi_infoel el
 
__u8 protocol
 
actcapi_dlpd dlpd
 
actcapi_ncpd ncpd
 
__u16 eazmask
 
__u16 simask
 
__u16 fakencci
 
__u16 datalen
 
__u32 unused
 
__u8 blocknr
 
__u16 flags
 
actcapi_msghdr hdr
 
union {
   __u16   manuf_msg
 
   struct manufacturer_req_net {
      __u16   manuf_msg
 
      __u16   controller
 
      __u8   nettype
 
   }   manufacturer_req_net
 
   struct manufacturer_req_v42 {
      __u16   manuf_msg
 
      __u16   controller
 
      __u32   v42control
 
   }   manufacturer_req_v42
 
   struct manufacturer_conf_v42 {
      __u16   manuf_msg
 
      __u16   controller
 
   }   manufacturer_conf_v42
 
   struct manufacturer_req_err {
      __u16   manuf_msg
 
      __u16   controller
 
   }   manufacturer_req_err
 
   struct manufacturer_ind_err {
      __u16   manuf_msg
 
      __u16   controller
 
      __u32   errcode
 
      __u8   errstring
 
   }   manufacturer_ind_err
 
   struct connect_conf {
      __u16   plci
 
      __u16   info
 
   }   connect_conf
 
   struct connect_resp {
      __u16   plci
 
      __u8   rejectcause
 
   }   connect_resp
 
   struct connect_active_resp {
      __u16   plci
 
   }   connect_active_resp
 
   struct connect_b3_conf {
      __u16   plci
 
      __u16   ncci
 
      __u16   info
 
   }   connect_b3_conf
 
   struct disconnect_req {
      __u16   plci
 
      __u8   cause
 
   }   disconnect_req
 
   struct disconnect_conf {
      __u16   plci
 
      __u16   info
 
   }   disconnect_conf
 
   struct disconnect_ind {
      __u16   plci
 
      __u16   info
 
   }   disconnect_ind
 
   struct disconnect_resp {
      __u16   plci
 
   }   disconnect_resp
 
   struct connect_b3_active_resp {
      __u16   ncci
 
   }   connect_b3_active_resp
 
   struct disconnect_b3_conf {
      __u16   ncci
 
      __u16   info
 
   }   disconnect_b3_conf
 
   struct disconnect_b3_resp {
      __u16   ncci
 
   }   disconnect_b3_resp
 
   struct info_resp {
      __u16   plci
 
   }   info_resp
 
   struct listen_b3_req {
      __u16   plci
 
   }   listen_b3_req
 
   struct listen_b3_conf {
      __u16   plci
 
      __u16   info
 
   }   listen_b3_conf
 
   struct select_b2_protocol_conf {
      __u16   plci
 
      __u16   info
 
   }   select_b2_protocol_conf
 
   struct select_b3_protocol_conf {
      __u16   plci
 
      __u16   info
 
   }   select_b3_protocol_conf
 
msg
 

Macro Definition Documentation

#define actcapi_ncpi   actcapi_ncpd

Definition at line 104 of file capi.h.

#define DEBUG_MSG

Definition at line 346 of file capi.h.

#define EVAL_NCCI (   fakencci,
  plci,
  contr,
  ncci 
)
Value:
{ \
plci = fakencci & 0x1f; \
contr = (fakencci >> 5) & 0x7; \
ncci = (fakencci >> 8) & 0xff; \
}

Definition at line 117 of file capi.h.

#define EVAL_PLCI (   fakeplci,
  plci,
  contr 
)
Value:
{ \
plci = fakeplci & 0x1f; \
contr = (fakeplci >> 5) & 0x7; \
}

Definition at line 134 of file capi.h.

#define MAKE_NCCI (   plci,
  contr,
  ncci 
)    ((plci & 0x1f) | ((contr & 0x7) << 5) | ((ncci & 0xff) << 8))

Definition at line 114 of file capi.h.

#define MAKE_PLCI (   plci,
  contr 
)    ((plci & 0x1f) | ((contr & 0x7) << 5))

Definition at line 131 of file capi.h.

Typedef Documentation

Function Documentation

struct actcapi_msn __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

int actcapi_chkhdr ( act2000_card *  ,
actcapi_msghdr  
)

Definition at line 91 of file capi.c.

int actcapi_connect_req ( act2000_card *  ,
act2000_chan *  ,
char ,
char  ,
int  ,
int   
)

Definition at line 154 of file capi.c.

void actcapi_connect_resp ( act2000_card *  ,
act2000_chan *  ,
__u8   
)

Definition at line 400 of file capi.c.

void actcapi_debug_msg ( struct sk_buff skb,
int   
)

Definition at line 1012 of file capi.c.

void actcapi_disconnect_b3_req ( act2000_card *  ,
act2000_chan *   
)

Definition at line 383 of file capi.c.

void actcapi_dispatch ( struct work_struct )

Definition at line 629 of file capi.c.

int actcapi_listen_req ( act2000_card *  )

Definition at line 131 of file capi.c.

int actcapi_manufacturer_req_errh ( act2000_card *  )

Definition at line 251 of file capi.c.

int actcapi_manufacturer_req_msn ( act2000_card *  )

Definition at line 272 of file capi.c.

int actcapi_manufacturer_req_net ( act2000_card *  )

Definition at line 200 of file capi.c.

void actcapi_select_b2_protocol_req ( act2000_card *  ,
act2000_chan *   
)

Definition at line 302 of file capi.c.

Variable Documentation

Definition at line 190 of file capi.h.

Definition at line 185 of file capi.h.

__u8 blocknr

Definition at line 317 of file capi.h.

__u8 cause

Definition at line 420 of file capi.h.

struct { ... } connect_active_resp connect_active_resp
struct { ... } connect_b3_active_resp connect_b3_active_resp
struct { ... } connect_b3_conf connect_b3_conf
struct { ... } connect_conf connect_conf
struct { ... } connect_resp connect_resp

Definition at line 173 of file capi.h.

__u16 datalen

Definition at line 315 of file capi.h.

struct { ... } disconnect_b3_conf disconnect_b3_conf
struct { ... } disconnect_b3_resp disconnect_b3_resp
struct { ... } disconnect_conf disconnect_conf
struct { ... } disconnect_ind disconnect_ind
static byte disconnect_req

Definition at line 1575 of file message.c.

struct { ... } disconnect_resp disconnect_resp
__u8 dlen

Definition at line 94 of file capi.h.

Definition at line 286 of file capi.h.

__u8 eaz

Definition at line 83 of file capi.h.

__u16 eazmask

Definition at line 305 of file capi.h.

Definition at line 271 of file capi.h.

__u32 errcode

Definition at line 356 of file capi.h.

__u8 errstring

Definition at line 357 of file capi.h.

__u16 fakencci

Definition at line 314 of file capi.h.

__u16 flags

Definition at line 318 of file capi.h.

Definition at line 332 of file capi.h.

__u16 hic

Definition at line 106 of file capi.h.

__u16 hoc

Definition at line 110 of file capi.h.

__u16 htc

Definition at line 108 of file capi.h.

__u16 info

Definition at line 262 of file capi.h.

struct { ... } info_resp info_resp
__u32 infomask

Definition at line 186 of file capi.h.

__u8 laa

Definition at line 95 of file capi.h.

__u8 lab

Definition at line 96 of file capi.h.

__u8 len

Definition at line 84 of file capi.h.

__u16 lic

Definition at line 105 of file capi.h.

struct { ... } listen_b3_conf listen_b3_conf
struct { ... } listen_b3_req listen_b3_req
__u16 loc

Definition at line 109 of file capi.h.

__u16 ltc

Definition at line 107 of file capi.h.

__u16 manuf_msg

Definition at line 172 of file capi.h.

struct { ... } manufacturer_conf_v42 manufacturer_conf_v42
struct { ... } manufacturer_ind_err manufacturer_ind_err
struct { ... } manufacturer_req_err manufacturer_req_err
struct { ... } manufacturer_req_net manufacturer_req_net
struct { ... } manufacturer_req_v42 manufacturer_req_v42
__u8 modulo

Definition at line 97 of file capi.h.

union { ... } msg
__u8 msn[15]

Definition at line 85 of file capi.h.

actcapi_msn msnmap

Definition at line 174 of file capi.h.

__u16 ncci

Definition at line 221 of file capi.h.

Definition at line 295 of file capi.h.

Definition at line 212 of file capi.h.

__u8 nettype

Definition at line 338 of file capi.h.

Definition at line 270 of file capi.h.

__u16 plci

Definition at line 196 of file capi.h.

Definition at line 285 of file capi.h.

__u8 rejectcause

Definition at line 227 of file capi.h.

struct { ... } select_b2_protocol_conf select_b2_protocol_conf
struct { ... } select_b3_protocol_conf select_b3_protocol_conf
__u8 si1

Definition at line 187 of file capi.h.

__u8 si2

Definition at line 188 of file capi.h.

__u16 simask

Definition at line 306 of file capi.h.

Definition at line 316 of file capi.h.

__u32 v42control

Definition at line 343 of file capi.h.

__u8 win

Definition at line 98 of file capi.h.

jint32_t xid

Definition at line 99 of file capi.h.