cvs commit: src/sys/dev/le am7990.c am79900.c if_le_ledma.c if_le_pci.c lance.c lancevar.h

Marius Strobl marius at FreeBSD.org
Sat Sep 15 03:56:02 PDT 2007


marius      2007-09-15 10:56:00 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/dev/le           am7990.c am79900.c if_le_ledma.c 
                         if_le_pci.c lance.c lancevar.h 
  Log:
  MFC: am7990.c 1.4; am79900.c 1.4; if_le_ledma.c 1.3; if_le_pci.c 1.5, 1.6;
       lance.c 1.3, 1.4; lancevar.h 1.3
  
  - Use our own callout instead of if_slowtimo() for driving lance_watchdog()
    in order to avoid races accessing if_timer.
  - Use bus_get_dma_tag() to obtain the parent DMA tag so le(4) works on
    platforms requiring this.
  - Remove BUS_DMA_WAITOK from bus_dma_tag_create() invocations as it's
    no valid flag there.
  - For setting the port PCnet chips must be powered down or stopped and
    unlike documented may not take effect without an initialization. So
    don't invoke (*sc_mediachange) directly in lance_mediachange() but
    go through lance_init_locked(). It's suboptimal to impose this for
    all chips but given that besides the affected PCI bus front-end the
    only other front-end which supports media selection is and likely
    ever will be the 'ledma' front-end I see not enough reason to break
    the in-driver API for this (though one could argue both ways here).
  
  Revision  Changes    Path
  1.1.2.4   +2 -2      src/sys/dev/le/am7990.c
  1.1.2.4   +2 -2      src/sys/dev/le/am79900.c
  1.1.2.3   +1 -1      src/sys/dev/le/if_le_ledma.c
  1.1.2.3   +3 -3      src/sys/dev/le/if_le_pci.c
  1.1.2.3   +34 -15    src/sys/dev/le/lance.c
  1.1.2.3   +2 -0      src/sys/dev/le/lancevar.h


More information about the cvs-src mailing list