Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
sisfb.h File Reference
#include <linux/types.h>
#include <asm/ioctl.h>

Go to the source code of this file.

Data Structures

struct  sisfb_info
 
struct  sisfb_cmd
 
struct  sis_memreq
 

Macros

#define CRT2_DEFAULT   0x00000001
 
#define CRT2_LCD   0x00000002
 
#define CRT2_TV   0x00000004
 
#define CRT2_VGA   0x00000008
 
#define TV_NTSC   0x00000010
 
#define TV_PAL   0x00000020
 
#define TV_HIVISION   0x00000040
 
#define TV_YPBPR   0x00000080
 
#define TV_AVIDEO   0x00000100
 
#define TV_SVIDEO   0x00000200
 
#define TV_SCART   0x00000400
 
#define TV_PALM   0x00001000
 
#define TV_PALN   0x00002000
 
#define TV_NTSCJ   0x00001000
 
#define TV_CHSCART   0x00008000
 
#define TV_CHYPBPR525I   0x00010000
 
#define CRT1_VGA   0x00000000
 
#define CRT1_LCDA   0x00020000
 
#define VGA2_CONNECTED   0x00040000
 
#define VB_DISPTYPE_CRT1   0x00080000 /* CRT1 connected and used */
 
#define VB_SINGLE_MODE   0x20000000 /* CRT1 or CRT2; determined by DISPTYPE_CRTx */
 
#define VB_MIRROR_MODE   0x40000000 /* CRT1 + CRT2 identical (mirror mode) */
 
#define VB_DUALVIEW_MODE   0x80000000 /* CRT1 + CRT2 independent (dual head mode) */
 
#define CRT2_ENABLE   (CRT2_LCD | CRT2_TV | CRT2_VGA)
 
#define TV_STANDARD   (TV_NTSC | TV_PAL | TV_PALM | TV_PALN | TV_NTSCJ)
 
#define TV_INTERFACE   (TV_AVIDEO|TV_SVIDEO|TV_SCART|TV_HIVISION|TV_YPBPR|TV_CHSCART|TV_CHYPBPR525I)
 
#define TV_YPBPR525I   TV_NTSC
 
#define TV_YPBPR525P   TV_PAL
 
#define TV_YPBPR750P   TV_PALM
 
#define TV_YPBPR1080I   TV_PALN
 
#define TV_YPBPRALL   (TV_YPBPR525I | TV_YPBPR525P | TV_YPBPR750P | TV_YPBPR1080I)
 
#define VB_DISPTYPE_DISP2   CRT2_ENABLE
 
#define VB_DISPTYPE_CRT2   CRT2_ENABLE
 
#define VB_DISPTYPE_DISP1   VB_DISPTYPE_CRT1
 
#define VB_DISPMODE_SINGLE   VB_SINGLE_MODE
 
#define VB_DISPMODE_MIRROR   VB_MIRROR_MODE
 
#define VB_DISPMODE_DUAL   VB_DUALVIEW_MODE
 
#define VB_DISPLAY_MODE   (SINGLE_MODE | MIRROR_MODE | DUALVIEW_MODE)
 
#define SISFB_ID   0x53495346 /* Identify myself with 'SISF' */
 
#define SISFB_CMD_GETVBFLAGS   0x55AA0001 /* no arg; result[1] = vbflags */
 
#define SISFB_CMD_SWITCHCRT1   0x55AA0010 /* arg[0]: 99 = query, 0 = off, 1 = on */
 
#define SISFB_CMD_ERR_OK   0x80000000 /* command succeeded */
 
#define SISFB_CMD_ERR_LOCKED   0x80000001 /* sisfb is locked */
 
#define SISFB_CMD_ERR_EARLY   0x80000002 /* request before sisfb took over gfx system */
 
#define SISFB_CMD_ERR_NOVB   0x80000003 /* No video bridge */
 
#define SISFB_CMD_ERR_NOCRT2   0x80000004 /* can't change CRT1 status, CRT2 disabled */
 
#define SISFB_CMD_ERR_UNKNOWN   0x8000ffff /* Unknown command */
 
#define SISFB_CMD_ERR_OTHER   0x80010000 /* Other error */
 
#define SISFB_GET_INFO_SIZE   _IOR(0xF3,0x00,__u32)
 
#define SISFB_GET_INFO   _IOR(0xF3,0x01,struct sisfb_info)
 
#define SISFB_GET_VBRSTATUS   _IOR(0xF3,0x02,__u32)
 
#define SISFB_GET_AUTOMAXIMIZE   _IOR(0xF3,0x03,__u32)
 
#define SISFB_SET_AUTOMAXIMIZE   _IOW(0xF3,0x03,__u32)
 
#define SISFB_GET_TVPOSOFFSET   _IOR(0xF3,0x04,__u32)
 
#define SISFB_SET_TVPOSOFFSET   _IOW(0xF3,0x04,__u32)
 
#define SISFB_COMMAND   _IOWR(0xF3,0x05,struct sisfb_cmd)
 
#define SISFB_SET_LOCK   _IOW(0xF3,0x06,__u32)
 
#define SISFB_GET_INFO_OLD   _IOR('n',0xF8,__u32)
 
#define SISFB_GET_VBRSTATUS_OLD   _IOR('n',0xF9,__u32)
 
#define SISFB_GET_AUTOMAXIMIZE_OLD   _IOR('n',0xFA,__u32)
 
#define SISFB_SET_AUTOMAXIMIZE_OLD   _IOW('n',0xFA,__u32)
 

Macro Definition Documentation

#define CRT1_LCDA   0x00020000

Definition at line 49 of file sisfb.h.

#define CRT1_VGA   0x00000000

Definition at line 48 of file sisfb.h.

#define CRT2_DEFAULT   0x00000001

Definition at line 32 of file sisfb.h.

#define CRT2_ENABLE   (CRT2_LCD | CRT2_TV | CRT2_VGA)

Definition at line 57 of file sisfb.h.

#define CRT2_LCD   0x00000002

Definition at line 33 of file sisfb.h.

#define CRT2_TV   0x00000004

Definition at line 34 of file sisfb.h.

#define CRT2_VGA   0x00000008

Definition at line 35 of file sisfb.h.

#define SISFB_CMD_ERR_EARLY   0x80000002 /* request before sisfb took over gfx system */

Definition at line 140 of file sisfb.h.

#define SISFB_CMD_ERR_LOCKED   0x80000001 /* sisfb is locked */

Definition at line 139 of file sisfb.h.

#define SISFB_CMD_ERR_NOCRT2   0x80000004 /* can't change CRT1 status, CRT2 disabled */

Definition at line 142 of file sisfb.h.

#define SISFB_CMD_ERR_NOVB   0x80000003 /* No video bridge */

Definition at line 141 of file sisfb.h.

#define SISFB_CMD_ERR_OK   0x80000000 /* command succeeded */

Definition at line 138 of file sisfb.h.

#define SISFB_CMD_ERR_OTHER   0x80010000 /* Other error */

Definition at line 145 of file sisfb.h.

#define SISFB_CMD_ERR_UNKNOWN   0x8000ffff /* Unknown command */

Definition at line 144 of file sisfb.h.

#define SISFB_CMD_GETVBFLAGS   0x55AA0001 /* no arg; result[1] = vbflags */

Definition at line 134 of file sisfb.h.

#define SISFB_CMD_SWITCHCRT1   0x55AA0010 /* arg[0]: 99 = query, 0 = off, 1 = on */

Definition at line 135 of file sisfb.h.

#define SISFB_COMMAND   _IOWR(0xF3,0x05,struct sisfb_cmd)

Definition at line 173 of file sisfb.h.

#define SISFB_GET_AUTOMAXIMIZE   _IOR(0xF3,0x03,__u32)

Definition at line 165 of file sisfb.h.

#define SISFB_GET_AUTOMAXIMIZE_OLD   _IOR('n',0xFA,__u32)

Definition at line 191 of file sisfb.h.

#define SISFB_GET_INFO   _IOR(0xF3,0x01,struct sisfb_info)

Definition at line 159 of file sisfb.h.

#define SISFB_GET_INFO_OLD   _IOR('n',0xF8,__u32)

Definition at line 187 of file sisfb.h.

#define SISFB_GET_INFO_SIZE   _IOR(0xF3,0x00,__u32)

Definition at line 158 of file sisfb.h.

#define SISFB_GET_TVPOSOFFSET   _IOR(0xF3,0x04,__u32)

Definition at line 169 of file sisfb.h.

#define SISFB_GET_VBRSTATUS   _IOR(0xF3,0x02,__u32)

Definition at line 162 of file sisfb.h.

