kernel.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * GRUB -- GRand Unified Bootloader
  3. * Copyright (C) 2013 Free Software Foundation, Inc.
  4. *
  5. * GRUB is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * GRUB is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef GRUB_KERNEL_MACHINE_HEADER
  19. #define GRUB_KERNEL_MACHINE_HEADER 1
  20. #ifndef ASM_FILE
  21. #include <grub/symbol.h>
  22. #include <grub/types.h>
  23. struct grub_fdt_board
  24. {
  25. const char *vendor, *part;
  26. const grub_uint8_t *dtb;
  27. grub_size_t dtb_size;
  28. };
  29. extern struct grub_fdt_board grub_fdt_boards[];
  30. void grub_machine_timer_init (void);
  31. void grub_pl050_init (void);
  32. void
  33. grub_cros_init (void);
  34. extern grub_addr_t EXPORT_VAR (start_of_ram);
  35. #endif /* ! ASM_FILE */
  36. #define GRUB_KERNEL_MACHINE_STACK_SIZE GRUB_KERNEL_ARM_STACK_SIZE
  37. #endif /* ! GRUB_KERNEL_MACHINE_HEADER */