Files
OpenCellular/firmware/arch/arm/include/biosincludes.h
Tom Wai-Hong Tam b7cfd6f59d Fix PRIu64 definition to llu.
Previous CL http://codereview.chromium.org/5634003 has a typo.
PRIu64 should be "llu" instead of "ll".

BUG=None
TEST=Build successfully and run with u-boot and verify that outputs with PRI

Change-Id: I960c422ed0446463d5fed5ac4a12f7728ddbb53b

Review URL: http://codereview.chromium.org/5687001
2010-12-09 14:00:01 +08:00

42 lines
1.0 KiB
C

/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* ARM firmware platform-specific definitions
*/
#ifndef __ARCH_ARM_BIOSINCLUDES_H__
#define __ARCH_ARM_BIOSINCLUDES_H__
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;
typedef signed long long int64_t;
typedef unsigned int size_t;
#ifndef NULL
#define NULL ((void*) 0)
#endif
#define UINT64_C(x) ((uint64_t) x)
#define PRIu64 "llu"
extern void debug(const char *format, ...);
#define POSSIBLY_UNUSED __attribute__((unused))
#ifdef __STRICT_ANSI__
#define INLINE
#else
#define INLINE inline
#endif
#define UINT64_RSHIFT(v, shiftby) (((uint64_t)(v)) >> (shiftby))
#define UINT64_MULT32(v, multby) (((uint64_t)(v)) * ((uint32_t)(multby)))
#ifndef UINT64_MAX
#define UINT64_MAX (UINT64_C(0xffffffffffffffffULL))
#endif
#endif /*__ARCH_ARM_BIOSINCLUDES_H__ */