Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/fdt/fdt_common.c
Show All 32 Lines | |||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/module.h> | #include <sys/module.h> | ||||
#include <sys/bus.h> | #include <sys/bus.h> | ||||
#include <sys/limits.h> | #include <sys/limits.h> | ||||
#include <sys/sysctl.h> | |||||
#include <machine/resource.h> | #include <machine/resource.h> | ||||
#include <dev/fdt/fdt_common.h> | #include <dev/fdt/fdt_common.h> | ||||
#include <dev/ofw/ofw_bus.h> | #include <dev/ofw/ofw_bus.h> | ||||
#include <dev/ofw/ofw_bus_subr.h> | #include <dev/ofw/ofw_bus_subr.h> | ||||
#include <dev/ofw/openfirm.h> | #include <dev/ofw/openfirm.h> | ||||
#include "ofw_bus_if.h" | #include "ofw_bus_if.h" | ||||
#ifdef DEBUG | #ifdef DEBUG | ||||
#define debugf(fmt, args...) do { printf("%s(): ", __func__); \ | #define debugf(fmt, args...) do { printf("%s(): ", __func__); \ | ||||
printf(fmt,##args); } while (0) | printf(fmt,##args); } while (0) | ||||
#else | #else | ||||
#define debugf(fmt, args...) | #define debugf(fmt, args...) | ||||
#endif | #endif | ||||
#define FDT_COMPAT_LEN 255 | #define FDT_COMPAT_LEN 255 | ||||
#define FDT_TYPE_LEN 64 | #define FDT_TYPE_LEN 64 | ||||
#define FDT_REG_CELLS 4 | #define FDT_REG_CELLS 4 | ||||
SYSCTL_NODE(_hw, OID_AUTO, fdt, CTLFLAG_RD, 0, "Flattened Device Tree"); | |||||
vm_paddr_t fdt_immr_pa; | vm_paddr_t fdt_immr_pa; | ||||
vm_offset_t fdt_immr_va; | vm_offset_t fdt_immr_va; | ||||
vm_offset_t fdt_immr_size; | vm_offset_t fdt_immr_size; | ||||
struct fdt_ic_list fdt_ic_list_head = SLIST_HEAD_INITIALIZER(fdt_ic_list_head); | struct fdt_ic_list fdt_ic_list_head = SLIST_HEAD_INITIALIZER(fdt_ic_list_head); | ||||
static int | static int | ||||
▲ Show 20 Lines • Show All 668 Lines • Show Last 20 Lines |