XenevaOS
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1//
2// types.h
3//
4// USPi - An USB driver for Raspberry Pi written in C
5// Copyright (C) 2014-2018 R. Stange <rsta2@o2online.de>
6//
7// This program is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program. If not, see <http://www.gnu.org/licenses/>.
19//
20#ifndef _uspi_types_h
21#define _uspi_types_h
22
23typedef unsigned char u8;
24typedef unsigned short u16;
25typedef unsigned int u32;
26#ifndef AARCH64
27typedef unsigned long long u64;
28#else
29typedef unsigned long u64;
30#endif
31
32typedef signed char s8;
33typedef signed short s16;
34typedef signed int s32;
35#ifndef AARCH64
36typedef signed long long s64;
37#else
38typedef signed long s64;
39#endif
40
41#ifndef AARCH64
42typedef s32 intptr;
43typedef u32 uintptr;
44#else
45typedef s64 intptr;
46typedef u64 uintptr;
47#endif
48
49typedef int boolean;
50#define FALSE 0
51#define TRUE 1
52
53//typedef unsigned long size_t;
54typedef long ssize_t;
55
56#endif
s32 intptr
Definition types.h:42
signed int s32
Definition types.h:34
unsigned int u32
Definition types.h:25
signed char s8
Definition types.h:32
signed long long s64
Definition types.h:36
signed short s16
Definition types.h:33
int boolean
Definition types.h:49
long ssize_t
Definition types.h:54
unsigned short u16
Definition types.h:24
u32 uintptr
Definition types.h:43
unsigned long long u64
Definition types.h:27
unsigned char u8
Definition types.h:23
int64_t s64
Definition kernel.h:27
uint64_t u64
Definition kernel.h:23
int32_t s32
Definition kernel.h:26
uint32_t u32
Definition kernel.h:22