mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 8 additions and 0 deletions
|
|
@ -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 a new issue