utils.h 711 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _utils_h_
  2. #define _utils_h_
  3. #define BLOCKSIZE (0x10000)
  4. #define SPICELL_MAX (BLOCKSIZE/sizeof(spicell_t))
  5. #define SPICELL_KEYWORD 0xce110006
  6. typedef struct _spicell_t{
  7. unsigned int keyword;
  8. unsigned char umf[8188];
  9. }spicell_t;
  10. typedef struct _spicells_t{
  11. spicell_t cells[SPICELL_MAX];
  12. }spicells_t;
  13. typedef struct _MenuSetting_t{
  14. //LVDS format for bootrom
  15. u32 LVDSFormat[9];
  16. //~LVDS format for bootrom
  17. //for predriver
  18. u32 PreMainSource; //0~7:device num, 8~32:source type
  19. u32 LastATVFreq;
  20. u32 LastDTVFreq;
  21. }MenuSetting_t;
  22. typedef struct _MenuDefault_t
  23. {
  24. u32 sync_id;
  25. u32 size;
  26. MenuSetting_t menuSettingDefault;
  27. }MenuDefault_t;
  28. #endif