Back to home page

Quest Cross Reference

 
 

    


Warning, cross-references for /kernel/include/types.h need to be fixed.

0001 /*                    The Quest Operating System
0002  *  Copyright (C) 2005-2010  Richard West, Boston University
0003  *
0004  *  This program is free software: you can redistribute it and/or modify
0005  *  it under the terms of the GNU General Public License as published by
0006  *  the Free Software Foundation, either version 3 of the License, or
0007  *  (at your option) any later version.
0008  *
0009  *  This program is distributed in the hope that it will be useful,
0010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012  *  GNU General Public License for more details.
0013  *
0014  *  You should have received a copy of the GNU General Public License
0015  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
0016  */
0017 
0018 #ifndef __TYPES_H__
0019 #define __TYPES_H__
0020 
0021 #define INT_MAX 0xFFFFFFFF
0022 
0023 #ifndef __ASSEMBLER__
0024 
0025 #define TRUE 1
0026 #define FALSE 0
0027 #define PRIVATE static
0028 #define PACKED __attribute__ ((packed))
0029 #define SQUELCH_UNUSED __attribute__((unused))
0030 #define ALIGNED(x) __attribute__((aligned (x)))
0031 
0032 typedef unsigned char uint8;
0033 typedef unsigned short int uint16;
0034 typedef unsigned long int uint32;
0035 typedef unsigned long long int uint64;
0036 
0037 typedef signed char sint8, s8;
0038 typedef signed short int sint16, s16;
0039 typedef signed long int sint32, s32;
0040 typedef signed long long int sint64, s64;
0041 
0042 #ifndef _SIZE_T
0043 typedef int size_t;
0044 #define _SIZE_T 1
0045 #endif
0046 
0047 typedef signed char bool;
0048 
0049 typedef unsigned long uint;
0050 typedef signed long sint;
0051 
0052 typedef uint8 uint8_t, u8;
0053 typedef uint16 uint16_t, u16, __le16;
0054 typedef uint32 uint32_t, u32, __le32, __be32, dma_addr_t, frame_t, framenum_t, phys_addr_t;
0055 typedef uint64 uint64_t, u64, __le64;
0056 
0057 typedef void *addr_t;
0058 
0059 #endif // [#ifndef __ASSEMBLER__]
0060 
0061 #endif
0062 
0063 
0064 /* 
0065  * Local Variables:
0066  * indent-tabs-mode: nil
0067  * mode: C
0068  * c-file-style: "gnu"
0069  * c-basic-offset: 2
0070  * End: 
0071  */
0072 
0073 /* vi: set et sw=2 sts=2: */