K 10 svn:author V 3 mux K 8 svn:date V 27 2005-03-30T23:08:46.000000Z K 7 svn:log V 928 MFC if_ixgb.c r1.6 to r1.7, if_ixgb.h r1.4 and if_ixgb_osdep.h r1.3: Fix a bunch of bugs I came accross when looking at the ixgb(4) driver, some of which are rather serious: - Use the device sysctl tree instead of rolling our own. - Don't create a bus_dmamap_t to pass to bus_dmamem_alloc(), it is bus_dmamem_alloc() that creates it itself. The DMA map created by the driver was overwritten and its memory was leaked. - Fix resource handling bugs in the error path of ixgb_dma_alloc(). - Don't use vtophys() to get the base address of the TX and RX rings when busdma already gave us the correct address to use! - Remove now useless includes and the alpha_XXX_dmamap() hack. - Don't initialize if_output to ether_output(), ether_ifattach() does it for us already. - Add proper module dependencies on ether and pci. Tested by: Paul Willmann willmann at rice dot edu Approved by: re@ (kensmith) END