1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _LINUX_ATMSVC_H
8 #define _LINUX_ATMSVC_H
9 #include <linux/atmapi.h>
10 #include <linux/atm.h>
11 #include <linux/atmioc.h>
12 #define ATMSIGD_CTRL _IO('a', ATMIOC_SPECIAL)
13 enum atmsvc_msg_type {
14   as_catch_null,
15   as_bind,
16   as_connect,
17   as_accept,
18   as_reject,
19   as_listen,
20   as_okay,
21   as_error,
22   as_indicate,
23   as_close,
24   as_itf_notify,
25   as_modify,
26   as_identify,
27   as_terminate,
28   as_addparty,
29   as_dropparty
30 };
31 struct atmsvc_msg {
32   enum atmsvc_msg_type type;
33   atm_kptr_t vcc;
34   atm_kptr_t listen_vcc;
35   int reply;
36   struct sockaddr_atmpvc pvc;
37   struct sockaddr_atmsvc local;
38   struct atm_qos qos;
39   struct atm_sap sap;
40   unsigned int session;
41   struct sockaddr_atmsvc svc;
42 } __ATM_API_ALIGN;
43 #define SELECT_TOP_PCR(tp) ((tp).pcr ? (tp).pcr : (tp).max_pcr && (tp).max_pcr != ATM_MAX_PCR ? (tp).max_pcr : (tp).min_pcr ? (tp).min_pcr : ATM_MAX_PCR)
44 #endif
45