Changeset 6771a9e7 in rtems


Ignore:
Timestamp:
Aug 20, 2008, 9:00:11 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
5d2f5196
Parents:
32cf3525
Message:

Add missing prototypes.

Location:
c/src/lib/libbsp/powerpc
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mvme3100/i2c/i2c_init.c

    r32cf3525 r6771a9e7  
    8484
    8585int
    86 BSP_i2c_initialize()
     86BSP_i2c_initialize(void)
    8787{
    8888int busno, succ = 0;
  • c/src/lib/libbsp/powerpc/mvme3100/i2c/mpc8540_i2c.c

    r32cf3525 r6771a9e7  
    101101static rtems_id syncsem = 0;
    102102
    103 static inline int ok_to_block()
     103static inline int ok_to_block(void)
    104104{
    105105        return syncsem && _System_state_Is_up( _System_state_Get() );
     
    255255
    256256static void
    257 rd1byte_noack()
     257rd1byte_noack(void)
    258258{
    259259uint8_t dum;
  • c/src/lib/libbsp/powerpc/mvme3100/irq/irq_init.c

    r32cf3525 r6771a9e7  
    2929#include <rtems/bspIo.h>
    3030
    31 static void nop_func()
     31static void nop_func(void)
    3232{
    3333        printk("Unhandled IRQ\n");
  • c/src/lib/libbsp/powerpc/mvme3100/network/tsec.c

    r32cf3525 r6771a9e7  
    421421
    422422#ifdef __PPC__
    423 static inline void membarrier()
     423static inline void membarrier(void)
    424424{
    425425        asm volatile("sync":::"memory");
  • c/src/lib/libbsp/powerpc/mvme3100/pci/detect_host_bridge.c

    r32cf3525 r6771a9e7  
    7676}
    7777
    78 void detect_host_bridge()
     78void detect_host_bridge(void)
    7979{
    8080  OpenPIC = (volatile struct OpenPIC *) (BSP_8540_CCSR_BASE + BSP_OPEN_PIC_BASE_OFFSET);
     
    109109
    110110void
    111 BSP_pciConfigDump_early()
     111BSP_pciConfigDump_early(void)
    112112{
    113113        printk("BUS:SLOT:FUN  VENDOR-DEV_ID: COMMAND STATUS BASE_ADDR0 BASE_ADDR1 IRQ_PIN -> IRQ_LINE\n");
  • c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c

    r32cf3525 r6771a9e7  
    5050extern unsigned long __rtems_end[];
    5151extern void          bsp_cleanup(void);
    52 extern void                      BSP_vme_config();
     52extern void                      BSP_vme_config(void);
    5353
    5454SPR_RW(SPRG1)
  • c/src/lib/libbsp/powerpc/mvme5500/GT64260/GT64260TWSI.c

    r32cf3525 r6771a9e7  
    5959
    6060/* return the interrupt flag */
    61 int GT64260TWSIintFlag()
     61int GT64260TWSIintFlag(void)
    6262{
    6363  unsigned int loop;
     
    7171}
    7272
    73 int GT64260TWSIstop()
     73int GT64260TWSIstop(void)
    7474{
    7575
     
    9696}
    9797
    98 int GT64260TWSIstart()
     98int GT64260TWSIstart(void)
    9999{
    100100  unsigned int loop;   
  • c/src/lib/libbsp/powerpc/mvme5500/irq/irq_init.c

    r32cf3525 r6771a9e7  
    2525 * default on/off function
    2626 */
    27 static void nop_func(){}
     27static void nop_func(void){}
    2828/*
    2929 * default isOn function
    3030 */
    31 static int not_connected() {return 0;}
     31static int not_connected(void) {return 0;}
    3232/*
    3333 * default possible isOn function
    3434 */
    35 static int connected() {return 1;}
     35static int connected(void) {return 1;}
    3636
    3737static rtems_irq_connect_data           rtemsIrq[BSP_IRQ_NUMBER];
  • c/src/lib/libbsp/powerpc/mvme5500/network/if_100MHz/GT64260eth.c

    r32cf3525 r6771a9e7  
    126126static void GTeth_rxprio_setup(struct GTeth_softc *sc);
    127127static void GTeth_rx_stop(struct GTeth_softc *dc);
    128 static void GT64260eth_isr();
     128static void GT64260eth_isr(void);
    129129static int GTeth_hash_compute(struct GTeth_softc *sc,unsigned char eaddr[ETHER_ADDR_LEN]);
    130130static int GTeth_hash_entry_op(struct GTeth_softc *sc, enum GTeth_hash_op op,
     
    159159}
    160160
    161 static void GT64260eth_isr()
     161static void GT64260eth_isr(void)
    162162{
    163163  struct GTeth_softc *sc = root_GT64260eth_dev;
  • c/src/lib/libbsp/powerpc/mvme5500/network/if_1GHz/if_wm.c

    r32cf3525 r6771a9e7  
    235235static void wm_set_filter(struct wm_softc *sc);
    236236
    237 static void i82544EI_isr();
     237static void i82544EI_isr(void);
    238238static void i82544EI_sendpacket(struct wm_softc *sc, struct mbuf *m);
    239 extern int  pci_mem_find(), pci_io_find(), pci_get_capability();
    240 extern char * ether_sprintf1();
     239extern int  pci_mem_find(), pci_io_find(), pci_get_capability(void);
     240extern char * ether_sprintf1(void);
    241241
    242242static void i82544EI_irq_on(const rtems_irq_connect_data *irq)
  • c/src/lib/libbsp/powerpc/mvme5500/pci/pci.c

    r32cf3525 r6771a9e7  
    1313 *  found in the file LICENSE in this distribution or at
    1414 *  http://www.rtems.com/rtems/license.html.
    15  *
    16  *  pci.c,v 1.2 2002/05/14 17:10:16 joel Exp
    1715 *
    1816 *  Copyright 2004, Brookhaven National Laboratory and
     
    6361
    6462static int                numPCIDevs=0;
    65 extern void pci_interface();
     63extern void pci_interface(void);
    6664
    6765/* Pack RegNum,FuncNum,DevNum,BusNum,and ConfigEnable for
     
    248246 *
    249247 */
    250 int pci_initialize()
     248int pci_initialize(void)
    251249{
    252250  int deviceFound;
  • c/src/lib/libbsp/powerpc/mvme5500/pci/pci_interface.c

    r32cf3525 r6771a9e7  
    8787#define ADDR_PIPELINE 0x00020000
    8888
    89 void  pciAccessInit();
     89void  pciAccessInit(void);
    9090
    91 void pci_interface()
     91void pci_interface(void)
    9292{
    9393
     
    108108/* Use MOTLoad default for Writeback Priority and Buffer Depth
    109109 */
    110 void pciAccessInit()
     110void pciAccessInit(void)
    111111{
    112112  unsigned int PciLocal, data;
  • c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c

    r32cf3525 r6771a9e7  
    6666BSP_output_char_function_type BSP_output_char = BSP_output_char_via_serial;
    6767
    68 extern void _return_to_ppcbug();
     68extern void _return_to_ppcbug(void);
    6969extern unsigned long __rtems_end[];
    70 extern unsigned get_L1CR(), get_L2CR(), get_L3CR();
     70extern unsigned get_L1CR(void), get_L2CR(void), get_L3CR(void);
    7171extern void bsp_cleanup(void);
    72 extern Triv121PgTbl BSP_pgtbl_setup();
    73 extern void BSP_pgtbl_activate();
    74 extern int I2Cread_eeprom();
     72extern Triv121PgTbl BSP_pgtbl_setup(unsigned long);
     73extern void BSP_pgtbl_activate(Triv121PgTbl);
     74extern int I2Cread_eeprom(unsigned char I2cBusAddr, uint32_t devA2A1A0, uint32_t AddrBytes, unsigned char *pBuff, uint32_t numBytes);
    7575extern void BSP_vme_config(void);
    7676
  • c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c

    r32cf3525 r6771a9e7  
    6161#define SRR1_MCP_EXC    (1<<(31-12))
    6262
    63 void
    64 BSP_printStackTrace();
    65 
    66 
    67 void
     63extern void
     64BSP_printStackTrace(BSP_Exception_frame* excPtr);
     65
     66
     67extern void
    6868rtemsReboot(void);
    6969
  • c/src/lib/libbsp/powerpc/score603e/irq/FPGA.c

    r32cf3525 r6771a9e7  
    88 *  http://www.rtems.com/license/LICENSE.
    99 *
    10  *  $Id:
     10 *  $Id$
    1111 */
    1212
     
    2323 *  initialize FPGA
    2424 */
    25 void initialize_PCI_bridge ()
     25void initialize_PCI_bridge (void)
    2626{
    2727#if (!SCORE603E_USE_DINK)
     
    5353}
    5454
    55 uint16_t         get_irq_mask()
     55uint16_t         get_irq_mask(voi)
    5656{
    5757  uint16_t          *loc;
     
    9191}
    9292
    93 void init_irq_data_register()
     93void init_irq_data_register(void)
    9494{
    9595  uint32_t         index;
     
    149149}
    150150
    151 uint16_t         read_and_clear_irq()
     151uint16_t         read_and_clear_irq(void)
    152152{
    153153  uint16_t            irq;
  • c/src/lib/libbsp/powerpc/score603e/irq/irq_init.c

    r32cf3525 r6771a9e7  
    4040
    4141extern unsigned int external_exception_vector_prolog_code_size[];
    42 extern void external_exception_vector_prolog_code();
     42extern void external_exception_vector_prolog_code(void);
    4343extern unsigned int decrementer_exception_vector_prolog_code_size[];
    44 extern void decrementer_exception_vector_prolog_code();
     44extern void decrementer_exception_vector_prolog_code(void);
    4545
    4646/*
    4747 * default on/off function
    4848 */
    49 static void nop_func(){}
     49static void nop_func(void){}
    5050/*
    5151 * default isOn function
    5252 */
    53 static int not_connected() {return 0;}
     53static int not_connected(void) {return 0;}
    5454/*
    5555 * default possible isOn function
    5656 */
    57 static int connected() {return 1;}
     57static int connected(void) {return 1;}
    5858
    5959static rtems_irq_connect_data           rtemsIrq[BSP_IRQ_NUMBER];
  • c/src/lib/libbsp/powerpc/score603e/pci/no_host_bridge.c

    r32cf3525 r6771a9e7  
    11/*
    22 *  detect_host_bridge.c
     3 *
     4 * $Id$
    35 */
    46                                                                               
     
    1921 */
    2022
    21 void detect_host_bridge()
     23void detect_host_bridge(void)
    2224{
    2325}
  • c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c

    r32cf3525 r6771a9e7  
    11/*  Hwr_init.c
    22 *
    3  *  $Id:
     3 *  $Id$
    44 */
    55
     
    7070}Harris_RTC;
    7171
    72 void init_RTC()
     72void init_RTC(void)
    7373{
    7474  volatile Harris_RTC *the_RTC;
     
    7979}
    8080
    81 void init_PCI()
     81void init_PCI(void)
    8282{
    8383#if (SCORE603E_USE_SDS) | (SCORE603E_USE_OPEN_FIRMWARE) | (SCORE603E_USE_NONE)
  • c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c

    r32cf3525 r6771a9e7  
    5151
    5252/* XXX */
    53 void init_irq_data_register();
     53void init_irq_data_register(void);
    5454
    55 void initialize_external_exception_vector ()
     55void initialize_external_exception_vector (void)
    5656{
    5757  int i;
  • c/src/lib/libbsp/powerpc/shared/flash/flash.c

    r32cf3525 r6771a9e7  
    133133/* 'flush' input buffer and get an upper-case char from stdin */
    134134STATIC int
    135 getUc()
     135getUc(void)
    136136{
    137137        fseek(stdin, 0, SEEK_END);
  • c/src/lib/libbsp/powerpc/shared/irq/irq_init.c

    r32cf3525 r6771a9e7  
    5050/*
    5151 * default possible isOn function
    52 static int connected() {return 1;}
     52static int connected(void) {return 1;}
    5353 */
    5454
  • c/src/lib/libbsp/powerpc/virtex/console/consolelite.c

    r32cf3525 r6771a9e7  
    357357}
    358358
    359 char inputChar()
     359char inputChar(void)
    360360{
    361361   return (char)xlite_read_polled(0);
  • c/src/lib/libbsp/powerpc/virtex/opbintctrl/opbintctrl.c

    r32cf3525 r6771a9e7  
    3838 * Retrieve contents of Interrupt Pending Register
    3939 */
    40 RTEMS_INLINE_ROUTINE uint32_t get_ipr()
     40RTEMS_INLINE_ROUTINE uint32_t get_ipr(void)
    4141{
    4242  uint32_t c = *((volatile uint32_t *) (OPB_INTC_BASE + OPB_INTC_IPR));
Note: See TracChangeset for help on using the changeset viewer.