blob: ca038f5faa27c44f06a9d54501fddf7f0f0e19e6 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _LINUX_ATMSVC_H
20#define _LINUX_ATMSVC_H
21#include <linux/atmapi.h>
22#include <linux/atm.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023#include <linux/atmioc.h>
Tao Baod7db5942015-01-28 10:07:51 -080024#define ATMSIGD_CTRL _IO('a', ATMIOC_SPECIAL)
25enum atmsvc_msg_type {
26 as_catch_null,
Tao Baod7db5942015-01-28 10:07:51 -080027 as_bind,
28 as_connect,
29 as_accept,
30 as_reject,
Tao Baod7db5942015-01-28 10:07:51 -080031 as_listen,
32 as_okay,
33 as_error,
34 as_indicate,
Tao Baod7db5942015-01-28 10:07:51 -080035 as_close,
36 as_itf_notify,
37 as_modify,
38 as_identify,
Tao Baod7db5942015-01-28 10:07:51 -080039 as_terminate,
40 as_addparty,
41 as_dropparty
42};
Ben Cheng655a7c02013-10-16 16:09:24 -070043struct atmsvc_msg {
Tao Baod7db5942015-01-28 10:07:51 -080044 enum atmsvc_msg_type type;
45 atm_kptr_t vcc;
46 atm_kptr_t listen_vcc;
Tao Baod7db5942015-01-28 10:07:51 -080047 int reply;
48 struct sockaddr_atmpvc pvc;
49 struct sockaddr_atmsvc local;
50 struct atm_qos qos;
Tao Baod7db5942015-01-28 10:07:51 -080051 struct atm_sap sap;
52 unsigned int session;
53 struct sockaddr_atmsvc svc;
Ben Cheng655a7c02013-10-16 16:09:24 -070054} __ATM_API_ALIGN;
Tao Baod7db5942015-01-28 10:07:51 -080055#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)
56#endif