📄 fip.h
字号:
/***************************************** * Copyright © 2001-2004 * Sigma Designs, Inc. All Rights Reserved * Proprietary and Confidential ******************************************//* * FIP related definitions, and function prototypes. */#ifndef _FIP_H_#define _FIP_H_#ifdef __KERNEL__#include <linux/kernel.h>#include <linux/module.h>#include <asm/ioctl.h>#endif /* __KERNEL__ *//* Valid symbols */#if defined(CONFIG_EM86XX_FIP_REF1)#define OPTICAL_FIP_ON 0#define ONE_H_FIP_ON 1#define TWO_H_FIP_ON 2#define COAXIAL_FIP_ON 3#define ONE_L_FIP_ON 4#define TWO_L_FIP_ON 5#define D_FIP_ON 6#define DIGITAL_FIP_ON 7#define PROLOGIC_FIP_ON 8#define EX_FIP_ON 9#define MPEG_FIP_ON 10#define DTS_FIP_ON 11#define ES_FIP_ON 12#define HDCD_FIP_ON 13#define L_R_FIP_ON 14#define C_FIP_ON 15#define SBL_SBR_FIP_ON 16#define LS_RS_FIP_ON 17#define S_FIP_ON 18#define LFE_FIP_ON 19#define NIGHTMODE_FIP_ON 20#define TUNED_FIP_ON 21#define STEREO_FIP_ON 22#define MEMORY_FIP_ON 23#elif defined(CONFIG_EM86XX_FIP_REF2)#define DVD_FIP 201#define VCD_FIP 202#define MP3_FIP 203#define CD_FIP 204#define TITLE_FIP 205#define TRACK_CHAPTER_FIP 206#else#error Unsupport front panel.#endif/* Alignment */#define FIP_LEFT 0x0000 /* flags for fip_write_text() */#define FIP_CENTER 0x0001#define FIP_RIGHT 0x0002/* FIP Keys */#if defined(CONFIG_EM86XX_FIP_REF1)#define FIP_KEY_W2 0x00000001#define FIP_KEY_W3 0x00000010#define FIP_KEY_W4 0x00000100#define FIP_KEY_W5 0x00001000#define FIP_KEY_W6 0x00010000#define FIP_KEY_W7 0x00100000#define FIP_KEY_W1 0x01000000#define FIP_LED1_ON 0x01#define FIP_LED2_ON 0x02#define FIP_LED3_ON 0x04#elif defined(CONFIG_EM86XX_FIP_REF2)#define FIP_KEY_EJECT 0x00000001#define FIP_KEY_PLAYPAUSE 0x00000002#define FIP_KEY_STOP 0x00000004#define FIP_KEY_PREV 0x00000008#define FIP_KEY_NEXT 0x00000010#define FIP_KEY_FBWD 0x00000020#define FIP_KEY_FFWD 0x00000040#define FIP_KEY_MENU 0x00000080#else#error Unsupport front panel.#endif#if defined(__KERNEL__) || !defined(BOOTLOADER)/* ioctl commands for user level applications*/#define FIP_IOC_MAGIC 'F'#define FIP_IOCSHOWSYMBOL _IO(FIP_IOC_MAGIC, 0)#define FIP_IOCSHOWHMS _IO(FIP_IOC_MAGIC, 1)#define FIP_IOCDISPCHAR _IO(FIP_IOC_MAGIC, 2)#define FIP_IOCDISPRAW _IO(FIP_IOC_MAGIC, 3)#define FIP_IOCDISPTEXT _IO(FIP_IOC_MAGIC, 4)#define FIP_IOCCLEAR _IO(FIP_IOC_MAGIC, 5)#define FIP_IOCGETFPTYPE _IO(FIP_IOC_MAGIC, 6)#define FIP_IOCSETLED _IO(FIP_IOC_MAGIC, 7)#endif /* __KERNEL__ || !BOOTLOADER */#ifdef __KERNEL__static void fip_write_text(const int position, const char *text, const int flags);static int fip_show_hms(int hour, int minute, int second);static void fip_display_symbol(const int symbol, const int on);static int fip_display_character(const int position, const char character);static void fip_display_raw(const int byte, const int bit, const int on); static int is_fip_busy(void);static void fip_wait_ready(void);static void fip_clear(void);static void fip_setled(int ledbit);#elif defined(BOOTLOADER)void fip_write_text(const int position, const char *text, const int flags);int fip_show_hms(int hour, int minute, int second);void fip_display_symbol(const int symbol, const int on);int fip_display_character(const int position, const char character);void fip_display_raw(const int byte, const int bit, const int on); int is_fip_busy(void);void fip_wait_ready(void);void fip_clear(void);void fip_setall(void);int fip_init(void);int fip_exit(void);unsigned long fip_readkey(void);void fip_setled(int ledbit);#endif /* __KERNEL__ */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -