u-boot.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * (C) Copyright 2000 - 2002
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * (C) Copyright 2007, From asm-ppc/u-boot.h
  6. * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. *
  23. ********************************************************************
  24. * NOTE: This header file defines an interface to U-Boot. Including
  25. * this (unmodified) header file in another file is considered normal
  26. * use of U-Boot, and does *not* fall under the heading of "derived
  27. * work".
  28. ********************************************************************
  29. */
  30. #ifndef __U_BOOT_H__
  31. #define __U_BOOT_H__
  32. /*
  33. * Currently, this Board information is not passed to
  34. * Linux kernel from U-Boot, but may be passed to other
  35. * Operating systems. This is because U-boot emulates
  36. * a SUN PROM loader (from Linux point of view).
  37. *
  38. * include/asm-sparc/u-boot.h
  39. */
  40. #ifndef __ASSEMBLY__
  41. typedef struct bd_info {
  42. unsigned long bi_memstart; /* start of DRAM memory */
  43. phys_size_t bi_memsize; /* size of DRAM memory in bytes */
  44. unsigned long bi_flashstart; /* start of FLASH memory */
  45. unsigned long bi_flashsize; /* size of FLASH memory */
  46. unsigned long bi_flashoffset; /* reserved area for startup monitor */
  47. unsigned long bi_sramstart; /* start of SRAM memory */
  48. unsigned long bi_sramsize; /* size of SRAM memory */
  49. unsigned long bi_bootflags; /* boot / reboot flag (for LynxOS) */
  50. unsigned long bi_ip_addr; /* IP Address */
  51. unsigned short bi_ethspeed; /* Ethernet speed in Mbps */
  52. unsigned long bi_intfreq; /* Internal Freq, in MHz */
  53. unsigned long bi_busfreq; /* Bus Freq, in MHz */
  54. unsigned long bi_baudrate; /* Console Baudrate */
  55. } bd_t;
  56. #endif /* __ASSEMBLY__ */
  57. #endif /* __U_BOOT_H__ */