• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 
7 
8 #ifndef _LINUX_ATMSVC_H
9 #define _LINUX_ATMSVC_H
10 #include <linux/atmapi.h>
11 #include <linux/atm.h>
12 #include <linux/atmioc.h>
13 #define ATMSIGD_CTRL _IO('a',ATMIOC_SPECIAL)
14 
15 enum atmsvc_msg_type { as_catch_null, as_bind, as_connect, as_accept, as_reject,
16 		       as_listen, as_okay, as_error, as_indicate, as_close,
17 		       as_itf_notify, as_modify, as_identify, as_terminate,
18 		       as_addparty, as_dropparty };
19 struct atmsvc_msg {
20 	enum atmsvc_msg_type type;
21 	atm_kptr_t vcc;
22 	atm_kptr_t listen_vcc;
23 	int reply;
24 
25 
26 
27 
28 
29 	struct sockaddr_atmpvc pvc;
30 	struct sockaddr_atmsvc local;
31 	struct atm_qos qos;
32 	struct atm_sap sap;
33 	unsigned int session;
34 	struct sockaddr_atmsvc svc;
35 } __ATM_API_ALIGN;
36 #define SELECT_TOP_PCR(tp) ((tp).pcr ? (tp).pcr : \
37   (tp).max_pcr && (tp).max_pcr != ATM_MAX_PCR ? (tp).max_pcr : \
38   (tp).min_pcr ? (tp).min_pcr : ATM_MAX_PCR)
39 #endif
40