4 * Copyright (c) 1997 by Procom Technology,Inc.
5 * 2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
7 * This program can be redistributed or modified under the terms of the
8 * GNU General Public License as published by the Free Software Foundation.
9 * This program is distributed without any warranty or implied warranty
10 * of merchantability or fitness for a particular purpose.
12 * See the GNU General Public License for more details.
14 /* Station component state transition events */
15 /* Types of events (possible values in 'ev->type') */
16 #define LLC_STATION_EV_TYPE_SIMPLE 1
17 #define LLC_STATION_EV_TYPE_CONDITION 2
18 #define LLC_STATION_EV_TYPE_PRIM 3
19 #define LLC_STATION_EV_TYPE_PDU 4 /* command/response PDU */
20 #define LLC_STATION_EV_TYPE_ACK_TMR 5
21 #define LLC_STATION_EV_TYPE_RPT_STATUS 6
24 #define LLC_STATION_EV_ENABLE_WITH_DUP_ADDR_CHECK 1
25 #define LLC_STATION_EV_ENABLE_WITHOUT_DUP_ADDR_CHECK 2
26 #define LLC_STATION_EV_ACK_TMR_EXP_LT_RETRY_CNT_MAX_RETRY 3
27 #define LLC_STATION_EV_ACK_TMR_EXP_EQ_RETRY_CNT_MAX_RETRY 4
28 #define LLC_STATION_EV_RX_NULL_DSAP_XID_C 5
29 #define LLC_STATION_EV_RX_NULL_DSAP_0_XID_R_XID_R_CNT_EQ 6
30 #define LLC_STATION_EV_RX_NULL_DSAP_1_XID_R_XID_R_CNT_EQ 7
31 #define LLC_STATION_EV_RX_NULL_DSAP_TEST_C 8
32 #define LLC_STATION_EV_DISABLE_REQ 9
34 struct llc_station_state_ev
{
39 struct list_head node
; /* node in station->ev_q.list */
42 static __inline__
struct llc_station_state_ev
*
43 llc_station_ev(struct sk_buff
*skb
)
45 return (struct llc_station_state_ev
*)skb
->cb
;
48 typedef int (*llc_station_ev_t
)(struct llc_station
*station
,
51 extern int llc_stat_ev_enable_with_dup_addr_check(struct llc_station
*station
,
53 extern int llc_stat_ev_enable_without_dup_addr_check(struct llc_station
*station
,
55 extern int llc_stat_ev_ack_tmr_exp_lt_retry_cnt_max_retry(struct llc_station
*
58 extern int llc_stat_ev_ack_tmr_exp_eq_retry_cnt_max_retry(struct llc_station
*station
,
60 extern int llc_stat_ev_rx_null_dsap_xid_c(struct llc_station
*station
,
62 extern int llc_stat_ev_rx_null_dsap_0_xid_r_xid_r_cnt_eq(struct llc_station
*station
,
64 extern int llc_stat_ev_rx_null_dsap_1_xid_r_xid_r_cnt_eq(struct llc_station
*station
,
66 extern int llc_stat_ev_rx_null_dsap_test_c(struct llc_station
*station
,
68 extern int llc_stat_ev_disable_req(struct llc_station
*station
,
70 #endif /* LLC_EVNT_H */