Provide kernel level headers for the libfdt code.

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Rafal Jaworowski 2010-06-02 17:24:41 +00:00
parent 847ae21203
commit 21d30ec18d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208750

View File

@ -1,9 +1,17 @@
#ifndef _LIBFDT_ENV_H
#define _LIBFDT_ENV_H
#ifdef _KERNEL
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/systm.h>
#include <sys/stdint.h>
#else
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#endif
#define _B(n) ((unsigned long long)((uint8_t *)&x)[n])
static inline uint32_t fdt32_to_cpu(uint32_t x)