~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal-proposed

« back to all changes in this revision

Viewing changes to drivers/isdn/pcbit/capi.h

  • Committer: Package Import Robot
  • Author(s): Andy Whitcroft, Andy Whitcroft
  • Date: 2012-06-21 09:16:38 UTC
  • Revision ID: package-import@ubuntu.com-20120621091638-gubhv4nox8xez1ct
Tags: 3.5.0-1.1
[ Andy Whitcroft]

* Rebuild lowlatency against Ubuntu-3.5.0-1.1
* All new configuration system to allow configuration deltas to be
  exposed via debian.lowlatency/config-delta

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * CAPI encode/decode prototypes and defines
3
3
 *
4
4
 * Copyright (C) 1996 Universidade de Lisboa
5
 
 * 
 
5
 *
6
6
 * Written by Pedro Roque Marques (roque@di.fc.ul.pt)
7
7
 *
8
 
 * This software may be used and distributed according to the terms of 
 
8
 * This software may be used and distributed according to the terms of
9
9
 * the GNU General Public License, incorporated herein by reference.
10
10
 */
11
11
 
15
15
 
16
16
#define REQ_CAUSE         0x01
17
17
#define REQ_DISPLAY       0x04
18
 
#define REQ_USER_TO_USER  0x08 
 
18
#define REQ_USER_TO_USER  0x08
19
19
 
20
 
#define AppInfoMask  REQ_CAUSE|REQ_DISPLAY|REQ_USER_TO_USER 
 
20
#define AppInfoMask  REQ_CAUSE | REQ_DISPLAY | REQ_USER_TO_USER
21
21
 
22
22
/* Connection Setup */
23
 
extern int capi_conn_req(const char * calledPN, struct sk_buff **buf,
 
23
extern int capi_conn_req(const char *calledPN, struct sk_buff **buf,
24
24
                         int proto);
25
 
extern int capi_decode_conn_conf(struct pcbit_chan * chan, struct sk_buff *skb,
26
 
                                 int *complete); 
 
25
extern int capi_decode_conn_conf(struct pcbit_chan *chan, struct sk_buff *skb,
 
26
                                 int *complete);
27
27
 
28
 
extern int capi_decode_conn_ind(struct pcbit_chan * chan, struct sk_buff *skb,
 
28
extern int capi_decode_conn_ind(struct pcbit_chan *chan, struct sk_buff *skb,
29
29
                                struct callb_data *info);
30
 
extern int capi_conn_resp(struct pcbit_chan* chan, struct sk_buff **skb);
 
30
extern int capi_conn_resp(struct pcbit_chan *chan, struct sk_buff **skb);
31
31
 
32
 
extern int capi_conn_active_req(struct pcbit_chan* chan, struct sk_buff **skb);
33
 
extern int capi_decode_conn_actv_conf(struct pcbit_chan * chan, 
 
32
extern int capi_conn_active_req(struct pcbit_chan *chan, struct sk_buff **skb);
 
33
extern int capi_decode_conn_actv_conf(struct pcbit_chan *chan,
34
34
                                      struct sk_buff *skb);
35
35
 
36
 
extern int capi_decode_conn_actv_ind(struct pcbit_chan * chan, 
 
36
extern int capi_decode_conn_actv_ind(struct pcbit_chan *chan,
37
37
                                     struct sk_buff *skb);
38
 
extern int capi_conn_active_resp(struct pcbit_chan* chan, 
 
38
extern int capi_conn_active_resp(struct pcbit_chan *chan,
39
39
                                 struct sk_buff **skb);
40
40
 
41
41
/* Data */
42
42
extern int capi_select_proto_req(struct pcbit_chan *chan, struct sk_buff **skb,
43
43
                                 int outgoing);
44
 
extern int capi_decode_sel_proto_conf(struct pcbit_chan *chan, 
 
44
extern int capi_decode_sel_proto_conf(struct pcbit_chan *chan,
45
45
                                      struct sk_buff *skb);
46
46
 
47
 
extern int capi_activate_transp_req(struct pcbit_chan *chan, 
 
47
extern int capi_activate_transp_req(struct pcbit_chan *chan,
48
48
                                    struct sk_buff **skb);
49
 
extern int capi_decode_actv_trans_conf(struct pcbit_chan *chan, 
 
49
extern int capi_decode_actv_trans_conf(struct pcbit_chan *chan,
50
50
                                       struct sk_buff *skb);
51
51
 
52
 
extern int capi_tdata_req(struct pcbit_chan* chan, struct sk_buff *skb);
53
 
extern int capi_tdata_resp(struct pcbit_chan *chan, struct sk_buff ** skb);
 
52
extern int capi_tdata_req(struct pcbit_chan *chan, struct sk_buff *skb);
 
53
extern int capi_tdata_resp(struct pcbit_chan *chan, struct sk_buff **skb);
54
54
 
55
55
/* Connection Termination */
56
56
extern int capi_disc_req(ushort callref, struct sk_buff **skb, u_char cause);
62
62
extern int capi_decode_debug_188(u_char *hdr, ushort hdrlen);
63
63
#endif
64
64
 
65
 
static inline struct pcbit_chan * 
 
65
static inline struct pcbit_chan *
66
66
capi_channel(struct pcbit_dev *dev, struct sk_buff *skb)
67
67
{
68
68
        ushort callref;
69
69
 
70
 
        callref = *((ushort*) skb->data);
 
70
        callref = *((ushort *)skb->data);
71
71
        skb_pull(skb, 2);
72
72
 
73
73
        if (dev->b1->callref == callref)
79
79
}
80
80
 
81
81
#endif
82
 
 
83
 
 
84
 
 
85
 
 
86
 
 
87