forked from Imagelibrary/rtems
Add missing prototypes.
This commit is contained in:
@@ -83,7 +83,7 @@ safe_perror(const char *s)
|
||||
|
||||
|
||||
int
|
||||
BSP_i2c_initialize()
|
||||
BSP_i2c_initialize(void)
|
||||
{
|
||||
int busno, succ = 0;
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ SPR_RO(TBRL)
|
||||
*/
|
||||
static rtems_id syncsem = 0;
|
||||
|
||||
static inline int ok_to_block()
|
||||
static inline int ok_to_block(void)
|
||||
{
|
||||
return syncsem && _System_state_Is_up( _System_state_Get() );
|
||||
}
|
||||
@@ -254,7 +254,7 @@ rtems_status_code sc;
|
||||
*/
|
||||
|
||||
static void
|
||||
rd1byte_noack()
|
||||
rd1byte_noack(void)
|
||||
{
|
||||
uint8_t dum;
|
||||
uint8_t ccr;
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <libcpu/raw_exception.h>
|
||||
#include <rtems/bspIo.h>
|
||||
|
||||
static void nop_func()
|
||||
static void nop_func(void)
|
||||
{
|
||||
printk("Unhandled IRQ\n");
|
||||
}
|
||||
|
||||
@@ -420,7 +420,7 @@ void tsec_dump_rring(struct tsec_private *mp);
|
||||
/********** Memory Barriers *********************/
|
||||
|
||||
#ifdef __PPC__
|
||||
static inline void membarrier()
|
||||
static inline void membarrier(void)
|
||||
{
|
||||
asm volatile("sync":::"memory");
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ void BSP_motload_pci_fixup()
|
||||
BSP_pciScan(0, fixup_irq_line, 0);
|
||||
}
|
||||
|
||||
void detect_host_bridge()
|
||||
void detect_host_bridge(void)
|
||||
{
|
||||
OpenPIC = (volatile struct OpenPIC *) (BSP_8540_CCSR_BASE + BSP_OPEN_PIC_BASE_OFFSET);
|
||||
}
|
||||
@@ -108,7 +108,7 @@ dump_dev_cb(
|
||||
}
|
||||
|
||||
void
|
||||
BSP_pciConfigDump_early()
|
||||
BSP_pciConfigDump_early(void)
|
||||
{
|
||||
printk("BUS:SLOT:FUN VENDOR-DEV_ID: COMMAND STATUS BASE_ADDR0 BASE_ADDR1 IRQ_PIN -> IRQ_LINE\n");
|
||||
BSP_pciScan(0, dump_dev_cb, 0);
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
extern unsigned long __rtems_end[];
|
||||
extern void bsp_cleanup(void);
|
||||
extern void BSP_vme_config();
|
||||
extern void BSP_vme_config(void);
|
||||
|
||||
SPR_RW(SPRG1)
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ void GT64260TWSIinit()
|
||||
}
|
||||
|
||||
/* return the interrupt flag */
|
||||
int GT64260TWSIintFlag()
|
||||
int GT64260TWSIintFlag(void)
|
||||
{
|
||||
unsigned int loop;
|
||||
|
||||
@@ -70,7 +70,7 @@ int GT64260TWSIintFlag()
|
||||
return(0);
|
||||
}
|
||||
|
||||
int GT64260TWSIstop()
|
||||
int GT64260TWSIstop(void)
|
||||
{
|
||||
|
||||
#if TWSI_DEBUG
|
||||
@@ -95,7 +95,7 @@ int GT64260TWSIstop()
|
||||
return(-1);
|
||||
}
|
||||
|
||||
int GT64260TWSIstart()
|
||||
int GT64260TWSIstart(void)
|
||||
{
|
||||
unsigned int loop;
|
||||
unsigned int status;
|
||||
|
||||
@@ -24,15 +24,15 @@
|
||||
/*
|
||||
* 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;}
|
||||
static int connected(void) {return 1;}
|
||||
|
||||
static rtems_irq_connect_data rtemsIrq[BSP_IRQ_NUMBER];
|
||||
static rtems_irq_global_settings initial_config;
|
||||
|
||||
@@ -125,7 +125,7 @@ static int GT64260eth_rx(struct GTeth_softc *sc);
|
||||
static void GTeth_rx_setup(struct GTeth_softc *sc);
|
||||
static void GTeth_rxprio_setup(struct GTeth_softc *sc);
|
||||
static void GTeth_rx_stop(struct GTeth_softc *dc);
|
||||
static void GT64260eth_isr();
|
||||
static void GT64260eth_isr(void);
|
||||
static int GTeth_hash_compute(struct GTeth_softc *sc,unsigned char eaddr[ETHER_ADDR_LEN]);
|
||||
static int GTeth_hash_entry_op(struct GTeth_softc *sc, enum GTeth_hash_op op,
|
||||
enum GTeth_rxprio prio,unsigned char eaddr[ETHER_ADDR_LEN]);
|
||||
@@ -158,7 +158,7 @@ static int GT64260eth_irq_is_on(const rtems_irq_connect_data *irq)
|
||||
return(inl(ETH0_EICR) & ETH_IR_EtherIntSum);
|
||||
}
|
||||
|
||||
static void GT64260eth_isr()
|
||||
static void GT64260eth_isr(void)
|
||||
{
|
||||
struct GTeth_softc *sc = root_GT64260eth_dev;
|
||||
rtems_event_set events=0;
|
||||
|
||||
@@ -234,10 +234,10 @@ static int wm_read_eeprom(struct wm_softc *sc,int word,int wordcnt, uint16_t *d
|
||||
static void i82544EI_daemon(void *arg);
|
||||
static void wm_set_filter(struct wm_softc *sc);
|
||||
|
||||
static void i82544EI_isr();
|
||||
static void i82544EI_isr(void);
|
||||
static void i82544EI_sendpacket(struct wm_softc *sc, struct mbuf *m);
|
||||
extern int pci_mem_find(), pci_io_find(), pci_get_capability();
|
||||
extern char * ether_sprintf1();
|
||||
extern int pci_mem_find(), pci_io_find(), pci_get_capability(void);
|
||||
extern char * ether_sprintf1(void);
|
||||
|
||||
static void i82544EI_irq_on(const rtems_irq_connect_data *irq)
|
||||
{
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/rtems/license.html.
|
||||
*
|
||||
* pci.c,v 1.2 2002/05/14 17:10:16 joel Exp
|
||||
*
|
||||
* Copyright 2004, Brookhaven National Laboratory and
|
||||
* Shuchen K. Feng, <feng1@bnl.gov>, 2004
|
||||
* - modified and added support for MVME5500 board
|
||||
@@ -62,7 +60,7 @@
|
||||
#define pci BSP_pci_configuration
|
||||
|
||||
static int numPCIDevs=0;
|
||||
extern void pci_interface();
|
||||
extern void pci_interface(void);
|
||||
|
||||
/* Pack RegNum,FuncNum,DevNum,BusNum,and ConfigEnable for
|
||||
* PCI Configuration Address Register
|
||||
@@ -247,7 +245,7 @@ pci_config BSP_pci_configuration = {(volatile unsigned char*) PCI_CONFIG_ADDR,
|
||||
* it's not used.
|
||||
*
|
||||
*/
|
||||
int pci_initialize()
|
||||
int pci_initialize(void)
|
||||
{
|
||||
int deviceFound;
|
||||
unsigned char ucBusNumber, ucSlotNumber, ucFnNumber, ucNumFuncs;
|
||||
|
||||
@@ -86,9 +86,9 @@
|
||||
|
||||
#define ADDR_PIPELINE 0x00020000
|
||||
|
||||
void pciAccessInit();
|
||||
void pciAccessInit(void);
|
||||
|
||||
void pci_interface()
|
||||
void pci_interface(void)
|
||||
{
|
||||
|
||||
#ifdef PCI_DEADLOCK
|
||||
@@ -107,7 +107,7 @@ void pci_interface()
|
||||
}
|
||||
/* Use MOTLoad default for Writeback Priority and Buffer Depth
|
||||
*/
|
||||
void pciAccessInit()
|
||||
void pciAccessInit(void)
|
||||
{
|
||||
unsigned int PciLocal, data;
|
||||
|
||||
|
||||
@@ -65,13 +65,13 @@
|
||||
|
||||
BSP_output_char_function_type BSP_output_char = BSP_output_char_via_serial;
|
||||
|
||||
extern void _return_to_ppcbug();
|
||||
extern void _return_to_ppcbug(void);
|
||||
extern unsigned long __rtems_end[];
|
||||
extern unsigned get_L1CR(), get_L2CR(), get_L3CR();
|
||||
extern unsigned get_L1CR(void), get_L2CR(void), get_L3CR(void);
|
||||
extern void bsp_cleanup(void);
|
||||
extern Triv121PgTbl BSP_pgtbl_setup();
|
||||
extern void BSP_pgtbl_activate();
|
||||
extern int I2Cread_eeprom();
|
||||
extern Triv121PgTbl BSP_pgtbl_setup(unsigned long);
|
||||
extern void BSP_pgtbl_activate(Triv121PgTbl);
|
||||
extern int I2Cread_eeprom(unsigned char I2cBusAddr, uint32_t devA2A1A0, uint32_t AddrBytes, unsigned char *pBuff, uint32_t numBytes);
|
||||
extern void BSP_vme_config(void);
|
||||
|
||||
uint32_t bsp_clicks_per_usec;
|
||||
|
||||
@@ -60,11 +60,11 @@
|
||||
#define SRR1_TEA_EXC (1<<(31-13))
|
||||
#define SRR1_MCP_EXC (1<<(31-12))
|
||||
|
||||
void
|
||||
BSP_printStackTrace();
|
||||
extern void
|
||||
BSP_printStackTrace(BSP_Exception_frame* excPtr);
|
||||
|
||||
|
||||
void
|
||||
extern void
|
||||
rtemsReboot(void);
|
||||
|
||||
static volatile BSP_ExceptionExtension BSP_exceptionExtension = 0;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id:
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
@@ -22,7 +22,7 @@
|
||||
/*
|
||||
* initialize FPGA
|
||||
*/
|
||||
void initialize_PCI_bridge ()
|
||||
void initialize_PCI_bridge (void)
|
||||
{
|
||||
#if (!SCORE603E_USE_DINK)
|
||||
uint16_t mask, shift, data;
|
||||
@@ -52,7 +52,7 @@ void set_irq_mask(
|
||||
*loc = value;
|
||||
}
|
||||
|
||||
uint16_t get_irq_mask()
|
||||
uint16_t get_irq_mask(voi)
|
||||
{
|
||||
uint16_t *loc;
|
||||
uint16_t value;
|
||||
@@ -90,7 +90,7 @@ void unmask_irq(
|
||||
set_irq_mask( value );
|
||||
}
|
||||
|
||||
void init_irq_data_register()
|
||||
void init_irq_data_register(void)
|
||||
{
|
||||
uint32_t index;
|
||||
uint32_t i;
|
||||
@@ -148,7 +148,7 @@ rtems_boolean Is_PMC_IRQ(
|
||||
return result;
|
||||
}
|
||||
|
||||
uint16_t read_and_clear_irq()
|
||||
uint16_t read_and_clear_irq(void)
|
||||
{
|
||||
uint16_t irq;
|
||||
|
||||
|
||||
@@ -39,22 +39,22 @@ pci_isa_bridge_device* via_82c586 = 0;
|
||||
static pci_isa_bridge_device bridge;
|
||||
|
||||
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);
|
||||
|
||||
/*
|
||||
* 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;}
|
||||
static int connected(void) {return 1;}
|
||||
|
||||
static rtems_irq_connect_data rtemsIrq[BSP_IRQ_NUMBER];
|
||||
static rtems_irq_global_settings initial_config;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
/*
|
||||
* detect_host_bridge.c
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <libcpu/io.h>
|
||||
@@ -18,6 +20,6 @@
|
||||
* Open PIC device is built into the processor chip.
|
||||
*/
|
||||
|
||||
void detect_host_bridge()
|
||||
void detect_host_bridge(void)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* Hwr_init.c
|
||||
*
|
||||
* $Id:
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
@@ -69,7 +69,7 @@ typedef struct {
|
||||
uint32_t command_register;
|
||||
}Harris_RTC;
|
||||
|
||||
void init_RTC()
|
||||
void init_RTC(void)
|
||||
{
|
||||
volatile Harris_RTC *the_RTC;
|
||||
|
||||
@@ -78,7 +78,7 @@ void init_RTC()
|
||||
the_RTC->command_register = 0x0;
|
||||
}
|
||||
|
||||
void init_PCI()
|
||||
void init_PCI(void)
|
||||
{
|
||||
#if (SCORE603E_USE_SDS) | (SCORE603E_USE_OPEN_FIRMWARE) | (SCORE603E_USE_NONE)
|
||||
uint32_t value;
|
||||
|
||||
@@ -50,9 +50,9 @@ typedef struct
|
||||
rtems_chain_control ISR_Array [NUM_LIRQ];
|
||||
|
||||
/* XXX */
|
||||
void init_irq_data_register();
|
||||
void init_irq_data_register(void);
|
||||
|
||||
void initialize_external_exception_vector ()
|
||||
void initialize_external_exception_vector (void)
|
||||
{
|
||||
int i;
|
||||
rtems_isr_entry previous_isr;
|
||||
|
||||
@@ -132,7 +132,7 @@ rd_par(struct bankdesc *b, union bconv *pv, uint32_t a)
|
||||
|
||||
/* 'flush' input buffer and get an upper-case char from stdin */
|
||||
STATIC int
|
||||
getUc()
|
||||
getUc(void)
|
||||
{
|
||||
fseek(stdin, 0, SEEK_END);
|
||||
return toupper(getchar());
|
||||
|
||||
@@ -49,7 +49,7 @@ static void nop_func(void){}
|
||||
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];
|
||||
|
||||
@@ -356,7 +356,7 @@ void outputChar(char ch)
|
||||
xlite_write_char_polled( 0, ch );
|
||||
}
|
||||
|
||||
char inputChar()
|
||||
char inputChar(void)
|
||||
{
|
||||
return (char)xlite_read_polled(0);
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ RTEMS_INLINE_ROUTINE void set_ier(uint32_t mask)
|
||||
/*
|
||||
* Retrieve contents of Interrupt Pending Register
|
||||
*/
|
||||
RTEMS_INLINE_ROUTINE uint32_t get_ipr()
|
||||
RTEMS_INLINE_ROUTINE uint32_t get_ipr(void)
|
||||
{
|
||||
uint32_t c = *((volatile uint32_t *) (OPB_INTC_BASE + OPB_INTC_IPR));
|
||||
return c;
|
||||
|
||||
Reference in New Issue
Block a user