| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 | 
							- #ifndef __LINUX_FBIO_H
 
- #define __LINUX_FBIO_H
 
- #include <linux/compiler.h>
 
- #include <linux/types.h>
 
- /* Constants used for fbio SunOS compatibility */
 
- /* (C) 1996 Miguel de Icaza */
 
- /* Frame buffer types */
 
- #define FBTYPE_NOTYPE           -1
 
- #define FBTYPE_SUN1BW           0   /* mono */
 
- #define FBTYPE_SUN1COLOR        1 
 
- #define FBTYPE_SUN2BW           2 
 
- #define FBTYPE_SUN2COLOR        3 
 
- #define FBTYPE_SUN2GP           4 
 
- #define FBTYPE_SUN5COLOR        5 
 
- #define FBTYPE_SUN3COLOR        6 
 
- #define FBTYPE_MEMCOLOR         7 
 
- #define FBTYPE_SUN4COLOR        8 
 
-  
 
- #define FBTYPE_NOTSUN1          9 
 
- #define FBTYPE_NOTSUN2          10
 
- #define FBTYPE_NOTSUN3          11
 
-  
 
- #define FBTYPE_SUNFAST_COLOR    12  /* cg6 */
 
- #define FBTYPE_SUNROP_COLOR     13
 
- #define FBTYPE_SUNFB_VIDEO      14
 
- #define FBTYPE_SUNGIFB          15
 
- #define FBTYPE_SUNGPLAS         16
 
- #define FBTYPE_SUNGP3           17
 
- #define FBTYPE_SUNGT            18
 
- #define FBTYPE_SUNLEO           19      /* zx Leo card */
 
- #define FBTYPE_MDICOLOR         20      /* cg14 */
 
- #define FBTYPE_TCXCOLOR		21	/* SUNW,tcx card */
 
- #define FBTYPE_LASTPLUSONE      21	/* This is not last + 1 in fact... */
 
- /* Does not seem to be listed in the Sun file either */
 
- #define FBTYPE_CREATOR          22
 
- #define FBTYPE_PCI_IGA1682	23
 
- #define FBTYPE_P9100COLOR	24
 
- #define FBTYPE_PCI_GENERIC	1000
 
- #define FBTYPE_PCI_MACH64	1001
 
- /* fbio ioctls */
 
- /* Returned by FBIOGTYPE */
 
- struct  fbtype {
 
-         int     fb_type;        /* fb type, see above */
 
-         int     fb_height;      /* pixels */
 
-         int     fb_width;       /* pixels */
 
-         int     fb_depth;
 
-         int     fb_cmsize;      /* color map entries */
 
-         int     fb_size;        /* fb size in bytes */
 
- };
 
- #define FBIOGTYPE _IOR('F', 0, struct fbtype)
 
- struct  fbcmap {
 
-         int             index;          /* first element (0 origin) */
 
-         int             count;
 
-         unsigned char   __user *red;
 
-         unsigned char   __user *green;
 
-         unsigned char   __user *blue;
 
- };
 
- #ifdef __KERNEL__
 
- #define FBIOPUTCMAP_SPARC _IOW('F', 3, struct fbcmap)
 
- #define FBIOGETCMAP_SPARC _IOW('F', 4, struct fbcmap)
 
- #else
 
- #define FBIOPUTCMAP _IOW('F', 3, struct fbcmap)
 
- #define FBIOGETCMAP _IOW('F', 4, struct fbcmap)
 
- #endif
 
- /* # of device specific values */
 
- #define FB_ATTR_NDEVSPECIFIC    8
 
- /* # of possible emulations */
 
- #define FB_ATTR_NEMUTYPES       4
 
-  
 
- struct fbsattr {
 
-         int     flags;
 
-         int     emu_type;	/* -1 if none */
 
-         int     dev_specific[FB_ATTR_NDEVSPECIFIC];
 
- };
 
-  
 
- struct fbgattr {
 
-         int     real_type;	/* real frame buffer type */
 
-         int     owner;		/* unknown */
 
-         struct fbtype fbtype;	/* real frame buffer fbtype */
 
-         struct fbsattr sattr;   
 
-         int     emu_types[FB_ATTR_NEMUTYPES]; /* supported emulations */
 
- };
 
- #define FBIOSATTR  _IOW('F', 5, struct fbgattr) /* Unsupported: */
 
- #define FBIOGATTR  _IOR('F', 6, struct fbgattr)	/* supported */
 
- #define FBIOSVIDEO _IOW('F', 7, int)
 
- #define FBIOGVIDEO _IOR('F', 8, int)
 
