skyeye_defs.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #pragma once
  2. #include "common/common.h"
  3. #define MODE32
  4. #define MODET
  5. typedef struct
  6. {
  7. const char *cpu_arch_name; /* CPU architecture version name.e.g. armv4t */
  8. const char *cpu_name; /* CPU name. e.g. arm7tdmi or arm720t */
  9. u32 cpu_val; /*CPU value; also call MMU ID or processor id;see
  10. ARM Architecture Reference Manual B2-6 */
  11. u32 cpu_mask; /* cpu_val's mask. */
  12. u32 cachetype; /* this CPU has what kind of cache */
  13. } cpu_config_t;
  14. typedef enum {
  15. /* No exception */
  16. No_exp = 0,
  17. /* Memory allocation exception */
  18. Malloc_exp,
  19. /* File open exception */
  20. File_open_exp,
  21. /* DLL open exception */
  22. Dll_open_exp,
  23. /* Invalid argument exception */
  24. Invarg_exp,
  25. /* Invalid module exception */
  26. Invmod_exp,
  27. /* wrong format exception for config file parsing */
  28. Conf_format_exp,
  29. /* some reference excess the predefiend range. Such as the index out of array range */
  30. Excess_range_exp,
  31. /* Can not find the desirable result */
  32. Not_found_exp,
  33. /* Unknown exception */
  34. Unknown_exp
  35. } exception_t;
  36. typedef enum {
  37. Align = 0,
  38. UnAlign
  39. } align_t;
  40. typedef enum {
  41. Little_endian = 0,
  42. Big_endian
  43. } endian_t;
  44. typedef enum {
  45. Phys_addr = 0,
  46. Virt_addr
  47. } addr_type_t;
  48. typedef u32 addr_t;