1bf21cd93STycho Nightingale /* 2bf21cd93STycho Nightingale * This file and its contents are supplied under the terms of the 3bf21cd93STycho Nightingale * Common Development and Distribution License ("CDDL"), version 1.0. 4bf21cd93STycho Nightingale * You may only use this file in accordance with the terms of version 5bf21cd93STycho Nightingale * 1.0 of the CDDL. 6bf21cd93STycho Nightingale * 7bf21cd93STycho Nightingale * A full copy of the text of the CDDL should have accompanied this 8bf21cd93STycho Nightingale * source. A copy of the CDDL is also available via the Internet at 9bf21cd93STycho Nightingale * http://www.illumos.org/license/CDDL. 10bf21cd93STycho Nightingale */ 11bf21cd93STycho Nightingale 12bf21cd93STycho Nightingale /* 13bf21cd93STycho Nightingale * Copyright 2013 Pluribus Networks Inc. 14bf21cd93STycho Nightingale */ 15bf21cd93STycho Nightingale 16bf21cd93STycho Nightingale #ifndef _FREEBSD_X86__TYPES_H_ 17bf21cd93STycho Nightingale #define _FREEBSD_X86__TYPES_H_ 18bf21cd93STycho Nightingale 19bf21cd93STycho Nightingale /* 20bf21cd93STycho Nightingale * Basic types upon which most other types are built. 21bf21cd93STycho Nightingale */ 22bf21cd93STycho Nightingale typedef signed char __int8_t; 23bf21cd93STycho Nightingale typedef unsigned char __uint8_t; 24bf21cd93STycho Nightingale typedef short __int16_t; 25bf21cd93STycho Nightingale typedef unsigned short __uint16_t; 26bf21cd93STycho Nightingale typedef int __int32_t; 27bf21cd93STycho Nightingale typedef unsigned int __uint32_t; 28bf21cd93STycho Nightingale #ifdef _LP64 29bf21cd93STycho Nightingale typedef long __int64_t; 30bf21cd93STycho Nightingale typedef unsigned long __uint64_t; 31bf21cd93STycho Nightingale #else 32bf21cd93STycho Nightingale typedef long long __int64_t; 33bf21cd93STycho Nightingale typedef unsigned long long __uint64_t; 34bf21cd93STycho Nightingale #endif 35bf21cd93STycho Nightingale 36*84971882SPatrick Mooney /* 37bf21cd93STycho Nightingale * Standard type definitions. 38bf21cd93STycho Nightingale */ 39bf21cd93STycho Nightingale #ifdef _LP64 40bf21cd93STycho Nightingale typedef __int64_t __register_t; 41bf21cd93STycho Nightingale typedef __uint64_t __vm_offset_t; 42bf21cd93STycho Nightingale typedef __uint64_t __vm_paddr_t; 43bf21cd93STycho Nightingale typedef __int64_t __vm_ooffset_t; 444c87aefeSPatrick Mooney typedef __uint64_t __vm_size_t; 45bf21cd93STycho Nightingale #else 46bf21cd93STycho Nightingale typedef __int32_t __register_t; 47bf21cd93STycho Nightingale typedef __uint32_t __vm_paddr_t; 484c87aefeSPatrick Mooney typedef __uint32_t __vm_size_t; 49bf21cd93STycho Nightingale #endif 50bf21cd93STycho Nightingale 51bf21cd93STycho Nightingale #endif /* _FREEBSD_X86__TYPES_H_ */ 52