Subversion Repositories Kolibri OS

Rev

Rev 1964 | Rev 3031 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1964 Rev 1970
Line 149... Line 149...
149
#define FB_ACCEL_S3TWISTER_K        0x8b   /* S3 TwisterK                  */
149
#define FB_ACCEL_S3TWISTER_K        0x8b   /* S3 TwisterK                  */
150
#define FB_ACCEL_SUPERSAVAGE        0x8c    /* S3 Supersavage               */
150
#define FB_ACCEL_SUPERSAVAGE        0x8c    /* S3 Supersavage               */
151
#define FB_ACCEL_PROSAVAGE_DDR      0x8d   /* S3 ProSavage DDR             */
151
#define FB_ACCEL_PROSAVAGE_DDR      0x8d   /* S3 ProSavage DDR             */
152
#define FB_ACCEL_PROSAVAGE_DDRK     0x8e   /* S3 ProSavage DDR-K           */
152
#define FB_ACCEL_PROSAVAGE_DDRK     0x8e   /* S3 ProSavage DDR-K           */
Line -... Line 153...
-
 
153
 
-
 
154
#define FB_ACCEL_PUV3_UNIGFX	0xa0	/* PKUnity-v3 Unigfx		*/
153
 
155
 
154
struct fb_fix_screeninfo {
156
struct fb_fix_screeninfo {
155
	char id[16];			/* identification string eg "TT Builtin" */
157
	char id[16];			/* identification string eg "TT Builtin" */
156
	unsigned long smem_start;	/* Start of frame buffer mem */
158
	unsigned long smem_start;	/* Start of frame buffer mem */
157
					/* (physical address) */
159
					/* (physical address) */
Line 402... Line 404...
402
//#include 
404
//#include 
403
//#include 
405
//#include 
404
#include 
406
#include 
405
#include 
407
#include 
406
//#include 
408
//#include 
-
 
409
#include 
407
//#include 
410
//#include 
Line 408... Line 411...
408
 
411
 
409
struct vm_area_struct;
412
struct vm_area_struct;
410
struct fb_info;
413
struct fb_info;
Line 529... Line 532...
529
#define FB_EVENT_FB_UNREGISTERED        0x06
532
#define FB_EVENT_FB_UNREGISTERED        0x06
530
/*      CONSOLE-SPECIFIC: get console to framebuffer mapping */
533
/*      CONSOLE-SPECIFIC: get console to framebuffer mapping */
531
#define FB_EVENT_GET_CONSOLE_MAP        0x07
534
#define FB_EVENT_GET_CONSOLE_MAP        0x07
532
/*      CONSOLE-SPECIFIC: set console to framebuffer mapping */
535
/*      CONSOLE-SPECIFIC: set console to framebuffer mapping */
533
#define FB_EVENT_SET_CONSOLE_MAP        0x08
536
#define FB_EVENT_SET_CONSOLE_MAP        0x08
534
/*      A hardware display blank change occured */
537
/*      A hardware display blank change occurred */
535
#define FB_EVENT_BLANK                  0x09
538
#define FB_EVENT_BLANK                  0x09
536
/*      Private modelist is to be replaced */
539
/*      Private modelist is to be replaced */
537
#define FB_EVENT_NEW_MODELIST           0x0A
540
#define FB_EVENT_NEW_MODELIST           0x0A
538
/*	The resolution of the passed in fb_info about to change and
541
/*	The resolution of the passed in fb_info about to change and
539
        all vc's should be changed         */
542
        all vc's should be changed         */
540
#define FB_EVENT_MODE_CHANGE_ALL	0x0B
543
#define FB_EVENT_MODE_CHANGE_ALL	0x0B
541
/*	A software display blank change occured */
544
/*	A software display blank change occurred */
542
#define FB_EVENT_CONBLANK               0x0C
545
#define FB_EVENT_CONBLANK               0x0C
543
/*      Get drawing requirements        */
546
/*      Get drawing requirements        */
544
#define FB_EVENT_GET_REQ                0x0D
547
#define FB_EVENT_GET_REQ                0x0D
545
/*      Unbind from the console if possible */
548
/*      Unbind from the console if possible */
546
#define FB_EVENT_FB_UNBIND              0x0E
549
#define FB_EVENT_FB_UNBIND              0x0E
Line 793... Line 796...
793
#define FBINFO_MISC_TILEBLITTING       0x20000 /* use tile blitting */
796
#define FBINFO_MISC_TILEBLITTING       0x20000 /* use tile blitting */
Line 794... Line 797...
794
 
797
 
795
/* A driver may set this flag to indicate that it does want a set_par to be
798
/* A driver may set this flag to indicate that it does want a set_par to be
796
 * called every time when fbcon_switch is executed. The advantage is that with
799
 * called every time when fbcon_switch is executed. The advantage is that with
797
 * this flag set you can really be sure that set_par is always called before
800
 * this flag set you can really be sure that set_par is always called before
798
 * any of the functions dependant on the correct hardware state or altering
801
 * any of the functions dependent on the correct hardware state or altering
799
 * that state, even if you are using some broken X releases. The disadvantage
802
 * that state, even if you are using some broken X releases. The disadvantage
800
 * is that it introduces unwanted delays to every console switch if set_par
803
 * is that it introduces unwanted delays to every console switch if set_par
801
 * is slow. It is a good idea to try this flag in the drivers initialization
804
 * is slow. It is a good idea to try this flag in the drivers initialization
802
 * code whenever there is a bug report related to switching between X and the
805
 * code whenever there is a bug report related to switching between X and the
Line 820... Line 823...
820
/* report to the VT layer that this fb driver can accept forced console
823
/* report to the VT layer that this fb driver can accept forced console
821
   output like oopses */
824
   output like oopses */
822
#define FBINFO_CAN_FORCE_OUTPUT     0x200000
825
#define FBINFO_CAN_FORCE_OUTPUT     0x200000
Line 823... Line 826...
823
 
826
 
-
 
827
struct fb_info {
824
struct fb_info {
828
	atomic_t count;
825
	int node;
829
	int node;
826
	int flags;
830
	int flags;
827
	struct mutex lock;		/* Lock for open/release/ioctl funcs */
831
	struct mutex lock;		/* Lock for open/release/ioctl funcs */
828
	struct mutex mm_lock;		/* Lock for fb_mmap and smem_* fields */
832
	struct mutex mm_lock;		/* Lock for fb_mmap and smem_* fields */
Line 865... Line 869...
865
#define FBINFO_STATE_SUSPENDED	1
869
#define FBINFO_STATE_SUSPENDED	1
866
	u32 state;			/* Hardware state i.e suspend */
870
	u32 state;			/* Hardware state i.e suspend */
867
	void *fbcon_par;                /* fbcon use-only private area */
871
	void *fbcon_par;                /* fbcon use-only private area */
868
	/* From here on everything is device dependent */
872
	/* From here on everything is device dependent */
869
	void *par;
873
	void *par;
870
	/* we need the PCI or similiar aperture base/size not
874
	/* we need the PCI or similar aperture base/size not
871
	   smem_start/size as smem_start may just be an object
875
	   smem_start/size as smem_start may just be an object
872
	   allocated inside the aperture so may not actually overlap */
876
	   allocated inside the aperture so may not actually overlap */
873
	struct apertures_struct {
877
	struct apertures_struct {
874
		unsigned int count;
878
		unsigned int count;
875
		struct aperture {
879
		struct aperture {