K 10 svn:author V 6 marius K 8 svn:date V 27 2007-09-15T10:56:00.000000Z K 7 svn:log V 985 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). END