Cleanup eeprom reading code.
[linux-2.6/linux-mips.git] / include / net / llc_evnt.h
blob429adcb480e3f8ea81e4be2eb6fe84199f0118c8
1 #ifndef LLC_EVNT_H
2 #define LLC_EVNT_H
3 /*
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
23 /* Events */
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 {
35 u8 type;
36 u8 prim;
37 u8 prim_type;
38 u8 reason;
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,
49 struct sk_buff *skb);
51 extern int llc_stat_ev_enable_with_dup_addr_check(struct llc_station *station,
52 struct sk_buff *skb);
53 extern int llc_stat_ev_enable_without_dup_addr_check(struct llc_station *station,
54 struct sk_buff *skb);
55 extern int llc_stat_ev_ack_tmr_exp_lt_retry_cnt_max_retry(struct llc_station *
56 station,
57 struct sk_buff *skb);
58 extern int llc_stat_ev_ack_tmr_exp_eq_retry_cnt_max_retry(struct llc_station *station,
59 struct sk_buff *skb);
60 extern int llc_stat_ev_rx_null_dsap_xid_c(struct llc_station *station,
61 struct sk_buff *skb);
62 extern int llc_stat_ev_rx_null_dsap_0_xid_r_xid_r_cnt_eq(struct llc_station *station,
63 struct sk_buff *skb);
64 extern int llc_stat_ev_rx_null_dsap_1_xid_r_xid_r_cnt_eq(struct llc_station *station,
65 struct sk_buff *skb);
66 extern int llc_stat_ev_rx_null_dsap_test_c(struct llc_station *station,
67 struct sk_buff *skb);
68 extern int llc_stat_ev_disable_req(struct llc_station *station,
69 struct sk_buff *skb);
70 #endif /* LLC_EVNT_H */