add static to remove warnings

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5849 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty
2003-12-31 11:39:43 +00:00
parent 7d2bb07ed9
commit 4afe6a6bd3
4 changed files with 20 additions and 20 deletions
@@ -7,7 +7,7 @@
#include "nm_std.h"
void set_nm2070(void)
static void set_nm2070(void)
{
/* setup cardspecs */
si->ps.f_ref = 14.31818;
@@ -27,7 +27,7 @@ void set_nm2070(void)
si->ps.std_engine_clock = 0;
}
void set_nm2090_nm2093(void)
static void set_nm2090_nm2093(void)
{
/* setup cardspecs */
si->ps.f_ref = 14.31818;
@@ -46,7 +46,7 @@ void set_nm2090_nm2093(void)
si->ps.std_engine_clock = 0;
}
void set_nm2097(void)
static void set_nm2097(void)
{
/* setup cardspecs */
si->ps.f_ref = 14.31818;
@@ -65,7 +65,7 @@ void set_nm2097(void)
si->ps.std_engine_clock = 0;
}
void set_nm2160(void)
static void set_nm2160(void)
{
/* setup cardspecs */
si->ps.f_ref = 14.31818;
@@ -84,7 +84,7 @@ void set_nm2160(void)
si->ps.std_engine_clock = 0;
}
void set_nm2200(void)
static void set_nm2200(void)
{
/* setup cardspecs */
si->ps.f_ref = 14.31818;
@@ -103,7 +103,7 @@ void set_nm2200(void)
si->ps.std_engine_clock = 0;
}
void set_nm2230(void)
static void set_nm2230(void)
{
/* setup cardspecs */
si->ps.f_ref = 14.31818;
@@ -122,7 +122,7 @@ void set_nm2230(void)
si->ps.std_engine_clock = 0;
}
void set_nm2360(void)
static void set_nm2360(void)
{
/* setup cardspecs */
si->ps.f_ref = 14.31818;
@@ -141,7 +141,7 @@ void set_nm2360(void)
si->ps.std_engine_clock = 0;
}
void set_nm2380(void)
static void set_nm2380(void)
{
/* setup cardspecs */
si->ps.f_ref = 14.31818;
@@ -137,23 +137,23 @@ static void dumprom (void *rom, size_t size)
}
/*return 1, is interrupt has occured*/
int caused_vbi(vuint32 * regs)
static int caused_vbi(vuint32 * regs)
{
return (ACCR(STATUS)&0x20);
}
/*clear the interrupt*/
void clear_vbi(vuint32 * regs)
static void clear_vbi(vuint32 * regs)
{
ACCW(ICLEAR,0x20);
}
void enable_vbi(vuint32 * regs)
static void enable_vbi(vuint32 * regs)
{
ACCW(IEN,ACCR(IEN)|0x20);
}
void disable_vbi(vuint32 * regs)
static void disable_vbi(vuint32 * regs)
{
ACCW(IEN,(ACCR(IEN)&~0x20));
ACCW(ICLEAR,0x20);
@@ -142,24 +142,24 @@ static void dumprom (void *rom, size_t size)
}
/*return 1, is interrupt has occured*/
int caused_vbi(vuint32 * regs, vuint32 * regs2)
static int caused_vbi(vuint32 * regs, vuint32 * regs2)
{
// return (ACCR(STATUS)&0x20);
return 0;
}
/*clear the interrupt*/
void clear_vbi(vuint32 * regs, vuint32 * regs2)
static void clear_vbi(vuint32 * regs, vuint32 * regs2)
{
// ACCW(ICLEAR,0x20);
}
void enable_vbi(vuint32 * regs, vuint32 * regs2)
static void enable_vbi(vuint32 * regs, vuint32 * regs2)
{
// ACCW(IEN,ACCR(IEN)|0x20);
}
void disable_vbi(vuint32 * regs, vuint32 * regs2)
static void disable_vbi(vuint32 * regs, vuint32 * regs2)
{
// ACCW(IEN,(ACCR(IEN)&~0x20));
// ACCW(ICLEAR,0x20);
@@ -244,18 +244,18 @@ static void dumprom (void *rom, size_t size)
}
/* return 1 if vblank interrupt has occured */
int caused_vbi(vuint32 * regs)
static int caused_vbi(vuint32 * regs)
{
return (NV_REG32(NV32_CRTC_INTS) & 0x00000001);
}
/* clear the vblank interrupt */
void clear_vbi(vuint32 * regs)
static void clear_vbi(vuint32 * regs)
{
NV_REG32(NV32_CRTC_INTS) = 0x00000001;
}
void enable_vbi(vuint32 * regs)
static void enable_vbi(vuint32 * regs)
{
/* clear the vblank interrupt */
NV_REG32(NV32_CRTC_INTS) = 0x00000001;
@@ -265,7 +265,7 @@ void enable_vbi(vuint32 * regs)
NV_REG32(NV32_MAIN_INTE) = 0x00000001;
}
void disable_vbi(vuint32 * regs)
static void disable_vbi(vuint32 * regs)
{
/* disable nVidia interrupt source vblank */
NV_REG32(NV32_CRTC_INTE) &= 0xfffffffe;