Fix "no previous prototype" warnings about static functions...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4825 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
#define RTL_NODEBUG
|
||||
#ifdef RTL_NODEBUG
|
||||
#define TRACE no_printf
|
||||
void no_printf( const char *useless , ... ) {};
|
||||
static void no_printf( const char *useless , ... ) {};
|
||||
#else
|
||||
#define TRACE TRACE
|
||||
#endif
|
||||
@@ -211,7 +211,7 @@ static status_t close_hook( void * );
|
||||
#define READ_16( offset ) (m_pcimodule->read_io_16((data->reg_base + offset)))
|
||||
#define READ_32( offset ) (m_pcimodule->read_io_32((data->reg_base + offset)))
|
||||
|
||||
void rtl8139_init_registers( rtl8139_properties_t *data )
|
||||
static void rtl8139_init_registers( rtl8139_properties_t *data )
|
||||
{
|
||||
data->reg_base = data->pcii->u.h0.base_registers[0];
|
||||
}
|
||||
@@ -225,7 +225,7 @@ static status_t close_hook( void * );
|
||||
#define READ_16( offset ) B_LENDIAN_TO_HOST_INT16(*((volatile uint16*)(data->reg_base + (offset))))
|
||||
#define READ_32( offset ) B_LENDIAN_TO_HOST_INT32(*((volatile uint32*)(data->reg_base + (offset))))
|
||||
|
||||
void rtl8139_init_registers( rtl8139_properties_t *data )
|
||||
static void rtl8139_init_registers( rtl8139_properties_t *data )
|
||||
{
|
||||
int32 base, size, offset;
|
||||
base = data->pcii->u.h0.base_registers[0];
|
||||
|
||||
@@ -123,7 +123,7 @@ dumpBlock(const char *buffer, int size, const char *prefix)
|
||||
// #pragma mark -
|
||||
|
||||
|
||||
status_t
|
||||
static status_t
|
||||
checkDeviceInfo(struct sis_info *info)
|
||||
{
|
||||
if (!info || info->cookieMagic != SiS_COOKIE_MAGIC)
|
||||
@@ -133,13 +133,13 @@ checkDeviceInfo(struct sis_info *info)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
static void
|
||||
deleteSemaphores(struct sis_info *info)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
static status_t
|
||||
createSemaphores(struct sis_info *info)
|
||||
{
|
||||
if ((info->rxSem = create_sem(0, "sis900 receive")) < B_OK)
|
||||
|
||||
@@ -59,7 +59,7 @@ gMIIChips[] = {
|
||||
|
||||
/***************************** helper functions *****************************/
|
||||
|
||||
uint32
|
||||
static uint32
|
||||
physicalAddress(volatile void *address,uint32 length)
|
||||
{
|
||||
physical_entry table;
|
||||
@@ -75,7 +75,7 @@ int32 intrCounter = 0;
|
||||
int32 lastIntr[100];
|
||||
|
||||
|
||||
int32
|
||||
static int32
|
||||
sis900_rxInterrupt(struct sis_info *info)
|
||||
{
|
||||
int32 handled = B_UNHANDLED_INTERRUPT;
|
||||
@@ -119,7 +119,7 @@ sis900_rxInterrupt(struct sis_info *info)
|
||||
}
|
||||
|
||||
|
||||
int32
|
||||
static int32
|
||||
sis900_txInterrupt(struct sis_info *info)
|
||||
{
|
||||
int16 releaseTxSem = 0;
|
||||
@@ -499,7 +499,7 @@ sis900_readMode(struct sis_info *info)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
static void
|
||||
sis900_setAutoNegotiationCapabilities(struct sis_info *info)
|
||||
{
|
||||
uint16 status = mdio_status(info);
|
||||
@@ -514,7 +514,7 @@ sis900_setAutoNegotiationCapabilities(struct sis_info *info)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
static void
|
||||
sis900_autoNegotiate(struct sis_info *info)
|
||||
{
|
||||
uint16 status = mdio_status(info);
|
||||
|
||||
Reference in New Issue
Block a user