Changeset 967481a0 in rtems


Ignore:
Timestamp:
Oct 1, 2012, 1:12:25 PM (7 years ago)
Author:
Peter Dufault <dufault@…>
Branches:
4.11, master
Children:
2a6ec317
Parents:
245cad5
git-author:
Peter Dufault <dufault@…> (10/01/12 13:12:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/02/12 13:27:34)
Message:

bsps: PR2076: SMC91111 fixes for mpc55xxevb BSP

  • A typo prevents if_smc.c from being built when configured;
  • The argument passed to the interrupt handler was incorrect and the addition of support for RTEMS_INTERRUPT_SHARED exposed it;
  • A "#ifdef DEBUG" is supposed to be "#if DEBUG" since 0 is supposed to make it quiet.
Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/network/if_smc.c

    r245cad5 r967481a0  
    11#include <bsp.h>
    22
    3 #ifdef HAS_SMC91111M
     3#ifdef HAS_SMC91111
    44
    55#include <mpc55xx/mpc55xx.h>
     
    3939#define SMC91111_BASE_PIO  4
    4040
    41 extern rtems_isr lan91cxx_interrupt_handler(rtems_vector_number v);
     41extern void lan91cxx_interrupt_handler(void *arg);
    4242
    4343static const union SIU_EISR_tag clear_eisr_2 = {.B.EIF2 = 1};
    4444
    45 static void rtems_smc91111_interrupt_wrapper(rtems_vector_number v, void *arg)
     45static void rtems_smc91111_interrupt_wrapper(void *arg)
    4646{
    4747    /* Clear external interrupt status */
     
    4949    SIU.EISR = clear_eisr_2;
    5050
    51     lan91cxx_interrupt_handler(v);
    52 
     51    lan91cxx_interrupt_handler(arg);
    5352}
    5453
     
    165164};
    166165
    167 #endif /* HAS_SMC91111M */
     166#endif /* HAS_SMC91111 */
  • c/src/libchip/network/smc91111.c

    r245cad5 r967481a0  
    963963        ether_ifattach(ifp);
    964964
    965 #ifdef DEBUG
     965#if DEBUG
    966966        printf("SMC91111 : driver has been attached\n");
    967967#endif
     
    10361036                        cpd->config.options,
    10371037                        cpd->config.interrupt_wrapper,
    1038                         cpd->config.arg
     1038                        cpd
    10391039                );
    10401040                if (sc != RTEMS_SUCCESSFUL) {
Note: See TracChangeset for help on using the changeset viewer.