if_ed_wd80x3.c (149558) | if_ed_wd80x3.c (154924) |
---|---|
1/*- 2 * Copyright (c) 2005, M. Warner Losh 3 * All rights reserved. 4 * Copyright (c) 1995, David Greenman 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005, M. Warner Losh 3 * All rights reserved. 4 * Copyright (c) 1995, David Greenman 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed_wd80x3.c 149558 2005-08-28 23:56:25Z imp $"); | 31__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed_wd80x3.c 154924 2006-01-27 19:10:13Z imp $"); |
32 33#include "opt_ed.h" 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/sockio.h> 38#include <sys/mbuf.h> 39#include <sys/kernel.h> --- 383 unchanged lines hidden (view full) --- 423 * disabled so that 1) machines reboot properly when the board 424 * is set 16 bit mode and there are conflicting 8bit 425 * devices/ROMS in the same 128k address space as this boards 426 * shared memory. and 2) so that other 8 bit devices with 427 * shared memory can be used in this 128k region, too. 428 */ 429 error = ed_clear_memory(dev); 430 ed_disable_16bit_access(sc); | 32 33#include "opt_ed.h" 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/sockio.h> 38#include <sys/mbuf.h> 39#include <sys/kernel.h> --- 383 unchanged lines hidden (view full) --- 423 * disabled so that 1) machines reboot properly when the board 424 * is set 16 bit mode and there are conflicting 8bit 425 * devices/ROMS in the same 128k address space as this boards 426 * shared memory. and 2) so that other 8 bit devices with 427 * shared memory can be used in this 128k region, too. 428 */ 429 error = ed_clear_memory(dev); 430 ed_disable_16bit_access(sc); |
431 sc->sc_write_mbufs = ed_shmem_write_mbufs; |
|
431 return (error); 432} 433 434int 435ed_probe_WD80x3(device_t dev, int port_rid, int flags) 436{ 437 struct ed_softc *sc = device_get_softc(dev); 438 int error; 439 static uint16_t *intr_vals[] = {ed_intr_val, ed_790_intr_val}; 440 441 error = ed_alloc_port(dev, port_rid, ED_WD_IO_PORTS); 442 if (error) 443 return (error); 444 445 sc->asic_offset = ED_WD_ASIC_OFFSET; 446 sc->nic_offset = ED_WD_NIC_OFFSET; 447 448 return ed_probe_WD80x3_generic(dev, flags, intr_vals); 449} | 432 return (error); 433} 434 435int 436ed_probe_WD80x3(device_t dev, int port_rid, int flags) 437{ 438 struct ed_softc *sc = device_get_softc(dev); 439 int error; 440 static uint16_t *intr_vals[] = {ed_intr_val, ed_790_intr_val}; 441 442 error = ed_alloc_port(dev, port_rid, ED_WD_IO_PORTS); 443 if (error) 444 return (error); 445 446 sc->asic_offset = ED_WD_ASIC_OFFSET; 447 sc->nic_offset = ED_WD_NIC_OFFSET; 448 449 return ed_probe_WD80x3_generic(dev, flags, intr_vals); 450} |