Changeset d4ab6611 in rtems


Ignore:
Timestamp:
Oct 15, 2014, 7:21:20 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
3cdc08c
Parents:
0626dba
git-author:
Joel Sherrill <joel.sherrill@…> (10/15/14 19:21:20)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/16/14 13:58:49)
Message:

powerpc/score603e: Fix warnings

Location:
c/src/lib/libbsp/powerpc/score603e
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/score603e/PCI_bus/PCI.c

    r0626dba rd4ab6611  
    11/*
    2  *
    3  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2014.
    43 *  On-Line Applications Research Corporation (OAR).
    54 *
     
    2625 * not work correctly.
    2726 */
    28 void PCI_bus_delay (void)
     27static void PCI_bus_delay (void)
    2928{
    30   __asm__ ("    nop");
    31   __asm__ (" nop");
     29  __asm__ volatile ("nop");
     30  __asm__ volatile ("nop");
    3231}
    3332
     
    4443}
    4544
    46 uint32_t         PCI_bus_read(
     45uint32_t PCI_bus_read(
    4746  volatile uint32_t         *  _addr                  /* IN */
    4847)
     
    5857 * devices registers on the PCI bus.  i.e.: Universe, Ethernet & PMC.
    5958 */
    60 
    61 uint32_t         Read_pci_device_register(
     59uint32_t Read_pci_device_register(
    6260  uint32_t         address
    6361)
  • c/src/lib/libbsp/powerpc/score603e/PCI_bus/flash.c

    r0626dba rd4ab6611  
    6161}
    6262
     63#if 0
    6364unsigned int SCORE603e_FLASH_pci_reset_reg(
    6465  uint8_t          reg,
     
    8081  return RTEMS_SUCCESSFUL;
    8182}
     83#endif
    8284
    8385/*
  • c/src/lib/libbsp/powerpc/score603e/PCI_bus/universe.c

    r0626dba rd4ab6611  
    1616#include <bsp.h>
    1717#include "PCI.h"
    18 
    19 /********************************************************************
    20  ********************************************************************
    21  *********                                                  *********
    22  *********                  Prototypes                      *********
    23  *********                                                  *********
    24  ********************************************************************
    25  ********************************************************************/
    26 
    27 /********************************************************************
    28  ********************************************************************
    29  *********                                                  *********
    30  *********                                                  *********
    31  *********                                                  *********
    32  ********************************************************************
    33  ********************************************************************/
    3418
    3519typedef struct {
     
    154138 * a complete SCORE603e VME initialization is required.
    155139 */
    156 
    157140void initialize_universe(void)
    158141{
     
    228211 * Gets the VME base address
    229212 */
    230 uint32_t        get_vme_base_address (void)
     213static uint32_t get_vme_base_address (void)
    231214{
    232215  volatile uint32_t         temp;
     
    237220}
    238221
    239 uint32_t         get_vme_slave_size(void)
     222uint32_t get_vme_slave_size(void)
    240223{
    241224  volatile uint32_t         temp;
     
    250233 * Note: The maximum size is up to 24 M bytes. (00000000 - 017FFFFF)
    251234 */
    252 void set_vme_slave_size (uint32_t         size)
     235void set_vme_slave_size (uint32_t size)
    253236{
    254237  volatile uint32_t         temp;
  • c/src/lib/libbsp/powerpc/score603e/console/console.c

    r0626dba rd4ab6611  
    55 *
    66 *  Currently only polled mode is supported.
    7  *
    8  *  COPYRIGHT (c) 1989-2009.
     7 */
     8
     9/*
     10 *  COPYRIGHT (c) 1989-2014.
    911 *  On-Line Applications Research Corporation (OAR).
    1012 *
     
    3739 */
    3840
    39 /* PAGE
    40  *
     41/*
    4142 *  console_inbyte_nonblocking
    4243 *
    4344 *  Console Termios polling input entry point.
    4445 */
    45 
    46 int console_inbyte_nonblocking(
     46static int console_inbyte_nonblocking(
    4747  int minor
    4848)
     
    165165#endif
    166166
    167 /* PAGE
    168  *
     167/*
    169168 *  console_initialize
    170169 *
     
    179178  rtems_status_code          status;
    180179  rtems_device_minor_number  console;
    181   int                        port, chip, p0,p1;
     180  int                        port, p0,p1;
    182181
    183182  /*
     
    235234
    236235  for (port=1; port<NUM_Z85C30_PORTS; port++) {
    237    chip = port >> 1;
    238236    initialize_85c30_port( &Ports_85C30[port] );
    239237  }
     
    246244}
    247245
    248 /* PAGE
    249  *
     246/*
    250247 *  console_write_support
    251248 *
     
    253250 *
    254251 */
    255 ssize_t console_write_support(
     252static ssize_t console_write_support(
    256253  int   minor,
    257254  const char *buf,
     
    290287}
    291288
    292 /* PAGE
    293  *
     289/*
    294290 *  console_open
    295291 *
    296292 *  open a port as a termios console.
    297  *
    298293 */
    299294rtems_device_driver console_open(
     
    355350
    356351#if (CONSOLE_USE_INTERRUPTS)
    357 
    358352/*
    359353 *  console_outbyte_interrupts
    360354 *
    361355 *  This routine transmits a character out.
    362  *
    363  *  Input parameters:
    364  *    port - port to transmit character to
    365  *    ch  - character to be transmitted
    366  *
    367  *  Output parameters:  NONE
    368  *
    369  *  Return values:      NONE
    370356 */
    371357void console_outbyte_interrupts(
     
    397383  Ring_buffer_Add_character( &protocol->TX_Buffer, ch );
    398384}
    399 
    400385#endif
    401386
    402387/* const char arg to be compatible with BSP_output_char decl. */
    403 void
    404 debug_putc_onlcr(const char c)
     388static void debug_putc_onlcr(const char c)
    405389{
    406390  int                      console;
  • c/src/lib/libbsp/powerpc/score603e/include/bsp.h

    r0626dba rd4ab6611  
    1 /*  bsp.h
    2  *
     1/*
    32 *  This include file contains all board IO definitions.
    4  *
    5  *  COPYRIGHT (c) 1989-2009.
     3 */
     4
     5/*
     6 *  COPYRIGHT (c) 1989-2014.
    67 *  On-Line Applications Research Corporation (OAR).
    78 *
     
    124125  rtems_vector_number vector                    /* vector number      */
    125126);
    126 void initialize_external_exception_vector ();
     127void initialize_external_exception_vector(void);
    127128
    128129/*
    129130 * Hwr_init.c
    130131 */
    131 void init_PCI();
    132 void instruction_cache_enable ();
    133 void data_cache_enable ();
     132void init_PCI(void);
     133void init_RTC(void);
     134void instruction_cache_enable(void);
     135void data_cache_enable(void);
    134136
    135 void initialize_PCI_bridge ();
    136 uint16_t         read_and_clear_irq ();
    137 void set_irq_mask(
    138   uint16_t         value
    139 );
    140 uint16_t         get_irq_mask();
     137void     initialize_PCI_bridge(void);
     138uint16_t read_and_clear_irq(void);
     139void     set_irq_mask(uint16_t value);
     140uint16_t get_irq_mask(void);
    141141
    142142/*
    143143 * universe.c
    144144 */
    145 void initialize_universe();
    146 
    147 void set_irq_mask(
    148   uint16_t         value
    149 );
    150 
    151 uint16_t         get_irq_mask();
    152 
    153 void unmask_irq(
    154   uint16_t         irq_idx
    155 );
    156 
    157 void mask_irq(
    158   uint16_t         irq_idx
    159 );
    160 
    161 void init_irq_data_register();
    162 
    163 uint16_t         read_and_clear_PMC_irq(
    164   uint16_t            irq
    165 );
    166 
    167 bool Is_PMC_IRQ(
    168   uint32_t           pmc_irq,
    169   uint16_t           status_word
    170 );
    171 
    172 uint16_t         read_and_clear_irq();
     145void     initialize_universe(void);
     146void     set_irq_mask(uint16_t value);
     147uint16_t get_irq_mask(void);
     148void     unmask_irq(uint16_t irq_idx);
     149void     mask_irq(uint16_t irq_idx);
     150void     init_irq_data_register(void);
     151uint16_t read_and_clear_PMC_irq(uint16_t irq);
     152bool     Is_PMC_IRQ( uint32_t pmc_irq, uint16_t status_word);
     153uint16_t read_and_clear_irq(void);
     154void set_vme_base_address(uint32_t base_address);
     155uint32_t get_vme_slave_size(void);
     156void set_vme_slave_size (uint32_t size);
    173157
    174158/*
    175159 * FPGA.c
    176160 */
    177 void initialize_PCI_bridge ();
     161void initialize_PCI_bridge(void);
     162void init_irq_data_register(void);
     163uint32_t Read_pci_device_register(uint32_t address);
     164void  Write_pci_device_register(uint32_t address, uint32_t data);
    178165
    179166/* flash.c */
     167unsigned int SCORE603e_FLASH_Disable(uint32_t unused);
     168unsigned int SCORE603e_FLASH_verify_enable(void);
     169unsigned int SCORE603e_FLASH_Enable_writes(uint32_t area);
    180170
    181 unsigned int SCORE603e_FLASH_Disable(
    182   uint32_t                       unused
    183 );
    184 unsigned int SCORE603e_FLASH_verify_enable();
    185 unsigned int SCORE603e_FLASH_Enable_writes(
    186   uint32_t                       area        /* Unused  */
    187 );
     171/*
     172 * PCI.c
     173 */
     174uint32_t PCI_bus_read(volatile uint32_t *_addr);
     175void PCI_bus_write(volatile uint32_t *_addr, uint32_t _data);
    188176
    189177#define BSP_FLASH_ENABLE_WRITES( _area) SCORE603e_FLASH_Enable_writes( _area )
  • c/src/lib/libbsp/powerpc/score603e/irq/FPGA.c

    r0626dba rd4ab6611  
    1 /*  FPGA.c -- Bridge for second and subsequent generations
    2  *
    3  *  COPYRIGHT (c) 1989-2009.
     1/*
     2 * FPGA.c -- Bridge for second and subsequent generations
     3 */
     4
     5/*
     6 *  COPYRIGHT (c) 1989-2014.
    47 *  On-Line Applications Research Corporation (OAR).
    58 *
     
    121124}
    122125
    123 uint16_t         read_and_clear_PMC_irq(
     126uint16_t read_and_clear_PMC_irq(
    124127  uint16_t            irq
    125128)
Note: See TracChangeset for help on using the changeset viewer.