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

Go to the source code of this file.

Macros

#define num_valid_imsg   27 /* MANUFACTURER_IND */
 
#define ACTCAPI_MKHDR(l, c, s)
 
#define ACTCAPI_CHKSKB
 
#define ACTCAPI_QUEUE_TX
 

Functions

int actcapi_chkhdr (act2000_card *card, actcapi_msghdr *hdr)
 
int actcapi_listen_req (act2000_card *card)
 
int actcapi_connect_req (act2000_card *card, act2000_chan *chan, char *phone, char eaz, int si1, int si2)
 
int actcapi_manufacturer_req_net (act2000_card *card)
 
int actcapi_manufacturer_req_errh (act2000_card *card)
 
int actcapi_manufacturer_req_msn (act2000_card *card)
 
void actcapi_select_b2_protocol_req (act2000_card *card, act2000_chan *chan)
 
void actcapi_disconnect_b3_req (act2000_card *card, act2000_chan *chan)
 
void actcapi_connect_resp (act2000_card *card, act2000_chan *chan, __u8 cause)
 
void actcapi_dispatch (struct work_struct *work)
 
void actcapi_debug_msg (struct sk_buff *skb, int direction)
 

Macro Definition Documentation

#define ACTCAPI_CHKSKB
Value:
if (!skb) { \
printk(KERN_WARNING "actcapi: alloc_skb failed\n"); \
return; \
}

Definition at line 119 of file capi.c.

#define ACTCAPI_MKHDR (   l,
  c,
  s 
)
Value:
{ \
skb = alloc_skb(l + 8, GFP_ATOMIC); \
if (skb) { \
m = (actcapi_msg *)skb_put(skb, l + 8); \
m->hdr.len = l + 8; \
m->hdr.applicationID = 1; \
m->hdr.cmd.cmd = c; \
m->hdr.cmd.subcmd = s; \
m->hdr.msgnum = actcapi_nextsmsg(card); \
} else m = NULL; \
}

Definition at line 107 of file capi.c.

#define ACTCAPI_QUEUE_TX
Value:
{ \
actcapi_debug_msg(skb, 1); \
skb_queue_tail(&card->sndq, skb); \
act2000_schedule_tx(card); \
}

Definition at line 124 of file capi.c.

#define num_valid_imsg   27 /* MANUFACTURER_IND */

Definition at line 81 of file capi.c.

Function Documentation

int actcapi_chkhdr ( act2000_card *  card,
actcapi_msghdr hdr 
)

Definition at line 91 of file capi.c.

int actcapi_connect_req ( act2000_card *  card,
act2000_chan *  chan,
char phone,
char  eaz,
int  si1,
int  si2 
)

Definition at line 154 of file capi.c.

void actcapi_connect_resp ( act2000_card *  card,
act2000_chan *  chan,
__u8  cause 
)

Definition at line 400 of file capi.c.

void actcapi_debug_msg ( struct sk_buff skb,
int  direction 
)

Definition at line 1012 of file capi.c.

void actcapi_disconnect_b3_req ( act2000_card *  card,
act2000_chan *  chan 
)

Definition at line 383 of file capi.c.

void actcapi_dispatch ( struct work_struct work)

Definition at line 629 of file capi.c.

int actcapi_listen_req ( act2000_card *  card)

Definition at line 131 of file capi.c.

int actcapi_manufacturer_req_errh ( act2000_card *  card)

Definition at line 251 of file capi.c.

int actcapi_manufacturer_req_msn ( act2000_card *  card)

Definition at line 272 of file capi.c.

int actcapi_manufacturer_req_net ( act2000_card *  card)

Definition at line 200 of file capi.c.

void actcapi_select_b2_protocol_req ( act2000_card *  card,
act2000_chan *  chan 
)

Definition at line 302 of file capi.c.