cap.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*****************************************************************************
  2. * Copyright 2009 Broadcom Corporation. All rights reserved.
  3. *
  4. * Unless you and Broadcom execute a separate written software license
  5. * agreement governing use of this software, this software is licensed to you
  6. * under the terms of the GNU General Public License version 2, available at
  7. * http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
  8. *
  9. * Notwithstanding the above, under no circumstances may you combine this
  10. * software in any way with any other Broadcom software provided under a
  11. * license other than the GPL, without Broadcom's express prior written
  12. * consent.
  13. *****************************************************************************/
  14. #ifndef CAP_H
  15. #define CAP_H
  16. /* ---- Include Files ---------------------------------------------------- */
  17. /* ---- Public Constants and Types --------------------------------------- */
  18. typedef enum {
  19. CAP_NOT_PRESENT = 0,
  20. CAP_PRESENT
  21. } CAP_RC_T;
  22. typedef enum {
  23. CAP_VPM,
  24. CAP_ETH_PHY,
  25. CAP_ETH_GMII,
  26. CAP_ETH_SGMII,
  27. CAP_USB,
  28. CAP_TSC,
  29. CAP_EHSS,
  30. CAP_SDIO,
  31. CAP_UARTB,
  32. CAP_KEYPAD,
  33. CAP_CLCD,
  34. CAP_GE,
  35. CAP_LEDM,
  36. CAP_BBL,
  37. CAP_VDEC,
  38. CAP_PIF,
  39. CAP_APM,
  40. CAP_SPU,
  41. CAP_PKA,
  42. CAP_RNG,
  43. } CAP_CAPABILITY_T;
  44. typedef enum {
  45. CAP_LCD_WVGA = 0,
  46. CAP_LCD_VGA = 0x1,
  47. CAP_LCD_WQVGA = 0x2,
  48. CAP_LCD_QVGA = 0x3
  49. } CAP_LCD_RES_T;
  50. /* ---- Public Variable Externs ------------------------------------------ */
  51. /* ---- Public Function Prototypes --------------------------------------- */
  52. static inline CAP_RC_T cap_isPresent(CAP_CAPABILITY_T capability, int index);
  53. static inline uint32_t cap_getMaxArmSpeedHz(void);
  54. static inline uint32_t cap_getMaxVpmSpeedHz(void);
  55. static inline CAP_LCD_RES_T cap_getMaxLcdRes(void);
  56. #endif