summaryrefslogtreecommitdiffstats
path: root/vidix
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-14 18:25:06 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-14 18:25:06 +0000
commitb403749407b1ec92afceebfd40f7c53ba0c59172 (patch)
treef7c3f9802169c0a190a58b8f515211e11359aab2 /vidix
parent0dabe9f877a88be9e66786aa0b59100a0e8d9f0f (diff)
downloadmpv-b403749407b1ec92afceebfd40f7c53ba0c59172.tar.bz2
mpv-b403749407b1ec92afceebfd40f7c53ba0c59172.tar.xz
remove useless code parts
synchronized with vidix.sf.net r325 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25397 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix')
-rw-r--r--vidix/savage_vid.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/vidix/savage_vid.c b/vidix/savage_vid.c
index 48837e34f0..ac7035a0f2 100644
--- a/vidix/savage_vid.c
+++ b/vidix/savage_vid.c
@@ -593,15 +593,6 @@ SavageStreamsOn(void)
enable_app_io ();
- /* Unlock extended registers. */
-
- /* FIXME: it looks like mmaped io is broken with vgaout16 */
- VGAOUT16(vgaCRIndex, 0x4838 );
- VGAOUT16(vgaCRIndex, 0xa039);
- VGAOUT16(0x3c4, 0x0608);
-
-
-
VGAOUT8( vgaCRIndex, EXT_MISC_CTRL2 );
if( S3_SAVAGE_MOBILE_SERIES(info->chip.arch) )
@@ -729,13 +720,6 @@ static void SavageStreamsOff(void)
unsigned short vgaCRIndex = 0x3d0 + 4;
unsigned short vgaCRReg = 0x3d0 + 5;
-
- /* Unlock extended registers. */
-
- VGAOUT16(vgaCRIndex, 0x4838);
- VGAOUT16(vgaCRIndex, 0xa039);
- VGAOUT16(0x3c4, 0x0608);
-
VGAOUT8( vgaCRIndex, EXT_MISC_CTRL2 );
if( S3_SAVAGE_MOBILE_SERIES(info->chip.arch) ||
(info->chip.arch == S3_SUPERSAVAGE) ||
@@ -883,15 +867,6 @@ savage_init (void)
val = VGAIN8 (0x3cc);
VGAOUT8 (0x3c2, val | 0x01);
- if (info->chip.arch >= S3_SAVAGE4)
- {
- VGAOUT8 (0x3d4, 0x40);
- val = VGAIN8 (0x3d5);
- VGAOUT8 (0x3d5, val | 1);
- }
-
-
-
/* unprotect CRTC[0-7] */
VGAOUT8(vgaCRIndex, 0x11);
tmp = VGAIN8(vgaCRReg);
@@ -904,17 +879,6 @@ savage_init (void)
VGAOUT16(vgaCRIndex, 0xa039);
VGAOUT16(0x3c4, 0x0608);
- VGAOUT8(vgaCRIndex, 0x40);
- tmp = VGAIN8(vgaCRReg);
- VGAOUT8(vgaCRReg, tmp & ~0x01);
-
- /* unlock sys regs */
- VGAOUT8(vgaCRIndex, 0x38);
- VGAOUT8(vgaCRReg, 0x48);
-
- /* Unlock system registers. */
- VGAOUT16(vgaCRIndex, 0x4838);
-
/* Next go on to detect amount of installed ram */
VGAOUT8(vgaCRIndex, 0x36); /* for register CR36 (CONFG_REG1), */
@@ -972,24 +936,6 @@ savage_init (void)
VGAOUT8 (0x3d5, cr66 & ~0x02); */ // clear reset flag
/* udelay (10000); */
- /* This maps framebuffer @6MB, thus 2MB are left for video. */
- if (info->chip.arch == S3_SAVAGE3D) {
- info->video_base = map_phys_mem(pci_info.base0, info->chip.fbsize);
- info->picture_offset = 1024*768* 4 * ((info->chip.fbsize > 4194304)?2:1);
- }
- else {
- info->video_base = map_phys_mem(pci_info.base1, info->chip.fbsize);
- info->picture_offset = info->chip.fbsize - FRAMEBUFFER_SIZE;
-// info->picture_offset = 1024*1024* 4 * 2;
- }
- if ( info->video_base == NULL){
- printf("errno = %s\n", strerror(errno));
- return -1;
- }
-
-
- info->picture_base = (uint32_t) info->video_base + info->picture_offset;
-
if ( info->chip.arch == S3_SAVAGE3D ){
mtrr = mtrr_set_type(pci_info.base0, info->chip.fbsize, MTRR_TYPE_WRCOMB);
}