This source file includes following definitions.
- wanlite_def_t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 #ifndef __IF_SAN_OBSD_H
38 # define __IF_SAN_OBSD_H
39
40 #define IF_IFACE_V35 0x1001
41 #define IF_IFACE_T1 0x1002
42 #define IF_IFACE_E1 0x1003
43 #define IF_IFACE_SYNC_SERIAL 0x1004
44
45 #define IF_PROTO_HDLC 0x2001
46 #define IF_PROTO_PPP 0x2002
47 #define IF_PROTO_CISCO 0x2003
48 #define IF_PROTO_FR 0x2004
49 #define IF_PROTO_FR_ADD_PVC 0x2005
50 #define IF_PROTO_FR_DEL_PVC 0x2006
51 #define IF_PROTO_X25 0x2007
52 #define WAN_PROTO_X25 0x2007
53
54 #define IF_GET_PROTO 0x3001
55
56 #define te1_settings void
57 #define sync_serial_settings void
58
59 #define ifs_size data_length
60 #define ifs_te1 data
61 #define ifs_sync data
62 #define ifs_cisco data
63 #define ifs_fr data
64 #define ifs_fr_pvc data
65 #define ifs_fr_pvc_info data
66
67
68 #define SANCFG_LBO_FLAG 0x0001
69 #define SANCFG_CLOCK_FLAG 0x0002
70
71 typedef struct { int dummy; } cisco_proto, fr_proto, fr_proto_pvc;
72 struct if_settings {
73 unsigned int type;
74 unsigned int data_length;
75 unsigned long flags;
76 void* data;
77 };
78
79 typedef struct {
80 int proto;
81 int iface;
82 char hwprobe[100];
83 sdla_te_cfg_t te_cfg;
84 union {
85 cisco_proto cisco;
86 fr_proto fr;
87 fr_proto_pvc fr_pvc;
88 } protocol;
89 } wanlite_def_t;
90
91
92 # if defined(_KERNEL)
93 struct ifnet *wanpipe_generic_alloc (sdla_t *);
94 void wanpipe_generic_free (struct ifnet *);
95 int wanpipe_generic_name (sdla_t *, char *, int);
96 int wanpipe_generic_register(sdla_t *, struct ifnet *, char *);
97 void wanpipe_generic_unregister(struct ifnet *);
98 int wanpipe_generic_open(struct ifnet *);
99 int wanpipe_generic_close(struct ifnet *);
100 int wanpipe_generic_input(struct ifnet *, struct mbuf *);
101 int wanpipe_generic_tx_timeout(struct ifnet *);
102 int wp_lite_set_proto(struct ifnet *, struct ifreq *);
103 int wp_lite_set_te1_cfg(struct ifnet *, struct ifreq *);
104 # endif
105 #endif