diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-10-22 16:31:48 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-10-22 16:31:49 +0000 |
commit | 74db65e4eb138d90293b80dd274203462f8387bf (patch) | |
tree | 3645a107c5557215e74fa95418fc4b54e1f67b81 /9/platforms/android-21/arch-arm/usr/include/linux/phonet.h | |
parent | 713b0d6c13e57295bb85f89e16da550bd2a99abe (diff) | |
parent | 0fbc29f4cd89425f9d7d181ce88bc2d09e377180 (diff) | |
download | prebuilts_ndk-74db65e4eb138d90293b80dd274203462f8387bf.zip prebuilts_ndk-74db65e4eb138d90293b80dd274203462f8387bf.tar.gz prebuilts_ndk-74db65e4eb138d90293b80dd274203462f8387bf.tar.bz2 |
Merge "Add real android-21 32-bit headers/libs"
Diffstat (limited to '9/platforms/android-21/arch-arm/usr/include/linux/phonet.h')
-rw-r--r-- | 9/platforms/android-21/arch-arm/usr/include/linux/phonet.h | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/9/platforms/android-21/arch-arm/usr/include/linux/phonet.h b/9/platforms/android-21/arch-arm/usr/include/linux/phonet.h new file mode 100644 index 0000000..40132bd --- /dev/null +++ b/9/platforms/android-21/arch-arm/usr/include/linux/phonet.h @@ -0,0 +1,101 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPILINUX_PHONET_H +#define _UAPILINUX_PHONET_H +#include <linux/types.h> +#include <linux/socket.h> +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define PN_PROTO_TRANSPORT 0 +#define PN_PROTO_PHONET 1 +#define PN_PROTO_PIPE 2 +#define PHONET_NPROTO 3 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define PNPIPE_ENCAP 1 +#define PNPIPE_IFINDEX 2 +#define PNPIPE_HANDLE 3 +#define PNPIPE_INITSTATE 4 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define PNADDR_ANY 0 +#define PNADDR_BROADCAST 0xFC +#define PNPORT_RESOURCE_ROUTING 0 +#define PNPIPE_ENCAP_NONE 0 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define PNPIPE_ENCAP_IP 1 +#define SIOCPNGETOBJECT (SIOCPROTOPRIVATE + 0) +#define SIOCPNENABLEPIPE (SIOCPROTOPRIVATE + 13) +#define SIOCPNADDRESOURCE (SIOCPROTOPRIVATE + 14) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SIOCPNDELRESOURCE (SIOCPROTOPRIVATE + 15) +struct phonethdr { + __u8 pn_rdev; + __u8 pn_sdev; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u8 pn_res; + __be16 pn_length; + __u8 pn_robj; + __u8 pn_sobj; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +} __attribute__((packed)); +struct phonetmsg { + __u8 pn_trans_id; + __u8 pn_msg_id; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + union { + struct { + __u8 pn_submsg_id; + __u8 pn_data[5]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + } base; + struct { + __u16 pn_e_res_id; + __u8 pn_e_submsg_id; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u8 pn_e_data[3]; + } ext; + } pn_msg_u; +}; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define PN_COMMON_MESSAGE 0xF0 +#define PN_COMMGR 0x10 +#define PN_PREFIX 0xE0 +#define pn_submsg_id pn_msg_u.base.pn_submsg_id +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define pn_e_submsg_id pn_msg_u.ext.pn_e_submsg_id +#define pn_e_res_id pn_msg_u.ext.pn_e_res_id +#define pn_data pn_msg_u.base.pn_data +#define pn_e_data pn_msg_u.ext.pn_e_data +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define PN_COMM_SERVICE_NOT_IDENTIFIED_RESP 0x01 +#define PN_COMM_ISA_ENTITY_NOT_REACHABLE_RESP 0x14 +#define pn_orig_msg_id pn_data[0] +#define pn_status pn_data[1] +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define pn_e_orig_msg_id pn_e_data[0] +#define pn_e_status pn_e_data[1] +struct sockaddr_pn { + __kernel_sa_family_t spn_family; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + __u8 spn_obj; + __u8 spn_dev; + __u8 spn_resource; + __u8 spn_zero[sizeof(struct sockaddr) - sizeof(__kernel_sa_family_t) - 3]; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +} __attribute__((packed)); +#define PN_DEV_PC 0x10 +#endif |