diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-16 13:11:58 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-19 17:00:56 -0500 |
commit | 9b7631105c1b0434b3b67c2cdfc13dac70bfe3e1 (patch) | |
tree | 1f948b4145d7834e36ae9859582c393fa5718f75 /c/src/lib/libbsp/powerpc/mvme3100/include/bsp.h | |
parent | powerpc/shared/startup/probeMemEnd.c: Fix warning (diff) | |
download | rtems-9b7631105c1b0434b3b67c2cdfc13dac70bfe3e1.tar.bz2 |
powerpc/mvme3100: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mvme3100/include/bsp.h')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme3100/include/bsp.h | 46 |
1 files changed, 30 insertions, 16 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme3100/include/bsp.h b/c/src/lib/libbsp/powerpc/mvme3100/include/bsp.h index a5ab7761ab..62992398fd 100644 --- a/c/src/lib/libbsp/powerpc/mvme3100/include/bsp.h +++ b/c/src/lib/libbsp/powerpc/mvme3100/include/bsp.h @@ -7,7 +7,6 @@ */ /* - * * Copyright (C) 1999 Eric Valette. valette@crf.canon.fr * * The license and distribution terms for this file may be @@ -19,6 +18,8 @@ #ifndef _BSP_H #define _BSP_H +#ifndef ASM + #include <bspopts.h> #include <bsp/default-initial-extension.h> @@ -176,8 +177,7 @@ extern "C" { * /dev/i2c0.ds1375-raw (read-write; transfer bytes to/from the ds1375) * */ -int -BSP_i2c_initialize(); +int BSP_i2c_initialize(void); /* System Control Register */ #define BSP_MVME3100_SYS_CR ((volatile uint8_t *)0xe2000001) @@ -213,8 +213,7 @@ BSP_i2c_initialize(); * any changes this call may be used * to read the current status w/o modifying it. */ -uint8_t -BSP_setSysReg(volatile uint8_t *r, uint8_t mask); +uint8_t BSP_setSysReg(volatile uint8_t *r, uint8_t mask); /* Atomically clear bits in a sys-register; The bits set in 'mask' * are cleared in the register; others are left unmodified. @@ -226,22 +225,19 @@ BSP_setSysReg(volatile uint8_t *r, uint8_t mask); * to read the current status w/o modifying it. */ -uint8_t -BSP_clrSysReg(volatile uint8_t *r, uint8_t mask); +uint8_t BSP_clrSysReg(volatile uint8_t *r, uint8_t mask); /* Convenience wrappers around BSP_setSysReg()/BSP_clrSysReg() */ /* Set write-protection for all EEPROM devices * RETURNS: old status */ -uint8_t -BSP_eeprom_write_protect(); +uint8_t BSP_eeprom_write_protect(void); /* Disengage write-protection for all EEPROM devices * RETURNS: old status */ -uint8_t -BSP_eeprom_write_enable(); +uint8_t BSP_eeprom_write_enable(void); /* Set LEDs that have their bit set in the mask * @@ -251,8 +247,7 @@ BSP_eeprom_write_enable(); * any changes this call may be used * to read the current status w/o modifying it. */ -uint8_t -BSP_setLEDs(uint8_t mask); +uint8_t BSP_setLEDs(uint8_t mask); /* Clear LEDs that have their bit set in the mask * @@ -260,8 +255,7 @@ BSP_setLEDs(uint8_t mask); * * NOTE: : see above (BSP_setLEDs) */ -uint8_t -BSP_clrLEDs(uint8_t mask); +uint8_t BSP_clrLEDs(uint8_t mask); #if 0 #define outport_byte(port,value) outb(value,port) @@ -314,7 +308,7 @@ extern int BSP_connect_clock_handler (void); * on PCI config space access to empty slots. */ extern unsigned long _BSP_clear_hostbridge_errors(int enableMCP, int quiet); -extern void BSP_motload_pci_fixup(); +extern void BSP_motload_pci_fixup(void); struct rtems_bsdnet_ifconfig; @@ -324,8 +318,28 @@ rtems_tsec_attach(struct rtems_bsdnet_ifconfig *ifcfg, int attaching); #define RTEMS_BSP_NETWORK_DRIVER_NAME "tse1" #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_tsec_attach +/* + * Prototypes for methods called only from .S for dependency tracking + */ +char *save_boot_params( + void *r3, + void *r4, + void *r5, + char *cmdline_start, + char *cmdline_end +); +void zero_bss(void); + +/* + * Prototypes for methods in the BSP that cross file boundaries + */ +extern void BSP_vme_config(void); +extern void BSP_pciConfigDump_early( void ); + #ifdef __cplusplus } #endif +#endif /* !ASM */ + #endif |