cybook.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Disclaimer (blabla)
  3. *
  4. * Author: Manoël Trapier <manoelt@bookeen.com>
  5. * Copyright (c) 2009-2010 Bookeen
  6. *
  7. */
  8. #ifndef CYBOOK_H
  9. #define CYBOOK_H
  10. enum {
  11. CYBOOK_GEN3 = 0,
  12. CYBOOK_OPUS,
  13. CYBOOK_GEN3GOLD,
  14. CYBOOK_OPUS2,
  15. CYBOOK_GEN4,
  16. };
  17. extern unsigned int platform_type;
  18. /* 3322 2222 2222 1111 1111 1100 0000 0000
  19. * 1098 7654 3210 9876 5432 1098 7654 3210
  20. * ---------------------------------------
  21. * D FFFG GGVV VSSS
  22. *
  23. * D = Dev Mode
  24. *
  25. * FFF = Form Factor
  26. * GGG = GSensor mode
  27. * VVV = Video Driver
  28. * SSS = Sound Driver
  29. */
  30. extern unsigned long platform_capability;
  31. #define PLAT_CAP_GSENSOR (7 << 6)
  32. #define PLAT_CAP_GNONE (0 << 6)
  33. #define PLAT_CAP_GMMA7455 (1 << 6)
  34. #define PLAT_CAP_GMMA7660 (2 << 6)
  35. #define PLAT_CAP_GTILT (3 << 6)
  36. #define PLAT_CAP_SOUND (7 << 0)
  37. #define PLAT_CAP_SOUNDNO (0 << 0)
  38. #define PLAT_CAP_SOUNDL3 (1 << 0)
  39. #define PLAT_CAP_VIDEO (7 << 3)
  40. #define PLAT_CAP_VAPOLLO (0 << 3)
  41. #define PLAT_CAP_VEPSON (1 << 3)
  42. #define PLAT_CAP_VTCON (2 << 3)
  43. #define PLAT_CAP_FORMFACTOR (7 << 9)
  44. #define PLAT_CAP_GEN3FORM (0 << 9)
  45. #define PLAT_CAP_OPUSFORM (1 << 9)
  46. #define PLAT_CAP_ORIZONFORM (2 << 9)
  47. #define PLAT_CAP_DEVMODE (1 << 31)
  48. #define PLAT_CAP_UNRESTRICT (1 << 30)
  49. //#define PLAT_CAP_
  50. #define GET_CAPABILITY(CAPAB) (platform_capability & (CAPAB))
  51. #endif /* CYBOOK_H */