| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef __SMI_COMMON_H__
- #define __SMI_COMMON_H__
- #include <aee.h>
- #define SMI_CLIENT_DISP 0
- #define SMI_CLIENT_WFD 1
- #define SMI_EVENT_DIRECT_LINK (0x1 << 0)
- #define SMI_EVENT_DECOUPLE (0x1 << 1)
- #define SMI_EVENT_OVL_CASCADE (0x1 << 2)
- #define SMI_EVENT_OVL1_EXTERNAL (0x1 << 3)
- #define SMIMSG(string, args...) pr_warn("[pid=%d]" string, current->tgid, ##args)
- #define SMIMSG2(string, args...) pr_debug(string, ##args)
- #define SMIMSG3(string, args...) SMIMSG(string, ##args)
- #define SMITMP(string, args...) pr_debug("[pid=%d]"string, current->tgid, ##args)
- #define SMIERR(string, args...) pr_debug("error: " string, ##args)
- #define smi_aee_print(string, args...)\
- do {\
- char smi_name[100];\
- snprintf(smi_name, 100, "[" SMI_LOG_TAG "]" string, ##args); \
- } while (0)
- /*
- #define SMIERR(string, args...)\
- do {\
- pr_debug("error: " string, ##args); \
- aee_kernel_warning(SMI_LOG_TAG, "error: "string, ##args); \
- } while (0)
- #define smi_aee_print(string, args...)\
- do {\
- char smi_name[100];\
- snprintf(smi_name, 100, "[" SMI_LOG_TAG "]" string, ##args); \
- aee_kernel_warning(smi_name, "["SMI_LOG_TAG"]error:"string, ##args); \
- } while (0)
- */
- /* Please use the function to instead gLarbBaseAddr to prevent the NULL pointer access error */
- /* when the corrosponding larb is not exist */
- /* extern unsigned int gLarbBaseAddr[SMI_LARB_NR]; */
- /*extern unsigned long get_larb_base_addr(int larb_id);*/
- extern char *smi_port_name[][21];
- /* for slow motion force 30 fps */
- extern int primary_display_force_set_vsync_fps(unsigned int fps);
- extern unsigned int primary_display_get_fps(void);
- extern void smi_dumpDebugMsg(void);
- extern void smi_client_status_change_notify(int module, int mode);
- extern void SMI_DBG_Init(void);
- void register_base_dump(void);
- #endif
|