cmd_confdefs.h 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /*
  2. * (C) Copyright 2000-2002
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  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. * Definitions for Configuring the monitor commands
  25. */
  26. #ifndef _CMD_CONFIG_H
  27. #define _CMD_CONFIG_H
  28. /*
  29. * Configurable monitor commands
  30. */
  31. #define CFG_CMD_BDI 0x00000001ULL /* bdinfo */
  32. #define CFG_CMD_LOADS 0x00000002ULL /* loads */
  33. #define CFG_CMD_LOADB 0x00000004ULL /* loadb */
  34. #define CFG_CMD_IMI 0x00000008ULL /* iminfo */
  35. #define CFG_CMD_CACHE 0x00000010ULL /* icache, dcache */
  36. #define CFG_CMD_FLASH 0x00000020ULL /* flinfo, erase, protect */
  37. #define CFG_CMD_MEMORY 0x00000040ULL /* md, mm, nm, mw, cp, cmp, */
  38. /* crc, base, loop, mtest */
  39. #define CFG_CMD_NET 0x00000080ULL /* bootp, tftpboot, rarpboot */
  40. #define CFG_CMD_ENV 0x00000100ULL /* saveenv */
  41. #define CFG_CMD_KGDB 0x0000000000000200ULL /* kgdb */
  42. #define CFG_CMD_PCMCIA 0x00000400ULL /* PCMCIA support */
  43. #define CFG_CMD_IDE 0x00000800ULL /* IDE harddisk support */
  44. #define CFG_CMD_PCI 0x00001000ULL /* pciinfo */
  45. #define CFG_CMD_IRQ 0x00002000ULL /* irqinfo */
  46. #define CFG_CMD_BOOTD 0x00004000ULL /* bootd */
  47. #define CFG_CMD_CONSOLE 0x00008000ULL /* coninfo */
  48. #define CFG_CMD_EEPROM 0x00010000ULL /* EEPROM read/write support */
  49. #define CFG_CMD_ASKENV 0x00020000ULL /* ask for env variable */
  50. #define CFG_CMD_RUN 0x00040000ULL /* run command in env variable */
  51. #define CFG_CMD_ECHO 0x00080000ULL /* echo arguments */
  52. #define CFG_CMD_I2C 0x00100000ULL /* I2C serial bus support */
  53. #define CFG_CMD_REGINFO 0x00200000ULL /* Register dump */
  54. #define CFG_CMD_IMMAP 0x00400000ULL /* IMMR dump support */
  55. #define CFG_CMD_DATE 0x00800000ULL /* support for RTC, date/time...*/
  56. #define CFG_CMD_DHCP 0x01000000ULL /* DHCP Support */
  57. #define CFG_CMD_BEDBUG 0x02000000ULL /* Include BedBug Debugger */
  58. #define CFG_CMD_FDC 0x04000000ULL /* Floppy Disk Support */
  59. #define CFG_CMD_SCSI 0x08000000ULL /* SCSI Support */
  60. #define CFG_CMD_AUTOSCRIPT 0x10000000ULL /* Autoscript Support */
  61. #define CFG_CMD_MII 0x20000000ULL /* MII support */
  62. #define CFG_CMD_SETGETDCR 0x40000000ULL /* DCR support on 4xx */
  63. #define CFG_CMD_BSP 0x80000000ULL /* Board Specific functions */
  64. #define CFG_CMD_ELF 0x0000000100000000ULL /* ELF (VxWorks) load/boot cmd */
  65. #define CFG_CMD_MISC 0x0000000200000000ULL /* Misc functions like sleep etc*/
  66. #define CFG_CMD_USB 0x0000000400000000ULL /* USB Support */
  67. #define CFG_CMD_DOC 0x0000000800000000ULL /* Disk-On-Chip Support */
  68. #define CFG_CMD_JFFS2 0x0000001000000000ULL /* JFFS2 Support */
  69. #define CFG_CMD_DTT 0x0000002000000000ULL /* Digital Therm and Thermostat */
  70. #define CFG_CMD_SDRAM 0x0000004000000000ULL /* SDRAM DIMM SPD info printout */
  71. #define CFG_CMD_DIAG 0x0000008000000000ULL /* Diagnostics */
  72. #define CFG_CMD_FPGA 0x0000010000000000ULL /* FPGA configuration Support */
  73. #define CFG_CMD_HWFLOW 0x0000020000000000ULL /* RTS/CTS hw flow control */
  74. #define CFG_CMD_SAVES 0x0000040000000000ULL /* save S record dump */
  75. #define CFG_CMD_SPI 0x0000100000000000ULL /* SPI utility */
  76. #define CFG_CMD_FDOS 0x0000200000000000ULL /* Floppy DOS support */
  77. #define CFG_CMD_VFD 0x0000400000000000ULL /* VFD support (TRAB) */
  78. #define CFG_CMD_NAND 0x0000800000000000ULL /* NAND support */
  79. #define CFG_CMD_BMP 0x0001000000000000ULL /* BMP support */
  80. #define CFG_CMD_PORTIO 0x0002000000000000ULL /* Port I/O */
  81. #define CFG_CMD_PING 0x0004000000000000ULL /* ping support */
  82. #define CFG_CMD_MMC 0x0008000000000000ULL /* MMC support */
  83. #define CFG_CMD_FAT 0x0010000000000000ULL /* FAT support */
  84. #define CFG_CMD_IMLS 0x0020000000000000ULL /* List all found images */
  85. #define CFG_CMD_ITEST 0x0040000000000000ULL /* Integer (and string) test */
  86. #define CFG_CMD_NFS 0x0080000000000000ULL /* NFS support */
  87. #define CFG_CMD_REISER 0x0100000000000000ULL /* Reiserfs support */
  88. #define CFG_CMD_CDP 0x0200000000000000ULL /* Cisco Discovery Protocol */
  89. #define CFG_CMD_XIMG 0x0400000000000000ULL /* Load part of Multi Image */
  90. #define CFG_CMD_UNIVERSE 0x0800000000000000ULL /* Tundra Universe Support */
  91. #define CFG_CMD_EXT2 0x1000000000000000ULL /* EXT2 Support */
  92. #define CFG_CMD_SNTP 0x2000000000000000ULL /* SNTP support */
  93. #define CFG_CMD_DISPLAY 0x4000000000000000ULL /* Display support */
  94. #define CFG_CMD_ALL 0xFFFFFFFFFFFFFFFFULL /* ALL commands */
  95. /* Commands that are considered "non-standard" for some reason
  96. * (memory hogs, requires special hardware, not fully tested, etc.)
  97. */
  98. #define CFG_CMD_NONSTD (CFG_CMD_ASKENV | \
  99. CFG_CMD_BEDBUG | \
  100. CFG_CMD_BMP | \
  101. CFG_CMD_BSP | \
  102. CFG_CMD_CACHE | \
  103. CFG_CMD_CDP | \
  104. CFG_CMD_DATE | \
  105. CFG_CMD_DHCP | \
  106. CFG_CMD_DIAG | \
  107. CFG_CMD_DISPLAY | \
  108. CFG_CMD_DOC | \
  109. CFG_CMD_DTT | \
  110. CFG_CMD_EEPROM | \
  111. CFG_CMD_ELF | \
  112. CFG_CMD_EXT2 | \
  113. CFG_CMD_FDC | \
  114. CFG_CMD_FAT | \
  115. CFG_CMD_FDOS | \
  116. CFG_CMD_HWFLOW | \
  117. CFG_CMD_I2C | \
  118. CFG_CMD_IDE | \
  119. CFG_CMD_IMMAP | \
  120. CFG_CMD_IRQ | \
  121. CFG_CMD_JFFS2 | \
  122. CFG_CMD_KGDB | \
  123. CFG_CMD_MII | \
  124. CFG_CMD_MMC | \
  125. CFG_CMD_NAND | \
  126. CFG_CMD_PCI | \
  127. CFG_CMD_PCMCIA | \
  128. CFG_CMD_PING | \
  129. CFG_CMD_PORTIO | \
  130. CFG_CMD_REGINFO | \
  131. CFG_CMD_REISER | \
  132. CFG_CMD_SAVES | \
  133. CFG_CMD_SCSI | \
  134. CFG_CMD_SDRAM | \
  135. CFG_CMD_SNTP | \
  136. CFG_CMD_SPI | \
  137. CFG_CMD_UNIVERSE | \
  138. CFG_CMD_USB | \
  139. CFG_CMD_VFD )
  140. /* Default configuration
  141. */
  142. #define CONFIG_CMD_DFL (CFG_CMD_ALL & ~CFG_CMD_NONSTD)
  143. #ifndef CONFIG_COMMANDS
  144. #define CONFIG_COMMANDS CONFIG_CMD_DFL
  145. #endif
  146. /*
  147. * optional BOOTP fields
  148. */
  149. #define CONFIG_BOOTP_SUBNETMASK 0x00000001
  150. #define CONFIG_BOOTP_GATEWAY 0x00000002
  151. #define CONFIG_BOOTP_HOSTNAME 0x00000004
  152. #define CONFIG_BOOTP_NISDOMAIN 0x00000008
  153. #define CONFIG_BOOTP_BOOTPATH 0x00000010
  154. #define CONFIG_BOOTP_BOOTFILESIZE 0x00000020
  155. #define CONFIG_BOOTP_DNS 0x00000040
  156. #define CONFIG_BOOTP_DNS2 0x00000080
  157. #define CONFIG_BOOTP_SEND_HOSTNAME 0x00000100
  158. #define CONFIG_BOOTP_NTPSERVER 0x00000200
  159. #define CONFIG_BOOTP_TIMEOFFSET 0x00000400
  160. #define CONFIG_BOOTP_VENDOREX 0x80000000
  161. #define CONFIG_BOOTP_ALL (~CONFIG_BOOTP_VENDOREX)
  162. #define CONFIG_BOOTP_DEFAULT (CONFIG_BOOTP_SUBNETMASK | \
  163. CONFIG_BOOTP_GATEWAY | \
  164. CONFIG_BOOTP_HOSTNAME | \
  165. CONFIG_BOOTP_BOOTPATH)
  166. #ifndef CONFIG_BOOTP_MASK
  167. #define CONFIG_BOOTP_MASK CONFIG_BOOTP_DEFAULT
  168. #endif
  169. #endif /* _CMD_CONFIG_H */