111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/**************************************************************************** 211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert **************************************************************************** 311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** 411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** This header was automatically generated from a Linux kernel header 511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** of the same name, to make information necessary for userspace to 611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** call into the kernel available to libc. It contains only constants, 711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** structures, and macros generated from the original header, and thus, 811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** contains no copyrightable information. 911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** 1011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** To edit the content of this header, modify the corresponding 1111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** source file (e.g. under external/kernel-headers/original/) then 1211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** run bionic/libc/kernel/tools/update_all.py 1311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** 1411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** Any manual change here will be lost the next time this script will 1511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** be run. You've been warned! 1611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert *** 1711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert **************************************************************************** 1811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert ****************************************************************************/ 1911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#ifndef _UAPI_LINUX_BYTEORDER_LITTLE_ENDIAN_H 2011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define _UAPI_LINUX_BYTEORDER_LITTLE_ENDIAN_H 2111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#ifndef __LITTLE_ENDIAN 2211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __LITTLE_ENDIAN 1234 2311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#endif 2511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#ifndef __LITTLE_ENDIAN_BITFIELD 2611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __LITTLE_ENDIAN_BITFIELD 2711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#endif 2811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#include <linux/types.h> 3011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#include <linux/swab.h> 3111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_htonl(x) ((__force __be32)___constant_swab32((x))) 3211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_ntohl(x) ___constant_swab32((__force __be32)(x)) 3311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_htons(x) ((__force __be16)___constant_swab16((x))) 3511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_ntohs(x) ___constant_swab16((__force __be16)(x)) 3611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_cpu_to_le64(x) ((__force __le64)(__u64)(x)) 3711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_le64_to_cpu(x) ((__force __u64)(__le64)(x)) 3811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_cpu_to_le32(x) ((__force __le32)(__u32)(x)) 4011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_le32_to_cpu(x) ((__force __u32)(__le32)(x)) 4111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_cpu_to_le16(x) ((__force __le16)(__u16)(x)) 4211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_le16_to_cpu(x) ((__force __u16)(__le16)(x)) 4311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 4411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_cpu_to_be64(x) ((__force __be64)___constant_swab64((x))) 4511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_be64_to_cpu(x) ___constant_swab64((__force __u64)(__be64)(x)) 4611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_cpu_to_be32(x) ((__force __be32)___constant_swab32((x))) 4711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_be32_to_cpu(x) ___constant_swab32((__force __u32)(__be32)(x)) 4811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 4911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_cpu_to_be16(x) ((__force __be16)___constant_swab16((x))) 5011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __constant_be16_to_cpu(x) ___constant_swab16((__force __u16)(__be16)(x)) 5111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_le64(x) ((__force __le64)(__u64)(x)) 5211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __le64_to_cpu(x) ((__force __u64)(__le64)(x)) 5311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 5411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_le32(x) ((__force __le32)(__u32)(x)) 5511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) 5611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_le16(x) ((__force __le16)(__u16)(x)) 5711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) 5811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 5911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_be64(x) ((__force __be64)__swab64((x))) 6011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __be64_to_cpu(x) __swab64((__force __u64)(__be64)(x)) 6111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_be32(x) ((__force __be32)__swab32((x))) 6211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __be32_to_cpu(x) __swab32((__force __u32)(__be32)(x)) 6311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 6411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_be16(x) ((__force __be16)__swab16((x))) 6511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __be16_to_cpu(x) __swab16((__force __u16)(__be16)(x)) 6611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_le64s(x) do { (void)(x); } while (0) 6711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __le64_to_cpus(x) do { (void)(x); } while (0) 6811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 6911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_le32s(x) do { (void)(x); } while (0) 7011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __le32_to_cpus(x) do { (void)(x); } while (0) 7111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_le16s(x) do { (void)(x); } while (0) 7211cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __le16_to_cpus(x) do { (void)(x); } while (0) 7311cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 7411cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_be64s(x) __swab64s((x)) 7511cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __be64_to_cpus(x) __swab64s((x)) 7611cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_be32s(x) __swab32s((x)) 7711cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __be32_to_cpus(x) __swab32s((x)) 7811cd02dfb91661c65134cac258cf5924270e9d2Dan Albert/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 7911cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __cpu_to_be16s(x) __swab16s((x)) 8011cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#define __be16_to_cpus(x) __swab16s((x)) 8111cd02dfb91661c65134cac258cf5924270e9d2Dan Albert#endif 82