LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
libxenon
drivers
lwip
xenon
include
arch
cc.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2001, Swedish Institute of Computer Science.
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
* 1. Redistributions of source code must retain the above copyright
9
* notice, this list of conditions and the following disclaimer.
10
* 2. Redistributions in binary form must reproduce the above copyright
11
* notice, this list of conditions and the following disclaimer in the
12
* documentation and/or other materials provided with the distribution.
13
* 3. Neither the name of the Institute nor the names of its contributors
14
* may be used to endorse or promote products derived from this software
15
* without specific prior written permission.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
18
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
21
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
* SUCH DAMAGE.
28
*
29
* This file is part of the lwIP TCP/IP stack.
30
*
31
* Author: Adam Dunkels <adam@sics.se>
32
*
33
* $Id: cc.h,v 1.1 2007/03/19 20:10:27 tmbinc Exp $
34
*/
35
#ifndef __ARCH_CC_H__
36
#define __ARCH_CC_H__
37
38
typedef
unsigned
char
u8_t
;
39
typedef
signed
char
s8_t
;
40
typedef
unsigned
short
u16_t
;
41
typedef
signed
short
s16_t
;
42
typedef
unsigned
int
u32_t
;
43
typedef
signed
int
s32_t
;
44
typedef
unsigned
long
u64_t
;
45
typedef
signed
long
s64_t
;
46
47
typedef
u64_t
mem_ptr_t
;
48
49
#define U32_F "u"
50
#define U16_F "hu"
51
#define S32_F "d"
52
#define S16_F "hd"
53
#define X32_F "x"
54
#define X16_F "hx"
55
56
//#define PACK_STRUCT_FIELD(x) x __attribute__((packed))
57
#define PACK_STRUCT_FIELD(x) x
58
#define PACK_STRUCT_STRUCT __attribute__((packed))
59
#define PACK_STRUCT_BEGIN
60
#define PACK_STRUCT_END
61
62
#ifdef LWIP_DEBUG
63
64
/* LW: forward declaration */
65
int
printf(
const
char
*format, ...);
66
67
/* Plaform specific diagnostic output */
68
69
#endif
/* LWIP_DEBUG */
70
#define LWIP_PLATFORM_DIAG(x) { printf x; }
71
#define LWIP_PLATFORM_ASSERT(x) { printf("\fline %d in %s\n"
, __LINE__, __FILE__); while(1); }
72
73
#endif
/* __ARCH_CC_H__ */
u32_t
unsigned int u32_t
Definition:
cc.h:42
s16_t
signed short s16_t
Definition:
cc.h:41
s64_t
signed long s64_t
Definition:
cc.h:45
u64_t
unsigned long u64_t
Definition:
cc.h:44
s8_t
signed char s8_t
Definition:
cc.h:39
u8_t
unsigned char u8_t
Definition:
cc.h:38
mem_ptr_t
u64_t mem_ptr_t
Definition:
cc.h:47
s32_t
signed int s32_t
Definition:
cc.h:43
u16_t
unsigned short u16_t
Definition:
cc.h:40
Generated by
1.9.5