Deleted Added
full compact
if_ed_sic.c (142133) if_ed_sic.c (147256)
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_sic.c 142133 2005-02-20 18:39:54Z imp $");
31__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed_sic.c 147256 2005-06-10 16:49:24Z brooks $");
32
33#include "opt_ed.h"
34
35#ifdef ED_SIC
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/sockio.h>
39#include <sys/mbuf.h>

--- 62 unchanged lines hidden (view full) ---

102 * type code and ethernet address check out, then we know we have
103 * an SIC card.
104 */
105 ed_asic_outb(sc, 0, 0x81);
106 DELAY(100);
107
108 sum = sc->mem_start[6];
109 for (i = 0; i < ETHER_ADDR_LEN; i++)
32
33#include "opt_ed.h"
34
35#ifdef ED_SIC
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/sockio.h>
39#include <sys/mbuf.h>

--- 62 unchanged lines hidden (view full) ---

102 * type code and ethernet address check out, then we know we have
103 * an SIC card.
104 */
105 ed_asic_outb(sc, 0, 0x81);
106 DELAY(100);
107
108 sum = sc->mem_start[6];
109 for (i = 0; i < ETHER_ADDR_LEN; i++)
110 sum ^= (sc->arpcom.ac_enaddr[i] = sc->mem_start[i]);
110 sum ^= (sc->enaddr[i] = sc->mem_start[i]);
111#ifdef ED_DEBUG
112 device_printf(dev, "ed_probe_sic: got address %6D\n",
111#ifdef ED_DEBUG
112 device_printf(dev, "ed_probe_sic: got address %6D\n",
113 sc->arpcom.ac_enaddr, ":");
113 sc->enaddr, ":");
114#endif
115 if (sum != 0)
116 return (ENXIO);
114#endif
115 if (sum != 0)
116 return (ENXIO);
117 if ((sc->arpcom.ac_enaddr[0] | sc->arpcom.ac_enaddr[1] |
118 sc->arpcom.ac_enaddr[2]) == 0)
117 if ((sc->enaddr[0] | sc->enaddr[1] | sc->enaddr[2]) == 0)
119 return (ENXIO);
120
121 sc->vendor = ED_VENDOR_SIC;
122 sc->type_str = "SIC";
123 sc->isa16bit = 0;
124 sc->cr_proto = 0;
125
126 /*

--- 30 unchanged lines hidden ---
118 return (ENXIO);
119
120 sc->vendor = ED_VENDOR_SIC;
121 sc->type_str = "SIC";
122 sc->isa16bit = 0;
123 sc->cr_proto = 0;
124
125 /*

--- 30 unchanged lines hidden ---