fbpriv.h revision 040abec2534dadc53ebc8fa378ef03f4feecb7db
/*
* copyed from from linux kernel 2.2.4
* removed internal stuff (#ifdef __KERNEL__)
*/
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#ifndef _LINUX_FB_H
#define _LINUX_FB_H
/* Definitions of frame buffers */
#define FB_MAJOR 29
/* ioctls
0x46 is 'F' */
#define FBIOGET_VSCREENINFO 0x4600
#define FBIOPUT_VSCREENINFO 0x4601
#define FBIOGET_FSCREENINFO 0x4602
#define FBIOGETCMAP 0x4604
#define FBIOPUTCMAP 0x4605
#define FBIOPAN_DISPLAY 0x4606
/* 0x4607-0x460B are defined below */
/* #define FBIOGET_MONITORSPEC 0x460C */
/* #define FBIOPUT_MONITORSPEC 0x460D */
/* #define FBIOSWITCH_MONIBIT 0x460E */
#define FBIOGET_CON2FBMAP 0x460F
#define FBIOPUT_CON2FBMAP 0x4610
#define FBIOBLANK 0x4611
#define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */
#define FB_AUX_TEXT_MDA 0 /* Monochrome text */
#define FB_VISUAL_MONO01 0 /* Monochr. 1=Black 0=White */
#define FB_ACCEL_NONE 0 /* no hardware accelerator */
struct fb_fix_screeninfo {
char *smem_start; /* Start of frame buffer mem */
/* (physical address) */
char *mmio_start; /* Start of Memory Mapped I/O */
/* (physical address) */
};
/* Interpretation of offset for color fields: All offsets are from the right,
* inside a "pixel" value, which is exactly 'bits_per_pixel' wide (means: you
* can use the offset as right argument to <<). A pixel afterwards is a bit
* stream and is written to video memory as that unmodified. This implies
* big-endian byte order if bits_per_pixel is greater than 8.
*/
struct fb_bitfield {
/* right */
};
#define FB_ACTIVATE_NOW 0 /* set values immediately (or vbl)*/
#define FB_ACTIVATE_MASK 15
/* values */
/* vtotal = 144d/288n/576i => PAL */
/* vtotal = 121d/242n/484i => NTSC */
#define FB_VMODE_NONINTERLACED 0 /* non interlaced */
#define FB_VMODE_MASK 255
struct fb_var_screeninfo {
struct fb_bitfield blue;
/* Timing: All values in pixclocks, except pixclock (of course) */
};
struct fb_cmap {
};
struct fb_con2fbmap {
};
struct fb_monspecs {
};
#if 1
#define FBCMD_GET_CURRENTPAR 0xDEAD0005
#define FBCMD_SET_CURRENTPAR 0xDEAD8005
#endif
#if 1 /* Preliminary */
/*
* Hardware Cursor
*/
#define FBIOGET_FCURSORINFO 0x4607
#define FBIOGET_VCURSORINFO 0x4608
#define FBIOPUT_VCURSORINFO 0x4609
#define FBIOGET_CURSORSTATE 0x460A
#define FBIOPUT_CURSORSTATE 0x460B
struct fb_fix_cursorinfo {
};
struct fb_var_cursorinfo {
};
struct fb_cursorstate {
};
#define FB_CURSOR_OFF 0
#define FB_CURSOR_ON 1
#define FB_CURSOR_FLASH 2
#endif /* Preliminary */
#endif /* _LINUX_FB_H */