if_ed_cbus.c (118557) | if_ed_cbus.c (121118) |
---|---|
1/* 2 * Copyright (c) 1995, David Greenman 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright (c) 1995, David Greenman 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/ed/if_ed_cbus.c 118557 2003-08-06 18:06:30Z bde $ | 27 * $FreeBSD: head/sys/dev/ed/if_ed_cbus.c 121118 2003-10-15 17:22:15Z shiba $ |
28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/socket.h> 33#include <sys/kernel.h> 34 35#include <sys/module.h> --- 828 unchanged lines hidden (view full) --- 864 * Setup card RAM and I/O address 865 * Kernel Virtual to segment C0000-DFFFF???? 866 */ 867 error = ed98_alloc_port(dev, port_rid); 868 if (error) { 869 return (error); 870 } 871 | 28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/socket.h> 33#include <sys/kernel.h> 34 35#include <sys/module.h> --- 828 unchanged lines hidden (view full) --- 864 * Setup card RAM and I/O address 865 * Kernel Virtual to segment C0000-DFFFF???? 866 */ 867 error = ed98_alloc_port(dev, port_rid); 868 if (error) { 869 return (error); 870 } 871 |
872 sc->asic_offset = ED_NOVELL_ASIC_OFFSET; 873 sc->nic_offset = ED_NOVELL_NIC_OFFSET; | 872 sc->asic_offset = ED_SIC_ASIC_OFFSET; 873 sc->nic_offset = ED_SIC_NIC_OFFSET; |
874 875 error = ed98_alloc_memory(dev, 0); 876 if (error) { 877 return (error); 878 } 879 880 /* Reset card to force it into a known state. */ 881 ed_asic_outb(sc, 0, 0x00); --- 29 unchanged lines hidden (view full) --- 911 if (sum != 0) { 912 return (ENXIO); 913 } 914 if ((sc->arpcom.ac_enaddr[0] | sc->arpcom.ac_enaddr[1] | 915 sc->arpcom.ac_enaddr[2]) == 0) { 916 return (ENXIO); 917 } 918 | 874 875 error = ed98_alloc_memory(dev, 0); 876 if (error) { 877 return (error); 878 } 879 880 /* Reset card to force it into a known state. */ 881 ed_asic_outb(sc, 0, 0x00); --- 29 unchanged lines hidden (view full) --- 911 if (sum != 0) { 912 return (ENXIO); 913 } 914 if ((sc->arpcom.ac_enaddr[0] | sc->arpcom.ac_enaddr[1] | 915 sc->arpcom.ac_enaddr[2]) == 0) { 916 return (ENXIO); 917 } 918 |
919 sc->vendor = ED_VENDOR_MISC; | 919 sc->vendor = ED_VENDOR_SIC; |
920 sc->type_str = "SIC98"; 921 sc->isa16bit = 1; 922 sc->cr_proto = 0; 923 924 /* 925 * SIC RAM page 0x0000-0x3fff(or 0x7fff) 926 */ 927 if (ED_TYPE98SUB(flags) == 0) { --- 831 unchanged lines hidden --- | 920 sc->type_str = "SIC98"; 921 sc->isa16bit = 1; 922 sc->cr_proto = 0; 923 924 /* 925 * SIC RAM page 0x0000-0x3fff(or 0x7fff) 926 */ 927 if (ED_TYPE98SUB(flags) == 0) { --- 831 unchanged lines hidden --- |