#define SISFB_GET_VBRSTATUS_OLD   _IOR('n',0xF9,__u32)

Definition at line 189 of file sisfb.h.

#define SISFB_ID   0x53495346 /* Identify myself with 'SISF' */

Definition at line 80 of file sisfb.h.

#define SISFB_SET_AUTOMAXIMIZE   _IOW(0xF3,0x03,__u32)

Definition at line 166 of file sisfb.h.

#define SISFB_SET_AUTOMAXIMIZE_OLD   _IOW('n',0xFA,__u32)

Definition at line 192 of file sisfb.h.

#define SISFB_SET_LOCK   _IOW(0xF3,0x06,__u32)

Definition at line 179 of file sisfb.h.

#define SISFB_SET_TVPOSOFFSET   _IOW(0xF3,0x04,__u32)

Definition at line 170 of file sisfb.h.

#define TV_AVIDEO   0x00000100

Definition at line 40 of file sisfb.h.

#define TV_CHSCART   0x00008000

Definition at line 46 of file sisfb.h.

#define TV_CHYPBPR525I   0x00010000

Definition at line 47 of file sisfb.h.

#define TV_HIVISION   0x00000040

Definition at line 38 of file sisfb.h.

Definition at line 59 of file sisfb.h.

#define TV_NTSC   0x00000010

Definition at line 36 of file sisfb.h.

#define TV_NTSCJ   0x00001000

Definition at line 45 of file sisfb.h.

#define TV_PAL   0x00000020

Definition at line 37 of file sisfb.h.

#define TV_PALM   0x00001000

Definition at line 43 of file sisfb.h.

#define TV_PALN   0x00002000

Definition at line 44 of file sisfb.h.

#define TV_SCART   0x00000400

Definition at line 42 of file sisfb.h.

#define TV_STANDARD   (TV_NTSC | TV_PAL | TV_PALM | TV_PALN | TV_NTSCJ)

Definition at line 58 of file sisfb.h.

#define TV_SVIDEO   0x00000200

Definition at line 41 of file sisfb.h.

#define TV_YPBPR   0x00000080

Definition at line 39 of file sisfb.h.

#define TV_YPBPR1080I   TV_PALN

Definition at line 65 of file sisfb.h.

#define TV_YPBPR525I   TV_NTSC

Definition at line 62 of file sisfb.h.

#define TV_YPBPR525P   TV_PAL

Definition at line 63 of file sisfb.h.

#define TV_YPBPR750P   TV_PALM

Definition at line 64 of file sisfb.h.

#define TV_YPBPRALL   (TV_YPBPR525I | TV_YPBPR525P | TV_YPBPR750P | TV_YPBPR1080I)

Definition at line 66 of file sisfb.h.

#define VB_DISPLAY_MODE   (SINGLE_MODE | MIRROR_MODE | DUALVIEW_MODE)

Definition at line 74 of file sisfb.h.

#define VB_DISPMODE_DUAL   VB_DUALVIEW_MODE

Definition at line 73 of file sisfb.h.

#define VB_DISPMODE_MIRROR   VB_MIRROR_MODE

Definition at line 72 of file sisfb.h.

#define VB_DISPMODE_SINGLE   VB_SINGLE_MODE

Definition at line 71 of file sisfb.h.

#define VB_DISPTYPE_CRT1   0x00080000 /* CRT1 connected and used */

Definition at line 51 of file sisfb.h.

#define VB_DISPTYPE_CRT2   CRT2_ENABLE

Definition at line 69 of file sisfb.h.

#define VB_DISPTYPE_DISP1   VB_DISPTYPE_CRT1

Definition at line 70 of file sisfb.h.

#define VB_DISPTYPE_DISP2   CRT2_ENABLE

Definition at line 68 of file sisfb.h.

#define VB_DUALVIEW_MODE   0x80000000 /* CRT1 + CRT2 independent (dual head mode) */

Definition at line 54 of file sisfb.h.

#define VB_MIRROR_MODE   0x40000000 /* CRT1 + CRT2 identical (mirror mode) */

Definition at line 53 of file sisfb.h.

#define VB_SINGLE_MODE   0x20000000 /* CRT1 or CRT2; determined by DISPTYPE_CRTx */

Definition at line 52 of file sisfb.h.

#define VGA2_CONNECTED   0x00040000

Definition at line 50 of file sisfb.h.