fdt.c 575 B

123456789101112131415161718192021
  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. #include <linux/of.h>
  12. #include <linux/of_fdt.h>
  13. struct boot_param_header *initial_boot_params;
  14. char *find_flat_dt_string(u32 offset)
  15. {
  16. return ((char *)initial_boot_params) +
  17. initial_boot_params->off_dt_strings + offset;
  18. }