add missing static qualifiers to remove warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5846 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -232,7 +232,7 @@ status_t gx00_dac_set_pix_pll(display_mode target)
|
|||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t gx50_dac_check_pix_pll(uint8 m, uint8 n, uint8 p)
|
static status_t gx50_dac_check_pix_pll(uint8 m, uint8 n, uint8 p)
|
||||||
{
|
{
|
||||||
uint time = 0, count = 0;
|
uint time = 0, count = 0;
|
||||||
|
|
||||||
@@ -267,7 +267,7 @@ status_t gx50_dac_check_pix_pll(uint8 m, uint8 n, uint8 p)
|
|||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t gx50_dac_check_pix_pll_range(uint8 m, uint8 n, uint8 *p, uint8 *q)
|
static status_t gx50_dac_check_pix_pll_range(uint8 m, uint8 n, uint8 *p, uint8 *q)
|
||||||
{
|
{
|
||||||
uint8 s=0, p_backup = *p;
|
uint8 s=0, p_backup = *p;
|
||||||
|
|
||||||
@@ -867,7 +867,7 @@ static status_t g100_g400max_dac_sys_pll_find(
|
|||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t gx50_dac_check_sys_pll(uint8 m, uint8 n, uint8 p)
|
static status_t gx50_dac_check_sys_pll(uint8 m, uint8 n, uint8 p)
|
||||||
{
|
{
|
||||||
uint time = 0, count = 0;
|
uint time = 0, count = 0;
|
||||||
|
|
||||||
@@ -900,7 +900,7 @@ status_t gx50_dac_check_sys_pll(uint8 m, uint8 n, uint8 p)
|
|||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t gx50_dac_check_sys_pll_range(uint8 m, uint8 n, uint8 *p, uint8 *q)
|
static status_t gx50_dac_check_sys_pll_range(uint8 m, uint8 n, uint8 *p, uint8 *q)
|
||||||
{
|
{
|
||||||
uint8 s=0, p_backup = *p;
|
uint8 s=0, p_backup = *p;
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
//apsed #include "memory"
|
//apsed #include "memory"
|
||||||
//#include "mga_init.c" //Nicole's test stuff.
|
//#include "mga_init.c" //Nicole's test stuff.
|
||||||
|
|
||||||
status_t test_ram();
|
static status_t test_ram();
|
||||||
static status_t mil_general_powerup (void);
|
static status_t mil_general_powerup (void);
|
||||||
static status_t g100_general_powerup (void);
|
static status_t g100_general_powerup (void);
|
||||||
static status_t g200_general_powerup (void);
|
static status_t g200_general_powerup (void);
|
||||||
@@ -121,7 +121,7 @@ status_t gx00_general_powerup()
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t test_ram()
|
static status_t test_ram()
|
||||||
{
|
{
|
||||||
uint32 value, offset;
|
uint32 value, offset;
|
||||||
status_t result = B_OK;
|
status_t result = B_OK;
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ status_t i2c_sec_tv_adapter()
|
|||||||
*/
|
*/
|
||||||
#define I2C_DELAY 2
|
#define I2C_DELAY 2
|
||||||
#define I2C_TIMEOUT 100
|
#define I2C_TIMEOUT 100
|
||||||
int i2c_set_lines(int clock,int data)
|
static int i2c_set_lines(int clock,int data)
|
||||||
{
|
{
|
||||||
int count=0;
|
int count=0;
|
||||||
int program;
|
int program;
|
||||||
@@ -107,7 +107,7 @@ int i2c_set_lines(int clock,int data)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int i2c_get_data()
|
static int i2c_get_data()
|
||||||
{
|
{
|
||||||
int data;
|
int data;
|
||||||
int clock;
|
int clock;
|
||||||
@@ -139,7 +139,7 @@ int i2c_get_data()
|
|||||||
/*-----------------------
|
/*-----------------------
|
||||||
*Standard I2C operations
|
*Standard I2C operations
|
||||||
*/
|
*/
|
||||||
void i2c_start()
|
static void i2c_start()
|
||||||
{
|
{
|
||||||
int error=0;
|
int error=0;
|
||||||
|
|
||||||
@@ -154,7 +154,7 @@ void i2c_start()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void i2c_stop()
|
static void i2c_stop()
|
||||||
{
|
{
|
||||||
int error=0;
|
int error=0;
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@ void i2c_stop()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void i2c_high()
|
static void i2c_high()
|
||||||
{
|
{
|
||||||
int error=0;
|
int error=0;
|
||||||
|
|
||||||
@@ -183,7 +183,7 @@ void i2c_high()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void i2c_low()
|
static void i2c_low()
|
||||||
{
|
{
|
||||||
int error=0;
|
int error=0;
|
||||||
|
|
||||||
@@ -197,7 +197,7 @@ void i2c_low()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int i2c_get_ack()
|
static int i2c_get_ack()
|
||||||
{
|
{
|
||||||
int error=0;
|
int error=0;
|
||||||
int ack;
|
int ack;
|
||||||
@@ -215,7 +215,7 @@ int i2c_get_ack()
|
|||||||
return ack;
|
return ack;
|
||||||
}
|
}
|
||||||
|
|
||||||
void i2c_send_ack()
|
static void i2c_send_ack()
|
||||||
{
|
{
|
||||||
int error=0;
|
int error=0;
|
||||||
|
|
||||||
@@ -233,7 +233,7 @@ void i2c_send_ack()
|
|||||||
*use above functions to send and receive bytes
|
*use above functions to send and receive bytes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int i2c_sendbyte(unsigned char data)
|
static int i2c_sendbyte(unsigned char data)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@@ -252,7 +252,7 @@ int i2c_sendbyte(unsigned char data)
|
|||||||
return i2c_get_ack();
|
return i2c_get_ack();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char i2c_readbyte(int ack_required)
|
static unsigned char i2c_readbyte(int ack_required)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
unsigned char data=0;
|
unsigned char data=0;
|
||||||
|
|||||||
@@ -450,7 +450,7 @@ status_t g100_g400max_maven_vid_pll_find(
|
|||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t gx50_maven_check_vid_pll(uint8 m, uint8 n, uint8 p)
|
static status_t gx50_maven_check_vid_pll(uint8 m, uint8 n, uint8 p)
|
||||||
{
|
{
|
||||||
uint time = 0, count = 0;
|
uint time = 0, count = 0;
|
||||||
|
|
||||||
@@ -484,7 +484,7 @@ status_t gx50_maven_check_vid_pll(uint8 m, uint8 n, uint8 p)
|
|||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t gx50_maven_check_vid_pll_range(uint8 m, uint8 n, uint8 *p, uint8 *q)
|
static status_t gx50_maven_check_vid_pll_range(uint8 m, uint8 n, uint8 *p, uint8 *q)
|
||||||
{
|
{
|
||||||
uint8 s=0, p_backup = *p;
|
uint8 s=0, p_backup = *p;
|
||||||
|
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ status_t g100_g400max_maventv_vid_pll_find(
|
|||||||
* brightness and contrast. */
|
* brightness and contrast. */
|
||||||
|
|
||||||
/* Preset maven PAL output (625lines, 50Hz mode) */
|
/* Preset maven PAL output (625lines, 50Hz mode) */
|
||||||
void gxx0_maventv_PAL_init(uint8* buffer)
|
static void gxx0_maventv_PAL_init(uint8* buffer)
|
||||||
{
|
{
|
||||||
uint16 value;
|
uint16 value;
|
||||||
|
|
||||||
@@ -449,7 +449,7 @@ void gxx0_maventv_PAL_init(uint8* buffer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Preset maven NTSC output (525lines, 59.94Hz mode) */
|
/* Preset maven NTSC output (525lines, 59.94Hz mode) */
|
||||||
void gxx0_maventv_NTSC_init(uint8* buffer)
|
static void gxx0_maventv_NTSC_init(uint8* buffer)
|
||||||
{
|
{
|
||||||
uint16 value;
|
uint16 value;
|
||||||
|
|
||||||
@@ -605,7 +605,7 @@ void gxx0_maventv_NTSC_init(uint8* buffer)
|
|||||||
buffer[0x3d] = 0x00;
|
buffer[0x3d] = 0x00;
|
||||||
}
|
}
|
||||||
|
|
||||||
void gx50_maventv_PAL_timing(gx50_maven_timing *m_timing)
|
static void gx50_maventv_PAL_timing(gx50_maven_timing *m_timing)
|
||||||
{
|
{
|
||||||
/* values are given in picoseconds */
|
/* values are given in picoseconds */
|
||||||
m_timing->h_total = 64000000;
|
m_timing->h_total = 64000000;
|
||||||
@@ -622,7 +622,7 @@ void gx50_maventv_PAL_timing(gx50_maven_timing *m_timing)
|
|||||||
m_timing->chroma_subcarrier = 4.43361875;
|
m_timing->chroma_subcarrier = 4.43361875;
|
||||||
}
|
}
|
||||||
|
|
||||||
void gx50_maventv_NTSC_timing(gx50_maven_timing *m_timing)
|
static void gx50_maventv_NTSC_timing(gx50_maven_timing *m_timing)
|
||||||
{
|
{
|
||||||
/* values are given in picoseconds */
|
/* values are given in picoseconds */
|
||||||
m_timing->h_total = 63555556;
|
m_timing->h_total = 63555556;
|
||||||
|
|||||||
Reference in New Issue
Block a user