Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: firmware/arch/arm/include/biosincludes.h

Issue 6792031: Fix vboot_reference-firmware linking error (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | firmware/stub/include/biosincludes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 * 4 *
5 * ARM firmware platform-specific definitions 5 * ARM firmware platform-specific definitions
6 */ 6 */
7 7
8 #ifndef __ARCH_ARM_BIOSINCLUDES_H__ 8 #ifndef __ARCH_ARM_BIOSINCLUDES_H__
9 #define __ARCH_ARM_BIOSINCLUDES_H__ 9 #define __ARCH_ARM_BIOSINCLUDES_H__
10 10
11 typedef unsigned char uint8_t; 11 typedef unsigned char uint8_t;
12 typedef unsigned short uint16_t; 12 typedef unsigned short uint16_t;
13 typedef unsigned int uint32_t; 13 typedef unsigned int uint32_t;
14 typedef unsigned long long uint64_t; 14 typedef unsigned long long uint64_t;
15 typedef signed long long int64_t; 15 typedef signed long long int64_t;
16 typedef unsigned int size_t; 16 typedef unsigned int size_t;
17 17
18 #ifndef NULL 18 #ifndef NULL
19 #define NULL ((void*) 0) 19 #define NULL ((void*) 0)
20 #endif 20 #endif
21 21
22 #define UINT32_C(x) ((uint32_t) x)
22 #define UINT64_C(x) ((uint64_t) x) 23 #define UINT64_C(x) ((uint64_t) x)
23 #define PRIu64 "llu" 24 #define PRIu64 "llu"
24 extern void debug(const char *format, ...); 25 extern void debug(const char *format, ...);
25 26
26 #define POSSIBLY_UNUSED __attribute__((unused)) 27 #define POSSIBLY_UNUSED __attribute__((unused))
27 28
28 #ifdef __STRICT_ANSI__ 29 #ifdef __STRICT_ANSI__
29 #define INLINE 30 #define INLINE
30 #else 31 #else
31 #define INLINE inline 32 #define INLINE inline
32 #endif 33 #endif
33 34
34 #define UINT64_RSHIFT(v, shiftby) (((uint64_t)(v)) >> (shiftby)) 35 #define UINT64_RSHIFT(v, shiftby) (((uint64_t)(v)) >> (shiftby))
35 #define UINT64_MULT32(v, multby) (((uint64_t)(v)) * ((uint32_t)(multby))) 36 #define UINT64_MULT32(v, multby) (((uint64_t)(v)) * ((uint32_t)(multby)))
36 37
37 #ifndef UINT32_MAX 38 #ifndef UINT32_MAX
38 #define UINT32_MAX (UINT32_C(0xffffffffU)) 39 #define UINT32_MAX (UINT32_C(0xffffffffU))
39 #endif 40 #endif
40 41
41 #ifndef UINT64_MAX 42 #ifndef UINT64_MAX
42 #define UINT64_MAX (UINT64_C(0xffffffffffffffffULL)) 43 #define UINT64_MAX (UINT64_C(0xffffffffffffffffULL))
43 #endif 44 #endif
44 45
45 #endif /*__ARCH_ARM_BIOSINCLUDES_H__ */ 46 #endif /*__ARCH_ARM_BIOSINCLUDES_H__ */
OLDNEW
« no previous file with comments | « no previous file | firmware/stub/include/biosincludes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698