vfs: check userland buffers before reading them.
[haiku.git] / headers / private / kernel / platform / u-boot / fdt_support.h
blob2202bcda9ae50b924236de245cbbee267b1d43ca
1 /*
2 * Copyright 2012-2015, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 * Authors
6 * Alexander von Gluck IV, kallisti5@unixzen.com
7 */
8 #ifndef __FDT_SUPPORT_H
9 #define __FDT_SUPPORT_H
12 #include <KernelExport.h>
15 void dump_fdt(const void *fdt);
16 status_t fdt_get_cell_count(const void* fdt, int node,
17 int32 &addressCells, int32 &sizeCells);
19 phys_addr_t fdt_get_device_reg(const void* fdt, int node, bool physical=true);
20 phys_addr_t fdt_get_device_reg_byname(const void* fdt, const char* name);
21 phys_addr_t fdt_get_device_reg_byalias(const void* fdt, const char* alias);
24 #endif /*__FDT_SUPPORT_H*/