Changeset 9b763110 in rtems


Ignore:
Timestamp:
Oct 16, 2014, 6:11:58 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
2cb449d
Parents:
6c6a21c
git-author:
Joel Sherrill <joel.sherrill@…> (10/16/14 18:11:58)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/19/14 22:00:56)
Message:

powerpc/mvme3100: Fix warnings

Location:
c/src/lib/libbsp/powerpc/mvme3100
Files:
4 edited

Legend:

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

    r6c6a21c r9b763110  
    6666#include "mpc8540_i2c_busdrv.h"
    6767
    68 #define STATIC
     68#define STATIC static
    6969
    7070/* I2C controller register definitions */
  • c/src/lib/libbsp/powerpc/mvme3100/include/bsp.h

    r6c6a21c r9b763110  
    88
    99/*
    10  *
    1110 *  Copyright (C) 1999 Eric Valette. valette@crf.canon.fr
    1211 *
     
    1918#ifndef _BSP_H
    2019#define _BSP_H
     20
     21#ifndef ASM
    2122
    2223#include <bspopts.h>
     
    177178 *
    178179 */
    179 int
    180 BSP_i2c_initialize();
     180int BSP_i2c_initialize(void);
    181181
    182182/* System Control Register */
     
    214214 *          to read the current status w/o modifying it.
    215215 */
    216 uint8_t
    217 BSP_setSysReg(volatile uint8_t *r, uint8_t mask);
     216uint8_t BSP_setSysReg(volatile uint8_t *r, uint8_t mask);
    218217
    219218/* Atomically clear bits in a sys-register; The bits set in 'mask'
     
    227226 */
    228227
    229 uint8_t
    230 BSP_clrSysReg(volatile uint8_t *r, uint8_t mask);
     228uint8_t BSP_clrSysReg(volatile uint8_t *r, uint8_t mask);
    231229
    232230/* Convenience wrappers around BSP_setSysReg()/BSP_clrSysReg() */
     
    235233 * RETURNS: old status
    236234 */
    237 uint8_t
    238 BSP_eeprom_write_protect();
     235uint8_t BSP_eeprom_write_protect(void);
    239236
    240237/* Disengage write-protection for all EEPROM devices
    241238 * RETURNS: old status
    242239 */
    243 uint8_t
    244 BSP_eeprom_write_enable();
     240uint8_t BSP_eeprom_write_enable(void);
    245241
    246242/* Set LEDs that have their bit set in the mask
     
    252248 *          to read the current status w/o modifying it.
    253249 */
    254 uint8_t
    255 BSP_setLEDs(uint8_t mask);
     250uint8_t BSP_setLEDs(uint8_t mask);
    256251
    257252/* Clear LEDs that have their bit set in the mask
     
    261256 * NOTE:  : see above (BSP_setLEDs)
    262257 */
    263 uint8_t
    264 BSP_clrLEDs(uint8_t mask);
     258uint8_t BSP_clrLEDs(uint8_t mask);
    265259
    266260#if 0
     
    315309 */
    316310extern unsigned long _BSP_clear_hostbridge_errors(int enableMCP, int quiet);
    317 extern void BSP_motload_pci_fixup();
     311extern void BSP_motload_pci_fixup(void);
    318312
    319313struct rtems_bsdnet_ifconfig;
     
    324318#define RTEMS_BSP_NETWORK_DRIVER_NAME   "tse1"
    325319#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_tsec_attach
     320
     321/*
     322 * Prototypes for methods called only from .S for dependency tracking
     323 */
     324char *save_boot_params(
     325  void *r3,
     326  void *r4,
     327  void *r5,
     328  char *cmdline_start,
     329  char *cmdline_end
     330);
     331void zero_bss(void);
     332
     333/*
     334 * Prototypes for methods in the BSP that cross file boundaries
     335 */
     336extern void BSP_vme_config(void);
     337extern void BSP_pciConfigDump_early( void );
    326338
    327339#ifdef __cplusplus
     
    329341#endif
    330342
     343#endif /* !ASM */
     344
    331345#endif
  • c/src/lib/libbsp/powerpc/mvme3100/startup/bspstart.c

    r6c6a21c r9b763110  
    4848
    4949extern unsigned long __rtems_end[];
    50 extern void          BSP_vme_config(void);
    51 extern void          BSP_pciConfigDump_early( void );
    5250extern unsigned      ppc_exc_lock_std, ppc_exc_gpr3_std;
    5351
     
    124122 *  Use the shared implementations of the following routines
    125123 */
    126 char * save_boot_params(
    127   void* r3,
     124char *save_boot_params(
     125  void *r3,
    128126  void *r4,
    129   void* r5,
    130   char *additional_boot_options)
    131 {
    132 
    133   strncpy(cmdline_buf, additional_boot_options, CMDLINE_BUF_SIZE);
     127  void *r5,
     128  char *cmdline_start,
     129  char *cmdline_end
     130)
     131{
     132
     133  strncpy(cmdline_buf, cmdline_start, CMDLINE_BUF_SIZE);
    134134  cmdline_buf[CMDLINE_BUF_SIZE - 1] ='\0';
    135135  return cmdline_buf;
  • c/src/lib/libbsp/powerpc/mvme3100/vme/VMEConfig.h

    r6c6a21c r9b763110  
    105105 */
    106106
     107extern int BSP_VMEInit(void);
     108extern int BSP_VMEIrqMgrInstall(void);
     109
    107110/**
    108111 *  @defgroup powerpc_vme BSP_VME_INSTALL_IRQ_MGR Support
     
    112115 *  @brief BSP_VME_INSTALL_IRQ_MGR Support Package
    113116 */
    114 
    115117#define BSP_VME_INSTALL_IRQ_MGR(err)    \
    116118        do {                                \
Note: See TracChangeset for help on using the changeset viewer.