root/include/asm-sparc/fbio.h

/* [previous][next][first][last][top][bottom][index][help] */
   1 #ifndef __LINUX_FBIO_H
   2 #define __LINUX_FBIO_H
   3 
   4 /* Constants used for fbio SunOS compatibility -miguel */
   5 
   6 /* Frame buffer types */
   7 #define FBTYPE_NOTYPE           -1
   8 #define FBTYPE_SUN1BW           0   /* mono */
   9 #define FBTYPE_SUN1COLOR        1 
  10 #define FBTYPE_SUN2BW           2 
  11 #define FBTYPE_SUN2COLOR        3 
  12 #define FBTYPE_SUN2GP           4 
  13 #define FBTYPE_SUN5COLOR        5 
  14 #define FBTYPE_SUN3COLOR        6 
  15 #define FBTYPE_MEMCOLOR         7 
  16 #define FBTYPE_SUN4COLOR        8 
  17  
  18 #define FBTYPE_NOTSUN1          9 
  19 #define FBTYPE_NOTSUN2          10
  20 #define FBTYPE_NOTSUN3          11
  21  
  22 #define FBTYPE_SUNFAST_COLOR    12  /* cg6 */
  23 #define FBTYPE_SUNROP_COLOR     13
  24 #define FBTYPE_SUNFB_VIDEO      14
  25 #define FBTYPE_SUNGIFB          15
  26 #define FBTYPE_SUNGPLAS         16
  27 #define FBTYPE_SUNGP3           17
  28 #define FBTYPE_SUNGT            18
  29 #define FBTYPE_SUNLEO           19      /* zx Leo card */
  30 #define FBTYPE_MDICOLOR         20      /* cg14 */
  31 #define FBTYPE_LASTPLUSONE      21
  32 
  33 /* fbio ioctls */
  34 /* Returned by FBIOGTYPE */
  35 struct  fbtype {
  36         int     fb_type;        /* fb type, see above */
  37         int     fb_height;      /* pixels */
  38         int     fb_width;       /* pixels */
  39         int     fb_depth;
  40         int     fb_cmsize;      /* color map entries */
  41         int     fb_size;        /* fb size in bytes */
  42 };
  43 #define FBIOGTYPE _IOR('F', 0, struct fbtype)
  44 
  45 /* Used by FBIOPUTCMAP */
  46 struct  fbcmap {
  47         int             index;          /* first element (0 origin) */
  48         int             count;
  49         unsigned char   *red;
  50         unsigned char   *green;
  51         unsigned char   *blue;
  52 };
  53 
  54 #define FBIOPUTCMAP _IOW('F', 3, struct fbcmap)
  55 
  56 /* # of device specific values */
  57 #define FB_ATTR_NDEVSPECIFIC    8
  58 /* # of possible emulations */
  59 #define FB_ATTR_NEMUTYPES       4
  60  
  61 struct fbsattr {
  62         int     flags;
  63         int     emu_type;       /* -1 if none */
  64         int     dev_specific[FB_ATTR_NDEVSPECIFIC];
  65 };
  66  
  67 struct fbgattr {
  68         int     real_type;      /* real frame buffer type */
  69         int     owner;          /* unknown */
  70         struct fbtype fbtype;   /* real frame buffer fbtype */
  71         struct fbsattr sattr;   
  72         int     emu_types[FB_ATTR_NEMUTYPES]; /* supported emulations */
  73 };
  74 #define FBIOSATTR  _IOW('F', 5, struct fbgattr) /* Unsupported: */
  75 #define FBIOGATTR  _IOR('F', 6, struct fbgattr) /* supporoted */
  76 
  77 #define FBIOSVIDEO _IOW('F', 7, int)
  78 #define FBIOGVIDEO _IOR('F', 8, int)
  79 
  80 /* Cursor position */
  81 struct fbcurpos {
  82 #ifdef __KERNEL__
  83         short fbx, fby;
  84 #else
  85         short x, y;
  86 #endif
  87 };
  88 
  89 /* Cursor operations */
  90 #define FB_CUR_SETCUR   0x01    /* Enable/disable cursor display */
  91 #define FB_CUR_SETPOS   0x02    /* set cursor position */
  92 #define FB_CUR_SETHOT   0x04    /* set cursor hotspot */
  93 #define FB_CUR_SETCMAP  0x08    /* set color map for the cursor */
  94 #define FB_CUR_SETSHAPE 0x10    /* set shape */
  95 #define FB_CUR_SETALL   0x1F    /* all of the above */
  96 
  97 struct fbcursor {
  98         short set;              /* what to set, choose from the list above */
  99         short enable;           /* cursor on/off */
 100         struct fbcurpos pos;    /* cursor position */
 101         struct fbcurpos hot;    /* cursor hot spot */
 102         struct fbcmap cmap;     /* color map info */
 103         struct fbcurpos size;   /* cursor bit map size */
 104         char *image;            /* cursor image bits */
 105         char *mask;             /* cursor mask bits */
 106 };
 107 
 108 /* set/get cursor attributes/shape */
 109 #define FBIOSCURSOR     _IOW('F', 24, struct fbcursor)
 110 #define FBIOGCURSOR     _IOWR('F', 25, struct fbcursor)
 111  
 112 /* set/get cursor position */
 113 #define FBIOSCURPOS     _IOW('F', 26, struct fbcurpos)
 114 #define FBIOGCURPOS     _IOW('F', 27, struct fbcurpos)
 115  
 116 /* get max cursor size */
 117 #define FBIOGCURMAX     _IOR('F', 28, struct fbcurpos)
 118  
 119 #ifdef __KERNEL__
 120 /* Addresses on the fd of a cgsix that are mappable */
 121 #define CG6_FBC    0x70000000
 122 #define CG6_TEC    0x70001000
 123 #define CG6_BTREGS 0x70002000
 124 #define CG6_FHC    0x70004000
 125 #define CG6_THC    0x70005000
 126 #define CG6_ROM    0x70006000
 127 #define CG6_RAM    0x70016000
 128 #define CG6_DHC    0x80000000
 129 
 130 #define CG3_MMAP_OFFSET 0x4000000
 131 #endif /* KERNEL */
 132 
 133 #endif /* __LINUX_FBIO_H */

/* [previous][next][first][last][top][bottom][index][help] */