Changeset cc981e1 in rtems


Ignore:
Timestamp:
Aug 20, 2008, 5:47:08 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
1233af3
Parents:
288fbd42
Message:

Add missing prototypes.

Location:
c/src/lib
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mbx8xx/clock/p_clock.c

    r288fbd42 rcc981e1  
    3131                                              (rtems_irq_is_enabled)clockIsOn};
    3232
    33 int BSP_get_clock_irq_level()
     33int BSP_get_clock_irq_level(void)
    3434{
    3535  /*
  • c/src/lib/libbsp/powerpc/mbx8xx/console/console.c

    r288fbd42 rcc981e1  
    529529
    530530void
    531 serial_init()
     531serial_init(void)
    532532{
    533533        volatile smc_t          *sp;
     
    693693
    694694char
    695 serial_getc()
     695serial_getc(void)
    696696{
    697697        volatile cbd_t          *rbdf;
     
    714714
    715715int
    716 serial_tstc()
     716serial_tstc(void)
    717717{
    718718        volatile cbd_t          *rbdf;
  • c/src/lib/libbsp/powerpc/mbx8xx/irq/irq.c

    r288fbd42 rcc981e1  
    9595 * and accessible.
    9696 */
    97 static void compute_SIU_IvectMask_from_prio ()
     97static void compute_SIU_IvectMask_from_prio (void)
    9898{
    9999  /*
  • c/src/lib/libbsp/powerpc/mbx8xx/irq/irq_init.c

    r288fbd42 rcc981e1  
    2020
    2121extern unsigned int external_exception_vector_prolog_code_size;
    22 extern void external_exception_vector_prolog_code();
     22extern void external_exception_vector_prolog_code(void);
    2323extern unsigned int decrementer_exception_vector_prolog_code_size;
    24 extern void decrementer_exception_vector_prolog_code();
     24extern void decrementer_exception_vector_prolog_code(void);
    2525
    2626volatile unsigned int ppc_cached_irq_mask;
     
    3030 */
    3131static void nop_func1(void *unused){}
    32 static void nop_func2(){}
     32static void nop_func2(void){}
    3333
    3434/*
    3535 * default isOn function
    3636 */
    37 static int not_connected() {return 0;}
     37static int not_connected(void) {return 0;}
    3838/*
    3939 * default possible isOn function
    4040 */
    41 static int connected() {return 1;}
     41static int connected(void) {return 1;}
    4242
    4343static rtems_irq_connect_data           rtemsIrq[BSP_IRQ_NUMBER];
     
    6868};
    6969
    70 void BSP_SIU_irq_init()
     70void BSP_SIU_irq_init(void)
    7171{
    7272  /*
  • c/src/lib/libbsp/powerpc/mbx8xx/vectors/vectors_init.c

    r288fbd42 rcc981e1  
    8989}
    9090
    91 void initialize_exceptions()
     91void initialize_exceptions(void)
    9292{
    9393  int i;
  • c/src/lib/libbsp/powerpc/shared/console/inch.c

    r288fbd42 rcc981e1  
    197197|          Returns: standard return value - see documentation.
    198198+--------------------------------------------------------------------------*/
    199 void _IBMPC_keyboard_isr()
     199void _IBMPC_keyboard_isr(void)
    200200{
    201201  if (_IBMPC_scankey(&kbd_buffer[kbd_last]))
  • c/src/lib/libbsp/powerpc/shared/irq/irq_init.c

    r288fbd42 rcc981e1  
    4343 * default on/off function
    4444 */
    45 static void nop_func(){}
     45static void nop_func(void){}
    4646/*
    4747 * default isOn function
    4848 */
    49 static int not_connected() {return 0;}
     49static int not_connected(void) {return 0;}
    5050/*
    5151 * default possible isOn function
  • c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c

    r288fbd42 rcc981e1  
    4040extern unsigned int EUMBBAR;
    4141
    42 void detect_host_bridge()
     42void detect_host_bridge(void)
    4343{
    4444  /*
     
    102102#endif
    103103
    104 void detect_host_bridge()
     104void detect_host_bridge(void)
    105105{
    106106  PPC_DEVICE *hostbridge;
  • c/src/lib/libbsp/powerpc/shared/showbats.c

    r288fbd42 rcc981e1  
    4141}
    4242
    43 void ShowBATS(){
     43void ShowBATS(void){
    4444  uint32_t lower;
    4545  uint32_t upper;
  • c/src/lib/libbsp/powerpc/shared/startup/bspstart.c

    r288fbd42 rcc981e1  
    3939#include <rtems/powerpc/powerpc.h>
    4040
    41 extern void _return_to_ppcbug();
     41extern void _return_to_ppcbug(void);
    4242extern unsigned long __rtems_end[];
    43 extern void L1_caches_enables();
    44 extern unsigned get_L2CR();
     43extern void L1_caches_enables(void);
     44extern unsigned get_L2CR(void);
    4545extern void set_L2CR(unsigned);
    4646extern void bsp_cleanup(void);
    47 extern Triv121PgTbl BSP_pgtbl_setup();
    48 extern void                     BSP_pgtbl_activate();
    49 extern void                     BSP_vme_config();
     47extern Triv121PgTbl BSP_pgtbl_setup(unsigned long);
     48extern void                     BSP_pgtbl_activate(Triv121PgTbl);
     49extern void                     BSP_vme_config(void);
    5050
    5151SPR_RW(SPRG1)
    5252
    5353#if defined(DEBUG_BATS)
    54 extern void ShowBATS();`
     54extern void ShowBATS(void);
    5555#endif
    5656
     
    133133 * Processor Address Map B (CHRP).
    134134 */
    135 unsigned int get_eumbbar() {
     135unsigned int get_eumbbar(void) {
    136136  out_le32( (uint32_t*)0xfec00000, 0x80000078 );
    137137  return in_le32( (uint32_t*)0xfee00000 );
  • c/src/lib/libbsp/powerpc/shared/startup/zerobss.c

    r288fbd42 rcc981e1  
    1717#include <string.h>
    1818
    19 void zero_bss()
     19void zero_bss(void)
    2020{
    2121  /* prevent these from being accessed in the short data areas */
  • c/src/lib/libbsp/powerpc/shared/vme/vmeconfig.c

    r288fbd42 rcc981e1  
    5858#include <rtems/bspIo.h>
    5959
    60 extern int BSP_VMEInit();
    61 extern int BSP_VMEIrqMgrInstall();
     60extern int BSP_VMEInit(void);
     61extern int BSP_VMEIrqMgrInstall(void);
    6262
    6363/* Use a weak alias for the VME configuration.
  • c/src/lib/libcpu/powerpc/mpc8260/clock/clock.c

    r288fbd42 rcc981e1  
    4545
    4646volatile uint32_t   Clock_driver_ticks;
    47 extern int BSP_get_clock_irq_level();
     47extern int BSP_get_clock_irq_level(void);
    4848extern int BSP_connect_clock_handler(rtems_isr_entry);
    49 extern int BSP_disconnect_clock_handler();
     49extern int BSP_disconnect_clock_handler(void);
    5050
    5151void Clock_exit( void );
  • c/src/lib/libcpu/powerpc/mpc8260/console-generic/console-generic.c

    r288fbd42 rcc981e1  
    6666
    6767/* BSP supplied routine */
    68 extern int mbx8xx_console_get_configuration();
     68extern int mbx8xx_console_get_configuration(void);
    6969
    7070
Note: See TracChangeset for help on using the changeset viewer.