mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Provide kernel level headers for the libfdt code.
Reviewed by: imp Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
847ae21203
commit
21d30ec18d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208750
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user