- struct fbcursor {
 
-         short set;              /* what to set, choose from the list above */
 
-         short enable;           /* cursor on/off */
 
-         struct fbcurpos pos;    /* cursor position */
 
-         struct fbcurpos hot;    /* cursor hot spot */
 
-         struct fbcmap cmap;     /* color map info */
 
-         struct fbcurpos size;   /* cursor bit map size */
 
-         char __user *image;     /* cursor image bits */
 
-         char __user *mask;      /* cursor mask bits */
 
- };
 
- /* set/get cursor attributes/shape */
 
- #define FBIOSCURSOR     _IOW('F', 24, struct fbcursor)
 
- #define FBIOGCURSOR     _IOWR('F', 25, struct fbcursor)
 
-  
 
- /* set/get cursor position */
 
- #define FBIOSCURPOS     _IOW('F', 26, struct fbcurpos)
 
- #define FBIOGCURPOS     _IOW('F', 27, struct fbcurpos)
 
-  
 
- /* get max cursor size */
 
- #define FBIOGCURMAX     _IOR('F', 28, struct fbcurpos)
 
- /* wid manipulation */
 
- struct fb_wid_alloc {
 
- #define FB_WID_SHARED_8		0
 
- #define FB_WID_SHARED_24	1
 
- #define FB_WID_DBL_8		2
 
- #define FB_WID_DBL_24		3
 
- 	__u32	wa_type;
 
- 	__s32	wa_index;	/* Set on return */
 
- 	__u32	wa_count;	
 
- };
 
- struct fb_wid_item {
 
- 	__u32	wi_type;
 
- 	__s32	wi_index;
 
- 	__u32	wi_attrs;
 
- 	__u32	wi_values[32];
 
- };
 
- struct fb_wid_list {
 
- 	__u32	wl_flags;
 
- 	__u32	wl_count;
 
- 	struct fb_wid_item	*wl_list;
 
- };
 
- #define FBIO_WID_ALLOC	_IOWR('F', 30, struct fb_wid_alloc)
 
- #define FBIO_WID_FREE	_IOW('F', 31, struct fb_wid_alloc)
 
- #define FBIO_WID_PUT	_IOW('F', 32, struct fb_wid_list)
 
- #define FBIO_WID_GET	_IOWR('F', 33, struct fb_wid_list)
 
- /* Creator ioctls */
 
- #define FFB_IOCTL	('F'<<8)
 
- #define FFB_SYS_INFO		(FFB_IOCTL|80)
 
- #define FFB_CLUTREAD		(FFB_IOCTL|81)
 
- #define FFB_CLUTPOST		(FFB_IOCTL|82)
 
- #define FFB_SETDIAGMODE		(FFB_IOCTL|83)
 
- #define FFB_GETMONITORID	(FFB_IOCTL|84)
 
- #define FFB_GETVIDEOMODE	(FFB_IOCTL|85)
 
- #define FFB_SETVIDEOMODE	(FFB_IOCTL|86)
 
- #define FFB_SETSERVER		(FFB_IOCTL|87)
 
- #define FFB_SETOVCTL		(FFB_IOCTL|88)
 
- #define FFB_GETOVCTL		(FFB_IOCTL|89)
 
- #define FFB_GETSAXNUM		(FFB_IOCTL|90)
 
- #define FFB_FBDEBUG		(FFB_IOCTL|91)
 
- /* Cg14 ioctls */
 
- #define MDI_IOCTL          ('M'<<8)
 
- #define MDI_RESET          (MDI_IOCTL|1)
 
- #define MDI_GET_CFGINFO    (MDI_IOCTL|2)
 
- #define MDI_SET_PIXELMODE  (MDI_IOCTL|3)
 
- #    define MDI_32_PIX     32
 
- #    define MDI_16_PIX     16
 
- #    define MDI_8_PIX      8
 
- struct mdi_cfginfo {
 
- 	int     mdi_ncluts;     /* Number of implemented CLUTs in this MDI */
 
-         int     mdi_type;       /* FBTYPE name */
 
-         int     mdi_height;     /* height */
 
-         int     mdi_width;      /* width */
 
-         int     mdi_size;       /* available ram */
 
-         int     mdi_mode;       /* 8bpp, 16bpp or 32bpp */
 
-         int     mdi_pixfreq;    /* pixel clock (from PROM) */
 
- };
 
- /* SparcLinux specific ioctl for the MDI, should be replaced for
 
-  * the SET_XLUT/SET_CLUTn ioctls instead
 
-  */
 
- #define MDI_CLEAR_XLUT       (MDI_IOCTL|9)
 
- /* leo & ffb ioctls */
 
- struct fb_clut_alloc {
 
- 	__u32	clutid;	/* Set on return */
 
-  	__u32	flag;
 
-  	__u32	index;
 
- };
 
- struct fb_clut {
 
- #define FB_CLUT_WAIT	0x00000001	/* Not yet implemented */
 
-  	__u32	flag;
 
-  	__u32	clutid;
 
-  	__u32	offset;
 
-  	__u32	count;
 
 
  |