Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/fdt/fdt_common.h
Show All 26 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _FDT_COMMON_H_ | #ifndef _FDT_COMMON_H_ | ||||
#define _FDT_COMMON_H_ | #define _FDT_COMMON_H_ | ||||
#include <sys/sysctl.h> | |||||
#include <sys/slicer.h> | #include <sys/slicer.h> | ||||
#include <contrib/libfdt/libfdt_env.h> | #include <contrib/libfdt/libfdt_env.h> | ||||
#include <dev/ofw/ofw_bus.h> | #include <dev/ofw/ofw_bus.h> | ||||
#define FDT_MEM_REGIONS 8 | #define FDT_MEM_REGIONS 8 | ||||
#define DI_MAX_INTR_NUM 32 | #define DI_MAX_INTR_NUM 32 | ||||
Show All 31 Lines | struct fdt_pm_mask_entry { | ||||
char *compat; | char *compat; | ||||
uint32_t mask; | uint32_t mask; | ||||
}; | }; | ||||
extern struct fdt_pm_mask_entry fdt_pm_mask_table[]; | extern struct fdt_pm_mask_entry fdt_pm_mask_table[]; | ||||
#if defined(FDT_DTB_STATIC) | #if defined(FDT_DTB_STATIC) | ||||
extern u_char fdt_static_dtb; | extern u_char fdt_static_dtb; | ||||
#endif | #endif | ||||
SYSCTL_DECL(_hw_fdt); | |||||
int fdt_addrsize_cells(phandle_t, int *, int *); | int fdt_addrsize_cells(phandle_t, int *, int *); | ||||
u_long fdt_data_get(void *, int); | u_long fdt_data_get(void *, int); | ||||
int fdt_data_to_res(pcell_t *, int, int, u_long *, u_long *); | int fdt_data_to_res(pcell_t *, int, int, u_long *, u_long *); | ||||
phandle_t fdt_find_compatible(phandle_t, const char *, int); | phandle_t fdt_find_compatible(phandle_t, const char *, int); | ||||
phandle_t fdt_depth_search_compatible(phandle_t, const char *, int); | phandle_t fdt_depth_search_compatible(phandle_t, const char *, int); | ||||
int fdt_get_mem_regions(struct mem_region *, int *, uint64_t *); | int fdt_get_mem_regions(struct mem_region *, int *, uint64_t *); | ||||
int fdt_get_reserved_regions(struct mem_region *, int *); | int fdt_get_reserved_regions(struct mem_region *, int *); | ||||
Show All 16 Lines |