rbcfg.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * Mikrotik's RouterBOOT configuration defines
  3. *
  4. * Copyright (C) 2010 Gabor Juhos <juhosg@openwrt.org>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License version 2 as published
  8. * by the Free Software Foundation.
  9. *
  10. */
  11. #ifndef _RBCFG_H
  12. #define _RBCFG_H
  13. /*
  14. * Magic numbers
  15. */
  16. #define RB_MAGIC_SOFT 0x74666f53 /* 'Soft' */
  17. /*
  18. * ID values for Software settings
  19. */
  20. #define RB_ID_TERMINATOR 0
  21. #define RB_ID_UART_SPEED 1
  22. #define RB_ID_BOOT_DELAY 2
  23. #define RB_ID_BOOT_DEVICE 3
  24. #define RB_ID_BOOT_KEY 4
  25. #define RB_ID_CPU_MODE 5
  26. #define RB_ID_FW_VERSION 6
  27. #define RB_ID_SOFT_07 7
  28. #define RB_ID_SOFT_08 8
  29. #define RB_ID_BOOT_PROTOCOL 9
  30. #define RB_ID_SOFT_10 10
  31. #define RB_ID_SOFT_11 11
  32. #define RB_ID_BOOTER 13
  33. #define RB_UART_SPEED_115200 0
  34. #define RB_UART_SPEED_57600 1
  35. #define RB_UART_SPEED_38400 2
  36. #define RB_UART_SPEED_19200 3
  37. #define RB_UART_SPEED_9600 4
  38. #define RB_UART_SPEED_4800 5
  39. #define RB_UART_SPEED_2400 6
  40. #define RB_UART_SPEED_1200 7
  41. #define RB_UART_SPEED_OFF 8
  42. #define RB_BOOT_DELAY_1SEC 1
  43. #define RB_BOOT_DELAY_2SEC 2
  44. #define RB_BOOT_DELAY_3SEC 3
  45. #define RB_BOOT_DELAY_4SEC 4
  46. #define RB_BOOT_DELAY_5SEC 5
  47. #define RB_BOOT_DELAY_6SEC 6
  48. #define RB_BOOT_DELAY_7SEC 7
  49. #define RB_BOOT_DELAY_8SEC 8
  50. #define RB_BOOT_DELAY_9SEC 9
  51. #define RB_BOOT_DEVICE_ETHER 0
  52. #define RB_BOOT_DEVICE_NANDETH 1
  53. #define RB_BOOT_DEVICE_CFCARD 2
  54. #define RB_BOOT_DEVICE_ETHONCE 3
  55. #define RB_BOOT_DEVICE_NANDONLY 5
  56. #define RB_BOOT_KEY_ANY 0
  57. #define RB_BOOT_KEY_DEL 1
  58. #define RB_CPU_MODE_POWERSAVE 0
  59. #define RB_CPU_MODE_REGULAR 1
  60. #define RB_BOOT_PROTOCOL_BOOTP 0
  61. #define RB_BOOT_PROTOCOL_DHCP 1
  62. #define RB_BOOTER_REGULAR 0
  63. #define RB_BOOTER_BACKUP 1
  64. #endif /* _RBCFG_H */