~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to libfdt_env.h

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-22 10:13:17 UTC
  • mfrom: (1.2.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090322101317-iigjtnu5qil35dtb
Tags: 0.10.1-1
[ Aurelien Jarno ]
* New upstream stable release:
  - patches/80_stable-branch.patch: remove.
* debian/control: 
  - Remove depends on proll.
  - Move depends on device-tree-compiler to build-depends.
  - Bump Standards-Version to 3.8.1 (no changes).
* patches/82_qemu-img_decimal.patch: new patch from upstream to make
  qemu-img accept sizes with decimal values (closes: bug#501400).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This program is free software; you can redistribute it and/or modify
 
3
 * it under the terms of the GNU General Public License, version 2, as
 
4
 * published by the Free Software Foundation.
 
5
 *
 
6
 * This program is distributed in the hope that it will be useful,
 
7
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
8
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
9
 * GNU General Public License for more details.
 
10
 *
 
11
 * You should have received a copy of the GNU General Public License
 
12
 * along with this program; if not, write to the Free Software
 
13
 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
14
 *
 
15
 * Copyright IBM Corp. 2008
 
16
 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
 
17
 *
 
18
 */
 
19
 
 
20
#ifndef _LIBFDT_ENV_H
 
21
#define _LIBFDT_ENV_H
 
22
 
 
23
#include <stddef.h>
 
24
#include <stdint.h>
 
25
#include <string.h>
 
26
#include <endian.h>
 
27
#include <byteswap.h>
 
28
 
 
29
#if __BYTE_ORDER == __BIG_ENDIAN
 
30
#define fdt32_to_cpu(x)         (x)
 
31
#define cpu_to_fdt32(x)         (x)
 
32
#define fdt64_to_cpu(x)         (x)
 
33
#define cpu_to_fdt64(x)         (x)
 
34
#else
 
35
#define fdt32_to_cpu(x)         (bswap_32((x)))
 
36
#define cpu_to_fdt32(x)         (bswap_32((x)))
 
37
#define fdt64_to_cpu(x)         (bswap_64((x)))
 
38
#define cpu_to_fdt64(x)         (bswap_64((x)))
 
39
#endif
 
40
 
 
41
#endif /* _LIBFDT_ENV_H */