xref: /linux/include/net/llc_s_ac.h (revision 45079e00133ee78fd216ccc4285534044ea69173)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef LLC_S_AC_H
3 #define LLC_S_AC_H
4 /*
5  * Copyright (c) 1997 by Procom Technology,Inc.
6  * 		 2001 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
7  */
8 
9 struct llc_sap;
10 struct sk_buff;
11 
12 /* SAP component actions */
13 #define SAP_ACT_UNITDATA_IND	1
14 #define SAP_ACT_SEND_UI		2
15 #define SAP_ACT_SEND_XID_C	3
16 #define SAP_ACT_SEND_XID_R	4
17 #define SAP_ACT_SEND_TEST_C	5
18 #define SAP_ACT_SEND_TEST_R	6
19 #define SAP_ACT_REPORT_STATUS	7
20 #define SAP_ACT_XID_IND		8
21 #define SAP_ACT_TEST_IND	9
22 
23 /* All action functions must look like this */
24 typedef int (*llc_sap_action_t)(struct llc_sap *sap, struct sk_buff *skb);
25 
26 int llc_sap_action_unitdata_ind(struct llc_sap *sap, struct sk_buff *skb);
27 int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb);
28 int llc_sap_action_send_xid_c(struct llc_sap *sap, struct sk_buff *skb);
29 int llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb);
30 int llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb);
31 int llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb);
32 int llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb);
33 int llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb);
34 int llc_sap_action_test_ind(struct llc_sap *sap, struct sk_buff *skb);
35 #endif /* LLC_S_AC_H */
36