⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 voyager.h

📁 sm501 芯片的linux驱动
💻 H
字号:
/*
 *  linux/drivers/video/voyager.c -- Silicon Motion Voyager GX frame buffer device
 *
 *      Copyright (C) 2006 Silicon Motion, Inc.
 *      Ge Wang, gewang@siliconmotion.com
 *
 *  This file is subject to the terms and conditions of the GNU General Public
 *  License. See the file COPYING in the main directory of this archive for
 *  more details.
 */

#include <linux/config.h>
#define SMI_LINUX_FB_VERSION	"Version 0.04 05/25/2006"

/*** Customize Platform  ***/
#define isPC 1
#define isPCI 1

#define SCREEN_X_RES	640
#define SCREEN_Y_RES	480
#define SCREEN_BPP	16

#define isACCELENT	0 /* is Accelent platform */
#define FB_PHYSICAL_ADDR 0x08000000 /* Default for Accelent PXA255, other platform need to change */
#define REG_PHYSICAL_ADDR 0x0BE00000 /* Default for Accelent PXA255, other platform need to change */

#if isACCELENT
#undef isPC
#undef isPCI
#define isPC 0
#define isPCI 0
#endif

#define numChipIDs			1
#define NR_PALETTE	256
#define NR_RGB          2


/*
* Private structure
*/
struct smifb_info {
        /*
        * The following is a pointer to be passed into the
        * functions below.  The modules outside the main
        * voyager.c driver have no knowledge as to what
        * is within this structure.
        */
        struct fb_info          fb;
        struct display_switch   *dispsw;
        struct pci_dev	        *dev;
        signed int              currcon;

        struct {
                u8 red, green, blue;
        } palette[NR_RGB];

        u_int                   palette_size;
};

struct par_info {
	/*
	 * Hardware
	 */
	u16	chipID;
	char	*m_pLFB;
	char	*m_pMMIO;

	u_int	width;
	u_int	height;
	u_int	hz;
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -