h5,dos_mode.c,lin_mode.c: made buildVideoModeData and setVideoModeSlave static.

whitespace tidy-up.
This commit is contained in:
sezero
2018-08-08 23:55:32 +03:00
parent 12d926449a
commit 43291704cb
3 changed files with 163 additions and 172 deletions

View File

@@ -55,7 +55,6 @@
**
** 2 6/25/98 7:40p Dow
** Made it compile
**
*/
#include <string.h>
@@ -135,7 +134,6 @@ setVideoMode( unsigned long dummy, int xres, int yres, int refresh, void *hmon )
}
}
r.w.ax = 0x4f02;
r.w.bx = mode;

View File

@@ -46,7 +46,6 @@
**
** 2 6/25/98 7:40p Dow
** Made it compile
**
*/
#include <string.h>
@@ -147,7 +146,6 @@ setVideoMode( void *hwnd,
}
}
r.w.ax = 0x4f02;
r.w.bx = mode;
@@ -193,11 +191,7 @@ FxBool checkResolutions (FxBool *supportedByResolution, FxU32 stride, void *hmon
}
#ifdef __WATCOMC__
#include "h3cini~1.h"
#else
#include "h3cinitdd.h"
#endif
#define CFG_READ(_chip, _offset) \
hwcReadConfigRegister(bInfo, _chip, offsetof(SstPCIConfigRegs, _offset))
@@ -384,13 +378,13 @@ initSlave(hwcBoardInfo *bInfo, FxU32 chipNum)
cmdStatus |= 1;
CFG_WRITE(0, status_command, cmdStatus);
{
{
FxU32 status, vgaInit0, vgaInit1;
HWC_IO_LOAD_SLAVE(chipNum, bInfo->regInfo, status, status);
HWC_IO_LOAD_SLAVE(chipNum, bInfo->regInfo, vgaInit0, vgaInit0);
HWC_IO_LOAD_SLAVE(chipNum, bInfo->regInfo, vgaInit1, vgaInit1);
LOG((dbg,"initSlave(%d) done. slave status: %08lx vgaInit0: %08lx vgaInit1: %08lx\n",chipNum, status, vgaInit0, vgaInit1));
}
}
}
static FxU8 vgaattr[] = {0x00, 0x00, 0x00, 0x00, 0x00,
@@ -432,7 +426,7 @@ static FxU16 modeData[21] =
ISET8PHYS(0x0d4, _srcindex); \
modeData[_dstindex] = IGET8PHYS(0x0d5);
void
static void
buildVideoModeData(hwcBoardInfo *bInfo)
{
/* Snarf all VGA data we need from the master */
@@ -481,7 +475,7 @@ buildVideoModeData(hwcBoardInfo *bInfo)
}
}
void
static void
setVideoModeSlave(
FxU32 regBase) // regBase of the slave
{

View File

@@ -416,13 +416,13 @@ initSlave(hwcBoardInfo *bInfo, FxU32 chipNum)
cmdStatus |= 1;
CFG_WRITE(0, status_command, cmdStatus);
{
{
FxU32 status, vgaInit0, vgaInit1;
HWC_IO_LOAD_SLAVE(chipNum, bInfo->regInfo, status, status);
HWC_IO_LOAD_SLAVE(chipNum, bInfo->regInfo, vgaInit0, vgaInit0);
HWC_IO_LOAD_SLAVE(chipNum, bInfo->regInfo, vgaInit1, vgaInit1);
LOG((dbg,"initSlave(%d) done. slave status: %08lx vgaInit0: %08lx vgaInit1: %08lx\n",chipNum, status, vgaInit0, vgaInit1));
}
}
}
static FxU8 vgaattr[] = {0x00, 0x00, 0x00, 0x00, 0x00,
@@ -464,7 +464,7 @@ static FxU16 modeData[21] =
ISET8PHYS(0x0d4, _srcindex); \
modeData[_dstindex] = IGET8PHYS(0x0d5);
void
static void
buildVideoModeData(hwcBoardInfo *bInfo)
{
/* Snarf all VGA data we need from the master */
@@ -513,7 +513,7 @@ buildVideoModeData(hwcBoardInfo *bInfo)
}
}
void
static void
setVideoModeSlave(
FxU32 regBase) // regBase of the slave
{
@@ -1540,4 +1540,3 @@ void hwcSetSLIAAMode(hwcBoardInfo *bInfo,
}
}
}