Move IsClearTV function location inside trident_pll.c

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
This commit is contained in:
Kevin Brace
2019-05-10 19:39:45 -07:00
parent b34e8641c6
commit 5f110dc4c1

View File

@@ -37,7 +37,23 @@
#include "trident.h"
#include "trident_regs.h"
static void IsClearTV(ScrnInfoPtr pScrn);
static void
IsClearTV(ScrnInfoPtr pScrn)
{
int vgaIOBase = VGAHWPTR(pScrn)->IOBase;
TRIDENTPtr pTrident = TRIDENTPTR(pScrn);
CARD8 temp;
if (pTrident->frequency != 0) return;
OUTB(vgaIOBase + 4, 0xC0);
temp = INB(vgaIOBase + 5);
if (temp & 0x80)
pTrident->frequency = PAL;
else
pTrident->frequency = NTSC;
}
void
TGUISetClock(ScrnInfoPtr pScrn, int clock, CARD8 *a, CARD8 *b)
@@ -123,23 +139,6 @@ TGUISetClock(ScrnInfoPtr pScrn, int clock, CARD8 *a, CARD8 *b)
clock/1000., p, q, r);
}
static void
IsClearTV(ScrnInfoPtr pScrn)
{
int vgaIOBase = VGAHWPTR(pScrn)->IOBase;
TRIDENTPtr pTrident = TRIDENTPTR(pScrn);
CARD8 temp;
if (pTrident->frequency != 0) return;
OUTB(vgaIOBase + 4, 0xC0);
temp = INB(vgaIOBase + 5);
if (temp & 0x80)
pTrident->frequency = PAL;
else
pTrident->frequency = NTSC;
}
void
TridentFindClock(ScrnInfoPtr pScrn, int clock)
{