if_fxp.c (76545) | if_fxp.c (76630) |
---|---|
1/*- 2 * Copyright (c) 1995, David Greenman 3 * Copyright (c) 2001 Jonathan Lemon <jlemon@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1995, David Greenman 3 * Copyright (c) 2001 Jonathan Lemon <jlemon@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/fxp/if_fxp.c 76545 2001-05-13 05:38:59Z jlemon $ | 28 * $FreeBSD: head/sys/dev/fxp/if_fxp.c 76630 2001-05-15 18:52:40Z jlemon $ |
29 */ 30 31/* 32 * Intel EtherExpress Pro/100B PCI Fast Ethernet driver 33 */ 34 35#include "vlan.h" 36 --- 406 unchanged lines hidden (view full) --- 443 fxp_autosize_eeprom(sc); 444 445 /* 446 * Determine whether we must use the 503 serial interface. 447 */ 448 fxp_read_eeprom(sc, &data, 6, 1); 449 if ((data & FXP_PHY_DEVICE_MASK) != 0 && 450 (data & FXP_PHY_SERIAL_ONLY)) | 29 */ 30 31/* 32 * Intel EtherExpress Pro/100B PCI Fast Ethernet driver 33 */ 34 35#include "vlan.h" 36 --- 406 unchanged lines hidden (view full) --- 443 fxp_autosize_eeprom(sc); 444 445 /* 446 * Determine whether we must use the 503 serial interface. 447 */ 448 fxp_read_eeprom(sc, &data, 6, 1); 449 if ((data & FXP_PHY_DEVICE_MASK) != 0 && 450 (data & FXP_PHY_SERIAL_ONLY)) |
451 sc->flags &= FXP_FLAG_SERIAL_MEDIA; | 451 sc->flags |= FXP_FLAG_SERIAL_MEDIA; |
452 453 /* 454 * Find out the basic controller type; we currently only 455 * differentiate between a 82557 and greater. 456 */ 457 fxp_read_eeprom(sc, &data, 5, 1); 458 if ((data >> 8) == 1) 459 sc->chip = FXP_CHIP_82557; --- 1422 unchanged lines hidden --- | 452 453 /* 454 * Find out the basic controller type; we currently only 455 * differentiate between a 82557 and greater. 456 */ 457 fxp_read_eeprom(sc, &data, 5, 1); 458 if ((data >> 8) == 1) 459 sc->chip = FXP_CHIP_82557; --- 1422 unchanged lines hidden --- |