Grant Likely | e169cfb | 2009-11-23 14:53:09 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Functions for working with the Flattened Device Tree data format |
| 3 | * |
| 4 | * Copyright 2009 Benjamin Herrenschmidt, IBM Corp |
| 5 | * benh@kernel.crashing.org |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License |
| 9 | * version 2 as published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
| 12 | #include <linux/of.h> |
| 13 | #include <linux/of_fdt.h> |
| 14 | |
| 15 | struct boot_param_header *initial_boot_params; |
| 16 | |
| 17 | char *find_flat_dt_string(u32 offset) |
| 18 | { |
| 19 | return ((char *)initial_boot_params) + |
| 20 | initial_boot_params->off_dt_strings + offset; |
| 21 | } |