Changeset 3c12a247 in rtems


Ignore:
Timestamp:
Sep 8, 2008, 3:44:26 PM (11 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 4.9, master
Children:
6a4deb5c
Parents:
5265a27
Message:

added missing files, fixed some minors

Location:
c/src/lib/libbsp/powerpc/tqm8xx
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog

    r5265a27 r3c12a247  
    1 2008-09-08      Joel Sherrill <joel.sherrill@OARcorp.com>
     12008-09-08      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
    22
    3         * ChangeLog: New file.
     3        * network/network_scc.c, network/network_fec.c: fixed some data
     4        type issues
    45
     6        * clock/p_clock.c: added misssing clock driver
     7       
     8        * startup/bspstart.c, timer/timer.c:
     9        added misssing timer variables
     10       
     11        * ChangeLog: added changelog
     12       
     132008-09-08      Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
     14
     15        * New BSP -- tqm8xx boards
  • c/src/lib/libbsp/powerpc/tqm8xx/network/network_fec.c

    r5265a27 r3c12a247  
    156156 * FEC interrupt handler
    157157 */
    158 static void m8xx_fec_interrupt_handler ()
     158static void m8xx_fec_interrupt_handler (void *unused)
    159159{
    160160  /*
     
    181181 * m860_fec_initialize_hardware to m8xx_fec_ethernet_on
    182182 */
    183 static void m8xx_fec_ethernet_on(){};
    184 static void m8xx_fec_ethernet_off(){};
     183static void m8xx_fec_ethernet_on(const rtems_irq_connect_data* ptr){};
     184static void m8xx_fec_ethernet_off(const rtems_irq_connect_data* ptr){};
    185185static int m8xx_fec_ethernet_isOn (const rtems_irq_connect_data* ptr)
    186186{
    187   return BSP_irq_enabled_at_siu (ptr->name);
     187  return 1;
    188188}
    189189
    190190static rtems_irq_connect_data ethernetFECIrqData = {
    191191  BSP_FAST_ETHERNET_CTRL,
    192   (rtems_irq_hdl) m8xx_fec_interrupt_handler,
    193   (rtems_irq_enable) m8xx_fec_ethernet_on,
    194   (rtems_irq_disable) m8xx_fec_ethernet_off,
    195   (rtems_irq_is_enabled)m8xx_fec_ethernet_isOn
     192  m8xx_fec_interrupt_handler,
     193  NULL,
     194  m8xx_fec_ethernet_on,
     195  m8xx_fec_ethernet_off,
     196  m8xx_fec_ethernet_isOn
    196197};
    197198
     
    634635       * Flush the buffer for this descriptor
    635636       */
    636       rtems_cache_flush_multiple_data_lines(txBd->buffer, txBd->length);
     637      rtems_cache_flush_multiple_data_lines((void *)txBd->buffer, txBd->length);
    637638
    638639      sc->txMbuf[sc->txBdHead] = m;
     
    796797}
    797798
    798 static int fec_ioctl (struct ifnet *ifp, int command, caddr_t data)
     799static int fec_ioctl (struct ifnet *ifp,
     800                      ioctl_command_t command, caddr_t data)
    799801{
    800802  struct m8xx_fec_enet_struct *sc = ifp->if_softc;
  • c/src/lib/libbsp/powerpc/tqm8xx/network/network_scc.c

    r5265a27 r3c12a247  
    161161}
    162162
    163 static void  m8xx_scc1_ethernet_isOn(const rtems_irq_connect_data* ptr)
    164 {
    165   int BSP_irq_enabled_at_cpm(const rtems_irq_number );
    166   BSP_irq_enabled_at_cpm (ptr->name);
     163static int  m8xx_scc1_ethernet_isOn(const rtems_irq_connect_data* ptr)
     164{
     165  /*
     166   * Assume, that we are on
     167   */
     168  return 1;
    167169}
    168170
     
    193195  BSP_CPM_IRQ_SCC1,
    194196  (rtems_irq_hdl) m8xx_scc1_interrupt_handler,
    195   0,
    196   (rtems_irq_enable) m8xx_scc1_ethernet_on,
    197   (rtems_irq_disable) m8xx_scc1_ethernet_off,
    198   (rtems_irq_is_enabled)m8xx_scc1_ethernet_isOn
     197  NULL,
     198  m8xx_scc1_ethernet_on,
     199  m8xx_scc1_ethernet_off,
     200  m8xx_scc1_ethernet_isOn
    199201};
    200202
  • c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c

    r5265a27 r3c12a247  
    4646uint32_t bsp_clicks_per_usec; /* for PIT driver: OSCCLK */
    4747uint32_t bsp_clock_speed    ; /* needed for PIT driver  */
    48 
     48/* for timer: */
     49uint32_t   bsp_timer_average_overhead; /* Average overhead of timer in ticks */
     50uint32_t   bsp_timer_least_valid;      /* Least valid number from timer      */
     51bool       bsp_timer_internal_clock;   /* TRUE, when timer runs with CPU clk */
    4952/*
    5053 *  Use the shared implementations of the following routines.
     
    192195                            */
    193196  bsp_clock_speed     = BSP_bus_frequency;
     197  bsp_timer_least_valid = 3;
     198  bsp_timer_average_overhead = 3;
    194199
    195200  /* Initialize exception handler */
  • c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c

    r5265a27 r3c12a247  
    8888Read_timer (void)
    8989{
    90   extern unsigned int BSP_bus_frequency;
    9190  int retval;
    9291  retval = *(uint32_t*)&m8xx.tcn1;
Note: See TracChangeset for help on using the changeset viewer.