1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 /* ---------------------------------------------------------------------------- 16 * Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. 17 * Description: Int ll64, big & little end type 18 * Author: Huawei LiteOS Team 19 * Create: 2020-10-20 20 * Redistribution and use in source and binary forms, with or without modification, 21 * are permitted provided that the following conditions are met: 22 * 1. Redistributions of source code must retain the above copyright notice, this list of 23 * conditions and the following disclaimer. 24 * 2. Redistributions in binary form must reproduce the above copyright notice, this list 25 * of conditions and the following disclaimer in the documentation and/or other materials 26 * provided with the distribution. 27 * 3. Neither the name of the copyright holder nor the names of its contributors may be used 28 * to endorse or promote products derived from this software without specific prior written 29 * permission. 30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 31 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 32 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 33 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 34 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 35 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 36 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 37 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 38 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 39 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 40 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 41 * --------------------------------------------------------------------------- */ 42 43 #ifndef _UAPI_INT_LL64_H 44 #define _UAPI_INT_LL64_H 45 46 typedef __signed__ char __s8; 47 typedef unsigned char __u8; 48 typedef __signed__ short __s16; 49 typedef unsigned short __u16; 50 typedef __signed__ int __s32; 51 typedef unsigned int __u32; 52 typedef __signed__ long long __s64; 53 typedef unsigned long long __u64; 54 typedef long long __kernel_loff_t; 55 56 typedef unsigned short __le16; 57 typedef unsigned short __be16; 58 typedef unsigned int __le32; 59 typedef unsigned int __be32; 60 typedef unsigned long long __le64; 61 typedef unsigned long long __be64; 62 63 #endif 64