Changeset 8c83cbc in rtems


Ignore:
Timestamp:
Aug 4, 2016, 9:32:06 PM (3 years ago)
Author:
Pavel Pisa <pisa@…>
Branches:
master
Children:
300f6a48
Parents:
e814a23
git-author:
Pavel Pisa <pisa@…> (08/04/16 21:32:06)
git-committer:
Pavel Pisa <pisa@…> (09/20/16 20:45:16)
Message:

classic networking: do not reference BSP_irq_enabled_at_i8259s which is no more available on i386.

This change is required to build RTEMS with classic "--enable-networking"
and link applications/tests which reference RTEMS_BSP_NETWORK_DRIVER_ATTACH.

Location:
c/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/ne2000/ne2000.c

    re814a23 r8c83cbc  
    429429}
    430430
    431 /* Return whether NE2000 interrupts are on.  */
    432 
    433 static int
    434 ne_interrupt_is_on (const rtems_irq_connect_data *irq)
    435 {
    436   return BSP_irq_enabled_at_i8259s (irq->name);
    437 }
    438 
    439431/* Initialize the NE2000 hardware.  */
    440432
     
    527519  irq.on = ne_interrupt_on;
    528520  irq.off = ne_interrupt_off;
    529   irq.isOn = ne_interrupt_is_on;
     521  irq.isOn = NULL;
    530522
    531523  if (!BSP_install_rtems_irq_handler (&irq))
  • c/src/libchip/network/dec21140.c

    re814a23 r8c83cbc  
    346346}
    347347
    348 static int dec21140IsOn(const rtems_irq_connect_data* irq)
    349 {
    350   return BSP_irq_enabled_at_i8259s (irq->name);
    351 }
    352 
    353348/*
    354349 * DEC21140 interrupt handler
     
    540535   sc->irqInfo.on   = no_op;
    541536   sc->irqInfo.off  = no_op;
    542    sc->irqInfo.isOn = dec21140IsOn;
     537   sc->irqInfo.isOn = NULL;
    543538
    544539#ifdef DEC_DEBUG
  • c/src/libchip/network/elnk.c

    re814a23 r8c83cbc  
    18761876
    18771877
    1878 static int elnkIsOn(const rtems_irq_connect_data* irq)
    1879 {
    1880   return BSP_irq_enabled_at_i8259s (irq->name);
    1881 }
    1882 
    1883 
    1884 
    1885 
    1886 
    1887 
    18881878static void
    18891879elnk_start_txchain( struct elnk_softc *sc, struct TXMD *chainhead )
     
    22152205   sc->irqInfo.on   = no_op;
    22162206   sc->irqInfo.off  = no_op;
    2217    sc->irqInfo.isOn = elnkIsOn;
     2207   sc->irqInfo.isOn = NULL;
    22182208
    22192209   if( sc->irqInfo.name != 255 )
  • c/src/libchip/network/if_dc.c

    re814a23 r8c83cbc  
    18941894}
    18951895
    1896 static int
    1897 decISON(const rtems_irq_connect_data* irq)
    1898 {
    1899         return (BSP_irq_enabled_at_i8259s(irq->name));
    1900 }
    1901 
    1902 
    19031896/*
    19041897 * Attach the interface. Allocate softc structures, do ifmedia
     
    20242017        sc->irqInfo.on = nop;
    20252018        sc->irqInfo.off = nop;
    2026         sc->irqInfo.isOn = decISON;
     2019        sc->irqInfo.isOn = NULL;
    20272020
    20282021#ifdef BSP_SHARED_HANDLER_SUPPORT
  • c/src/libchip/network/if_fxp.c

    re814a23 r8c83cbc  
    430430   * to this location
    431431   */
    432 }
    433 
    434 static int fxpIsOn(const rtems_irq_connect_data* irq)
    435 {
    436   return BSP_irq_enabled_at_i8259s (irq->name);
    437432}
    438433
     
    19341929                sc->irqInfo.on  = nopOn;
    19351930                sc->irqInfo.off = nopOn;
    1936                 sc->irqInfo.isOn = fxpIsOn;
     1931                sc->irqInfo.isOn = NULL;
    19371932                rv = BSP_install_rtems_irq_handler (&sc->irqInfo);
    19381933                if (rv != 1) {
Note: See TracChangeset for help on using the changeset viewer.