diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/isdn/hisax/hisax_if.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'drivers/isdn/hisax/hisax_if.h')
-rw-r--r-- | drivers/isdn/hisax/hisax_if.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/drivers/isdn/hisax/hisax_if.h b/drivers/isdn/hisax/hisax_if.h new file mode 100644 index 000000000000..4898fce2d509 --- /dev/null +++ b/drivers/isdn/hisax/hisax_if.h | |||
@@ -0,0 +1,66 @@ | |||
1 | /* | ||
2 | * Interface between low level (hardware) drivers and | ||
3 | * HiSax protocol stack | ||
4 | * | ||
5 | * Author Kai Germaschewski | ||
6 | * Copyright 2001 by Kai Germaschewski <kai.germaschewski@gmx.de> | ||
7 | * | ||
8 | * This software may be used and distributed according to the terms | ||
9 | * of the GNU General Public License, incorporated herein by reference. | ||
10 | * | ||
11 | */ | ||
12 | |||
13 | #ifndef __HISAX_IF_H__ | ||
14 | #define __HISAX_IF_H__ | ||
15 | |||
16 | #include <linux/skbuff.h> | ||
17 | |||
18 | #define REQUEST 0 | ||
19 | #define CONFIRM 1 | ||
20 | #define INDICATION 2 | ||
21 | #define RESPONSE 3 | ||
22 | |||
23 | #define PH_ACTIVATE 0x0100 | ||
24 | #define PH_DEACTIVATE 0x0110 | ||
25 | #define PH_DATA 0x0120 | ||
26 | #define PH_PULL 0x0130 | ||
27 | #define PH_DATA_E 0x0140 | ||
28 | |||
29 | #define L1_MODE_NULL 0 | ||
30 | #define L1_MODE_TRANS 1 | ||
31 | #define L1_MODE_HDLC 2 | ||
32 | #define L1_MODE_EXTRN 3 | ||
33 | #define L1_MODE_HDLC_56K 4 | ||
34 | #define L1_MODE_MODEM 7 | ||
35 | #define L1_MODE_V32 8 | ||
36 | #define L1_MODE_FAX 9 | ||
37 | |||
38 | struct hisax_if { | ||
39 | void *priv; // private to driver | ||
40 | void (*l1l2)(struct hisax_if *, int pr, void *arg); | ||
41 | void (*l2l1)(struct hisax_if *, int pr, void *arg); | ||
42 | }; | ||
43 | |||
44 | struct hisax_b_if { | ||
45 | struct hisax_if ifc; | ||
46 | |||
47 | // private to hisax | ||
48 | struct BCState *bcs; | ||
49 | }; | ||
50 | |||
51 | struct hisax_d_if { | ||
52 | struct hisax_if ifc; | ||
53 | |||
54 | // private to hisax | ||
55 | struct module *owner; | ||
56 | struct IsdnCardState *cs; | ||
57 | struct hisax_b_if *b_if[2]; | ||
58 | struct sk_buff_head erq; | ||
59 | long ph_state; | ||
60 | }; | ||
61 | |||
62 | int hisax_register(struct hisax_d_if *hisax_if, struct hisax_b_if *b_if[], | ||
63 | char *name, int protocol); | ||
64 | void hisax_unregister(struct hisax_d_if *hisax_if); | ||
65 | |||
66 | #endif | ||