setup.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Based on arch/arm/include/asm/setup.h
  3. *
  4. * Copyright (C) 1997-1999 Russell King
  5. * Copyright (C) 2012 ARM Ltd.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef __ASM_SETUP_H
  20. #define __ASM_SETUP_H
  21. #include <linux/types.h>
  22. #define COMMAND_LINE_SIZE 2048
  23. /* general memory descriptor */
  24. struct mem_desc {
  25. u64 start;
  26. u64 size;
  27. };
  28. /* mblock is used by CPU */
  29. struct mblock {
  30. u64 start;
  31. u64 size;
  32. u32 rank; /* rank the mblock belongs to */
  33. };
  34. struct mblock_info {
  35. u32 mblock_num;
  36. struct mblock mblock[4];
  37. };
  38. struct dram_info {
  39. u32 rank_num;
  40. struct mem_desc rank_info[4];
  41. };
  42. #endif