Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a49ac33b
Commit
a49ac33b
authored
May 28, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More changes for new fbdev subsytem.
parent
4038102c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1982 additions
and
1902 deletions
+1982
-1902
drivers/video/Makefile
drivers/video/Makefile
+4
-4
drivers/video/fbcon-accel.c
drivers/video/fbcon-accel.c
+1
-1
drivers/video/pm2fb.c
drivers/video/pm2fb.c
+0
-3
drivers/video/pm3fb.h
drivers/video/pm3fb.h
+0
-2
drivers/video/tdfxfb.c
drivers/video/tdfxfb.c
+1780
-1891
include/linux/fb.h
include/linux/fb.h
+5
-1
include/video/tdfx.h
include/video/tdfx.h
+192
-0
No files found.
drivers/video/Makefile
View file @
a49ac33b
...
@@ -57,13 +57,13 @@ obj-$(CONFIG_FB_PLATINUM) += platinumfb.o
...
@@ -57,13 +57,13 @@ obj-$(CONFIG_FB_PLATINUM) += platinumfb.o
obj-$(CONFIG_FB_VALKYRIE)
+=
valkyriefb.o
obj-$(CONFIG_FB_VALKYRIE)
+=
valkyriefb.o
obj-$(CONFIG_FB_CT65550)
+=
chipsfb.o
obj-$(CONFIG_FB_CT65550)
+=
chipsfb.o
obj-$(CONFIG_FB_ANAKIN)
+=
anakinfb.o
obj-$(CONFIG_FB_ANAKIN)
+=
anakinfb.o
obj-$(CONFIG_FB_CLPS711X)
+=
clps711xfb.o
obj-$(CONFIG_FB_CLPS711X)
+=
clps711xfb.o
cfbfillrect.o cfbcopyarea.o cfbimgblt.o
obj-$(CONFIG_FB_CYBER)
+=
cyberfb.o
obj-$(CONFIG_FB_CYBER)
+=
cyberfb.o
obj-$(CONFIG_FB_CYBER2000)
+=
cyber2000fb.o
obj-$(CONFIG_FB_CYBER2000)
+=
cyber2000fb.o
obj-$(CONFIG_FB_SGIVW)
+=
sgivwfb.o
obj-$(CONFIG_FB_SGIVW)
+=
sgivwfb.o
obj-$(CONFIG_FB_3DFX)
+=
tdfxfb.o
obj-$(CONFIG_FB_3DFX)
+=
tdfxfb.o
obj-$(CONFIG_FB_MAC)
+=
macfb.o macmodes.o
obj-$(CONFIG_FB_MAC)
+=
macfb.o macmodes.o
obj-$(CONFIG_FB_HP300)
+=
hpfb.o
obj-$(CONFIG_FB_HP300)
+=
hpfb.o
cfbfillrect.o cfbimgblt.o
obj-$(CONFIG_FB_OF)
+=
offb.o
obj-$(CONFIG_FB_OF)
+=
offb.o
obj-$(CONFIG_FB_IMSTT)
+=
imsttfb.o
obj-$(CONFIG_FB_IMSTT)
+=
imsttfb.o
obj-$(CONFIG_FB_RETINAZ3)
+=
retz3fb.o
obj-$(CONFIG_FB_RETINAZ3)
+=
retz3fb.o
...
@@ -74,7 +74,7 @@ obj-$(CONFIG_FB_TGA) += tgafb.o
...
@@ -74,7 +74,7 @@ obj-$(CONFIG_FB_TGA) += tgafb.o
obj-$(CONFIG_FB_VESA)
+=
vesafb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
obj-$(CONFIG_FB_VESA)
+=
vesafb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
obj-$(CONFIG_FB_VGA16)
+=
vga16fb.o fbcon-vga-planes.o
obj-$(CONFIG_FB_VGA16)
+=
vga16fb.o fbcon-vga-planes.o
obj-$(CONFIG_FB_VIRGE)
+=
virgefb.o
obj-$(CONFIG_FB_VIRGE)
+=
virgefb.o
obj-$(CONFIG_FB_G364)
+=
g364fb.o
obj-$(CONFIG_FB_G364)
+=
g364fb.o
cfbfillrect.o cfbcopyarea.o cfbimgblt.o
obj-$(CONFIG_FB_FM2)
+=
fm2fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
obj-$(CONFIG_FB_FM2)
+=
fm2fb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
obj-$(CONFIG_FB_CREATOR)
+=
creatorfb.o sbusfb.o
obj-$(CONFIG_FB_CREATOR)
+=
creatorfb.o sbusfb.o
obj-$(CONFIG_FB_CGSIX)
+=
cgsixfb.o sbusfb.o
obj-$(CONFIG_FB_CGSIX)
+=
cgsixfb.o sbusfb.o
...
@@ -99,7 +99,7 @@ obj-$(CONFIG_FB_SUN3) += sun3fb.o
...
@@ -99,7 +99,7 @@ obj-$(CONFIG_FB_SUN3) += sun3fb.o
obj-$(CONFIG_FB_BWTWO)
+=
bwtwofb.o
obj-$(CONFIG_FB_BWTWO)
+=
bwtwofb.o
obj-$(CONFIG_FB_HGA)
+=
hgafb.o
obj-$(CONFIG_FB_HGA)
+=
hgafb.o
obj-$(CONFIG_FB_SA1100)
+=
sa1100fb.o
obj-$(CONFIG_FB_SA1100)
+=
sa1100fb.o
obj-$(CONFIG_FB_VIRTUAL)
+=
vfb.o
obj-$(CONFIG_FB_VIRTUAL)
+=
vfb.o
cfbfillrect.o cfbcopyarea.o cfbimgblt.o
obj-$(CONFIG_FB_HIT)
+=
hitfb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
obj-$(CONFIG_FB_HIT)
+=
hitfb.o cfbfillrect.o cfbcopyarea.o cfbimgblt.o
obj-$(CONFIG_FB_E1355)
+=
epson1355fb.o
obj-$(CONFIG_FB_E1355)
+=
epson1355fb.o
obj-$(CONFIG_FB_PVR2)
+=
pvr2fb.o
obj-$(CONFIG_FB_PVR2)
+=
pvr2fb.o
...
...
drivers/video/fbcon-accel.c
View file @
a49ac33b
...
@@ -158,7 +158,7 @@ struct display_switch fbcon_accel = {
...
@@ -158,7 +158,7 @@ struct display_switch fbcon_accel = {
putcs:
fbcon_accel_putcs
,
putcs:
fbcon_accel_putcs
,
revc:
fbcon_accel_revc
,
revc:
fbcon_accel_revc
,
clear_margins:
fbcon_accel_clear_margins
,
clear_margins:
fbcon_accel_clear_margins
,
fontwidthmask:
FONTWIDTHRANGE
(
1
,
32
)
fontwidthmask:
FONTWIDTHRANGE
(
1
,
16
)
};
};
#ifdef MODULE
#ifdef MODULE
...
...
drivers/video/pm2fb.c
View file @
a49ac33b
...
@@ -67,9 +67,6 @@
...
@@ -67,9 +67,6 @@
#define DPRINTK(a,b...)
#define DPRINTK(a,b...)
#endif
#endif
#define PICOS2KHZ(a) (1000000000UL/(a))
#define KHZ2PICOS(a) (1000000000UL/(a))
/*
/*
* The _DEFINITIVE_ memory mapping/unmapping functions.
* The _DEFINITIVE_ memory mapping/unmapping functions.
* This is due to the fact that they're changing soooo often...
* This is due to the fact that they're changing soooo often...
...
...
drivers/video/pm3fb.h
View file @
a49ac33b
...
@@ -1154,8 +1154,6 @@
...
@@ -1154,8 +1154,6 @@
/* permedia3 -specific definitions */
/* permedia3 -specific definitions */
#define PM3_SCALE_TO_CLOCK(pr, fe, po) ((2 * PM3_REF_CLOCK * fe) / (pr * (1 << (po))))
#define PM3_SCALE_TO_CLOCK(pr, fe, po) ((2 * PM3_REF_CLOCK * fe) / (pr * (1 << (po))))
#define PICOS2KHZ(a) (1000000000UL/(a))
#define KHZ2PICOS(a) (1000000000UL/(a))
/* in case it's not in linux/pci.h */
/* in case it's not in linux/pci.h */
#ifndef PCI_DEVICE_ID_3DLABS_PERMEDIA3
#ifndef PCI_DEVICE_ID_3DLABS_PERMEDIA3
...
...
drivers/video/tdfxfb.c
View file @
a49ac33b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
include/linux/fb.h
View file @
a49ac33b
...
@@ -93,7 +93,8 @@
...
@@ -93,7 +93,8 @@
#define FB_ACCEL_IGS_CYBER2010 34
/* CyberPro 2010 */
#define FB_ACCEL_IGS_CYBER2010 34
/* CyberPro 2010 */
#define FB_ACCEL_IGS_CYBER5000 35
/* CyberPro 5000 */
#define FB_ACCEL_IGS_CYBER5000 35
/* CyberPro 5000 */
#define FB_ACCEL_SIS_GLAMOUR 36
/* SiS 300/630/540 */
#define FB_ACCEL_SIS_GLAMOUR 36
/* SiS 300/630/540 */
#define FB_ACCEL_3DLABS_PERMEDIA3 37
/* 3Dlabs Permedia 3 */
#define FB_ACCEL_ATI_RADEON 38
/* ATI Radeon family */
#define FB_ACCEL_NEOMAGIC_NM2070 90
/* NeoMagic NM2070 */
#define FB_ACCEL_NEOMAGIC_NM2070 90
/* NeoMagic NM2070 */
#define FB_ACCEL_NEOMAGIC_NM2090 91
/* NeoMagic NM2090 */
#define FB_ACCEL_NEOMAGIC_NM2090 91
/* NeoMagic NM2090 */
...
@@ -169,6 +170,9 @@ struct fb_bitfield {
...
@@ -169,6 +170,9 @@ struct fb_bitfield {
#define FB_VMODE_SMOOTH_XPAN 512
/* smooth xpan possible (internally used) */
#define FB_VMODE_SMOOTH_XPAN 512
/* smooth xpan possible (internally used) */
#define FB_VMODE_CONUPDATE 512
/* don't update x/yoffset */
#define FB_VMODE_CONUPDATE 512
/* don't update x/yoffset */
#define PICOS2KHZ(a) (1000000000UL/(a))
#define KHZ2PICOS(a) (1000000000UL/(a))
struct
fb_var_screeninfo
{
struct
fb_var_screeninfo
{
__u32
xres
;
/* visible resolution */
__u32
xres
;
/* visible resolution */
__u32
yres
;
__u32
yres
;
...
...
include/video/tdfx.h
0 → 100644
View file @
a49ac33b
#ifndef _TDFX_H
#define _TDFX_H
/* membase0 register offsets */
#define STATUS 0x00
#define PCIINIT0 0x04
#define SIPMONITOR 0x08
#define LFBMEMORYCONFIG 0x0c
#define MISCINIT0 0x10
#define MISCINIT1 0x14
#define DRAMINIT0 0x18
#define DRAMINIT1 0x1c
#define AGPINIT 0x20
#define TMUGBEINIT 0x24
#define VGAINIT0 0x28
#define VGAINIT1 0x2c
#define DRAMCOMMAND 0x30
#define DRAMDATA 0x34
/* reserved 0x38 */
/* reserved 0x3c */
#define PLLCTRL0 0x40
#define PLLCTRL1 0x44
#define PLLCTRL2 0x48
#define DACMODE 0x4c
#define DACADDR 0x50
#define DACDATA 0x54
#define RGBMAXDELTA 0x58
#define VIDPROCCFG 0x5c
#define HWCURPATADDR 0x60
#define HWCURLOC 0x64
#define HWCURC0 0x68
#define HWCURC1 0x6c
#define VIDINFORMAT 0x70
#define VIDINSTATUS 0x74
#define VIDSERPARPORT 0x78
#define VIDINXDELTA 0x7c
#define VIDININITERR 0x80
#define VIDINYDELTA 0x84
#define VIDPIXBUFTHOLD 0x88
#define VIDCHRMIN 0x8c
#define VIDCHRMAX 0x90
#define VIDCURLIN 0x94
#define VIDSCREENSIZE 0x98
#define VIDOVRSTARTCRD 0x9c
#define VIDOVRENDCRD 0xa0
#define VIDOVRDUDX 0xa4
#define VIDOVRDUDXOFF 0xa8
#define VIDOVRDVDY 0xac
/* ... */
#define VIDOVRDVDYOFF 0xe0
#define VIDDESKSTART 0xe4
#define VIDDESKSTRIDE 0xe8
#define VIDINADDR0 0xec
#define VIDINADDR1 0xf0
#define VIDINADDR2 0xf4
#define VIDINSTRIDE 0xf8
#define VIDCUROVRSTART 0xfc
#define INTCTRL (0x00100000 + 0x04)
#define CLIP0MIN (0x00100000 + 0x08)
#define CLIP0MAX (0x00100000 + 0x0c)
#define DSTBASE (0x00100000 + 0x10)
#define DSTFORMAT (0x00100000 + 0x14)
#define SRCBASE (0x00100000 + 0x34)
#define COMMANDEXTRA_2D (0x00100000 + 0x38)
#define CLIP1MIN (0x00100000 + 0x4c)
#define CLIP1MAX (0x00100000 + 0x50)
#define SRCFORMAT (0x00100000 + 0x54)
#define SRCSIZE (0x00100000 + 0x58)
#define SRCXY (0x00100000 + 0x5c)
#define COLORBACK (0x00100000 + 0x60)
#define COLORFORE (0x00100000 + 0x64)
#define DSTSIZE (0x00100000 + 0x68)
#define DSTXY (0x00100000 + 0x6c)
#define COMMAND_2D (0x00100000 + 0x70)
#define LAUNCH_2D (0x00100000 + 0x80)
#define COMMAND_3D (0x00200000 + 0x120)
/* register bitfields (not all, only as needed) */
#define BIT(x) (1UL << (x))
/* COMMAND_2D reg. values */
#define TDFX_ROP_COPY 0xcc // src
#define TDFX_ROP_INVERT 0x55 // NOT dst
#define TDFX_ROP_XOR 0x66 // src XOR dst
#define AUTOINC_DSTX BIT(10)
#define AUTOINC_DSTY BIT(11)
#define COMMAND_2D_FILLRECT 0x05
#define COMMAND_2D_S2S_BITBLT 0x01 // screen to screen
#define COMMAND_2D_H2S_BITBLT 0x03 // host to screen
#define COMMAND_3D_NOP 0x00
#define STATUS_RETRACE BIT(6)
#define STATUS_BUSY BIT(9)
#define MISCINIT1_CLUT_INV BIT(0)
#define MISCINIT1_2DBLOCK_DIS BIT(15)
#define DRAMINIT0_SGRAM_NUM BIT(26)
#define DRAMINIT0_SGRAM_TYPE BIT(27)
#define DRAMINIT1_MEM_SDRAM BIT(30)
#define VGAINIT0_VGA_DISABLE BIT(0)
#define VGAINIT0_EXT_TIMING BIT(1)
#define VGAINIT0_8BIT_DAC BIT(2)
#define VGAINIT0_EXT_ENABLE BIT(6)
#define VGAINIT0_WAKEUP_3C3 BIT(8)
#define VGAINIT0_LEGACY_DISABLE BIT(9)
#define VGAINIT0_ALT_READBACK BIT(10)
#define VGAINIT0_FAST_BLINK BIT(11)
#define VGAINIT0_EXTSHIFTOUT BIT(12)
#define VGAINIT0_DECODE_3C6 BIT(13)
#define VGAINIT0_SGRAM_HBLANK_DISABLE BIT(22)
#define VGAINIT1_MASK 0x1fffff
#define VIDCFG_VIDPROC_ENABLE BIT(0)
#define VIDCFG_CURS_X11 BIT(1)
#define VIDCFG_HALF_MODE BIT(4)
#define VIDCFG_DESK_ENABLE BIT(7)
#define VIDCFG_CLUT_BYPASS BIT(10)
#define VIDCFG_2X BIT(26)
#define VIDCFG_HWCURSOR_ENABLE BIT(27)
#define VIDCFG_PIXFMT_SHIFT 18
#define DACMODE_2X BIT(0)
/* VGA rubbish, need to change this for multihead support */
#define MISC_W 0x3c2
#define MISC_R 0x3cc
#define SEQ_I 0x3c4
#define SEQ_D 0x3c5
#define CRT_I 0x3d4
#define CRT_D 0x3d5
#define ATT_IW 0x3c0
#define IS1_R 0x3da
#define GRA_I 0x3ce
#define GRA_D 0x3cf
#ifdef __KERNEL__
struct
banshee_reg
{
/* VGA rubbish */
unsigned
char
att
[
21
];
unsigned
char
crt
[
25
];
unsigned
char
gra
[
9
];
unsigned
char
misc
[
1
];
unsigned
char
seq
[
5
];
/* Banshee extensions */
unsigned
char
ext
[
2
];
unsigned
long
vidcfg
;
unsigned
long
vidpll
;
unsigned
long
mempll
;
unsigned
long
gfxpll
;
unsigned
long
dacmode
;
unsigned
long
vgainit0
;
unsigned
long
vgainit1
;
unsigned
long
screensize
;
unsigned
long
stride
;
unsigned
long
cursloc
;
unsigned
long
curspataddr
;
unsigned
long
cursc0
;
unsigned
long
cursc1
;
unsigned
long
startaddr
;
unsigned
long
clip0min
;
unsigned
long
clip0max
;
unsigned
long
clip1min
;
unsigned
long
clip1max
;
unsigned
long
srcbase
;
unsigned
long
dstbase
;
unsigned
long
miscinit0
;
};
/*
struct tdfx_par {
u32 max_pixclock;
void *regbase_virt;
unsigned long iobase;
u32 baseline;
struct {
int w,u,d;
unsigned long enable,disable;
struct timer_list timer;
} hwcursor;
spinlock_t DAClock;
};
*/
#endif
/* __KERNEL__ */
#endif
/* _TDFX_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment