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.
19 #define LLC_ACK_TIME 1
20 #define LLC_REJ_TIME 3
21 #define LLC_BUSY_TIME 3
22 #define LLC_DEST_INVALID 0 /* Invalid LLC PDU type */
23 #define LLC_DEST_SAP 1 /* Type 1 goes here */
24 #define LLC_DEST_CONN 2 /* Type 2 goes here */
27 * struct llc_station - LLC station component
29 * SAP and connection resource manager, one per adapter.
31 * @state - state of station
32 * @xid_r_count - XID response PDU counter
33 * @mac_sa - MAC source address
34 * @sap_list - list of related SAPs
35 * @ev_q - events entering state mach.
36 * @mac_pdu_q - PDUs ready to send to MAC
41 struct timer_list ack_timer
;
47 struct list_head list
;
50 struct sk_buff_head list
;
53 struct sk_buff_head mac_pdu_q
;
56 extern struct llc_sap
*llc_sap_alloc(void);
57 extern void llc_sap_save(struct llc_sap
*sap
);
58 extern void llc_free_sap(struct llc_sap
*sap
);
59 extern struct llc_sap
*llc_sap_find(u8 lsap
);
60 extern void llc_station_state_process(struct llc_station
*station
,
62 extern void llc_station_send_pdu(struct llc_station
*station
,
64 extern struct sk_buff
*llc_alloc_frame(void);
66 extern struct llc_station llc_main_station
;
67 #endif /* LLC_MAIN_H */