eeprom_param.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #ifndef EEPROM_PARAM_
  2. #define EEPROM_PARAM_
  3. #define SDRAM_REGS 0xbf000000
  4. unsigned int galileo_dl(void);
  5. void (*boot_addr)(int argc, char **argv, char **envp);
  6. #define NETWORK_BT_BIN 0
  7. #define FLASH_BT 1
  8. #define SERIAL_BT 2
  9. #define NETWORK_BT_SREC 3
  10. #define LINUX_OS 0
  11. #define OTHER_OS 1
  12. /********************************************************************
  13.  *eeprom_parameters -
  14.  *
  15.  *This structure holds the eeprom parameters (usually stored on flash
  16.  *memory)
  17.  *The structure is all stored in flash memory except memory_size which
  18.  *is probed each boot time for the real size of memory on the
  19.  *evaluation board.
  20.  *
  21.  *The structure also holds information that is not used by all
  22.  *evaluation board, such as the eth?_mac, which holds the MAC addresses
  23.  *of the built in ethernet ports in the EVB96100 for example, but is
  24.  *never used by EVB64120A.
  25.  *
  26.  *********************************************************************/
  27. struct eeprom_parameters {
  28.   unsigned int boot_source;
  29.   unsigned int operating_system;
  30.   /* network loader parametrs */
  31.   unsigned int host_ip;
  32.   unsigned int server_ip;
  33.   char bootimage[64];
  34.   /* Board parameters */
  35.   char eth0_mac[6];
  36.   char eth1_mac[6];
  37.   char eth2_mac[6];
  38.   char eth3_mac[6];
  39.   /* Command Line (usually needed for Linux) */
  40.   char os_command_line[256];
  41.   unsigned int entry_point;
  42.   unsigned memory_size;
  43. };
  44. #endif /* EEPROM_PARAM_ */