forked from Imagelibrary/rtems
Add missing prototypes.
This commit is contained in:
@@ -30,7 +30,7 @@ static rtems_irq_connect_data clockIrqData = {BSP_PERIODIC_TIMER,
|
||||
(rtems_irq_disable)clockOff,
|
||||
(rtems_irq_is_enabled)clockIsOn};
|
||||
|
||||
int BSP_get_clock_irq_level()
|
||||
int BSP_get_clock_irq_level(void)
|
||||
{
|
||||
/*
|
||||
* Caution : if you change this, you must change the
|
||||
|
||||
@@ -528,7 +528,7 @@ bd_t fakeEppcBugInfo = {
|
||||
static cpm8xx_t *cpmp = (cpm8xx_t *)&(((immap_t *)IMAP_ADDR)->im_cpm);
|
||||
|
||||
void
|
||||
serial_init()
|
||||
serial_init(void)
|
||||
{
|
||||
volatile smc_t *sp;
|
||||
volatile smc_uart_t *up;
|
||||
@@ -692,7 +692,7 @@ serial_putchar(const char c)
|
||||
}
|
||||
|
||||
char
|
||||
serial_getc()
|
||||
serial_getc(void)
|
||||
{
|
||||
volatile cbd_t *rbdf;
|
||||
volatile char *buf;
|
||||
@@ -713,7 +713,7 @@ serial_getc()
|
||||
}
|
||||
|
||||
int
|
||||
serial_tstc()
|
||||
serial_tstc(void)
|
||||
{
|
||||
volatile cbd_t *rbdf;
|
||||
volatile smc_uart_t *up;
|
||||
|
||||
@@ -94,7 +94,7 @@ const static unsigned int SIU_IvectMask[BSP_SIU_IRQ_NUMBER] =
|
||||
* is already set and that the tables it contains are still valid
|
||||
* and accessible.
|
||||
*/
|
||||
static void compute_SIU_IvectMask_from_prio ()
|
||||
static void compute_SIU_IvectMask_from_prio (void)
|
||||
{
|
||||
/*
|
||||
* In theory this is feasible. No time to code it yet. See i386/shared/irq.c
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
#include <bsp/commproc.h>
|
||||
|
||||
extern unsigned int external_exception_vector_prolog_code_size;
|
||||
extern void external_exception_vector_prolog_code();
|
||||
extern void external_exception_vector_prolog_code(void);
|
||||
extern unsigned int decrementer_exception_vector_prolog_code_size;
|
||||
extern void decrementer_exception_vector_prolog_code();
|
||||
extern void decrementer_exception_vector_prolog_code(void);
|
||||
|
||||
volatile unsigned int ppc_cached_irq_mask;
|
||||
|
||||
@@ -29,16 +29,16 @@ volatile unsigned int ppc_cached_irq_mask;
|
||||
* default on/off function
|
||||
*/
|
||||
static void nop_func1(void *unused){}
|
||||
static void nop_func2(){}
|
||||
static void nop_func2(void){}
|
||||
|
||||
/*
|
||||
* default isOn function
|
||||
*/
|
||||
static int not_connected() {return 0;}
|
||||
static int not_connected(void) {return 0;}
|
||||
/*
|
||||
* default possible isOn function
|
||||
*/
|
||||
static int connected() {return 1;}
|
||||
static int connected(void) {return 1;}
|
||||
|
||||
static rtems_irq_connect_data rtemsIrq[BSP_IRQ_NUMBER];
|
||||
static rtems_irq_global_settings initial_config;
|
||||
@@ -67,7 +67,7 @@ static rtems_irq_prio irqPrioTable[BSP_IRQ_NUMBER]={
|
||||
0
|
||||
};
|
||||
|
||||
void BSP_SIU_irq_init()
|
||||
void BSP_SIU_irq_init(void)
|
||||
{
|
||||
/*
|
||||
* In theory we should initialize two registers at least :
|
||||
|
||||
@@ -88,7 +88,7 @@ int except_always_enabled(const rtems_raw_except_connect_data* ptr)
|
||||
return 1;
|
||||
}
|
||||
|
||||
void initialize_exceptions()
|
||||
void initialize_exceptions(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
@@ -196,7 +196,7 @@ _IBMPC_scankey(char *outChar)
|
||||
| Arguments: vector - standard RTEMS argument - see documentation.
|
||||
| Returns: standard return value - see documentation.
|
||||
+--------------------------------------------------------------------------*/
|
||||
void _IBMPC_keyboard_isr()
|
||||
void _IBMPC_keyboard_isr(void)
|
||||
{
|
||||
if (_IBMPC_scankey(&kbd_buffer[kbd_last]))
|
||||
{
|
||||
|
||||
@@ -42,11 +42,11 @@ static pci_isa_bridge_device bridge;
|
||||
/*
|
||||
* default on/off function
|
||||
*/
|
||||
static void nop_func(){}
|
||||
static void nop_func(void){}
|
||||
/*
|
||||
* default isOn function
|
||||
*/
|
||||
static int not_connected() {return 0;}
|
||||
static int not_connected(void) {return 0;}
|
||||
/*
|
||||
* default possible isOn function
|
||||
static int connected() {return 1;}
|
||||
|
||||
@@ -39,7 +39,7 @@ extern const pci_config_access_functions pci_indirect_functions;
|
||||
|
||||
extern unsigned int EUMBBAR;
|
||||
|
||||
void detect_host_bridge()
|
||||
void detect_host_bridge(void)
|
||||
{
|
||||
/*
|
||||
* If the processor is an 8240 or an 8245 then the PIC is built
|
||||
@@ -101,7 +101,7 @@ unsigned merst;
|
||||
}
|
||||
#endif
|
||||
|
||||
void detect_host_bridge()
|
||||
void detect_host_bridge(void)
|
||||
{
|
||||
PPC_DEVICE *hostbridge;
|
||||
uint32_t id0;
|
||||
|
||||
@@ -40,7 +40,7 @@ void printBAT( int bat, uint32_t upper, uint32_t lower )
|
||||
);
|
||||
}
|
||||
|
||||
void ShowBATS(){
|
||||
void ShowBATS(void){
|
||||
uint32_t lower;
|
||||
uint32_t upper;
|
||||
|
||||
|
||||
@@ -38,20 +38,20 @@
|
||||
#include <bsp/motorola.h>
|
||||
#include <rtems/powerpc/powerpc.h>
|
||||
|
||||
extern void _return_to_ppcbug();
|
||||
extern void _return_to_ppcbug(void);
|
||||
extern unsigned long __rtems_end[];
|
||||
extern void L1_caches_enables();
|
||||
extern unsigned get_L2CR();
|
||||
extern void L1_caches_enables(void);
|
||||
extern unsigned get_L2CR(void);
|
||||
extern void set_L2CR(unsigned);
|
||||
extern void bsp_cleanup(void);
|
||||
extern Triv121PgTbl BSP_pgtbl_setup();
|
||||
extern void BSP_pgtbl_activate();
|
||||
extern void BSP_vme_config();
|
||||
extern Triv121PgTbl BSP_pgtbl_setup(unsigned long);
|
||||
extern void BSP_pgtbl_activate(Triv121PgTbl);
|
||||
extern void BSP_vme_config(void);
|
||||
|
||||
SPR_RW(SPRG1)
|
||||
|
||||
#if defined(DEBUG_BATS)
|
||||
extern void ShowBATS();`
|
||||
extern void ShowBATS(void);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -132,7 +132,7 @@ unsigned int EUMBBAR;
|
||||
* Register (EUMBBAR) as read from the processor configuration register using
|
||||
* Processor Address Map B (CHRP).
|
||||
*/
|
||||
unsigned int get_eumbbar() {
|
||||
unsigned int get_eumbbar(void) {
|
||||
out_le32( (uint32_t*)0xfec00000, 0x80000078 );
|
||||
return in_le32( (uint32_t*)0xfee00000 );
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
void zero_bss()
|
||||
void zero_bss(void)
|
||||
{
|
||||
/* prevent these from being accessed in the short data areas */
|
||||
extern unsigned long __bss_start[], __SBSS_START__[], __SBSS_END__[];
|
||||
|
||||
@@ -57,8 +57,8 @@
|
||||
#endif
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
extern int BSP_VMEInit();
|
||||
extern int BSP_VMEIrqMgrInstall();
|
||||
extern int BSP_VMEInit(void);
|
||||
extern int BSP_VMEIrqMgrInstall(void);
|
||||
|
||||
/* Use a weak alias for the VME configuration.
|
||||
* This permits individual applications to override
|
||||
|
||||
@@ -44,9 +44,9 @@
|
||||
#include <bsp/irq.h>
|
||||
|
||||
volatile uint32_t Clock_driver_ticks;
|
||||
extern int BSP_get_clock_irq_level();
|
||||
extern int BSP_get_clock_irq_level(void);
|
||||
extern int BSP_connect_clock_handler(rtems_isr_entry);
|
||||
extern int BSP_disconnect_clock_handler();
|
||||
extern int BSP_disconnect_clock_handler(void);
|
||||
|
||||
void Clock_exit( void );
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
|
||||
/* BSP supplied routine */
|
||||
extern int mbx8xx_console_get_configuration();
|
||||
extern int mbx8xx_console_get_configuration(void);
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user