if_xl.c (55686) | if_xl.c (59758) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/pci/if_xl.c 55686 2000-01-09 21:12:59Z wpaul $ | 32 * $FreeBSD: head/sys/pci/if_xl.c 59758 2000-04-29 13:41:57Z peter $ |
33 */ 34 35/* 36 * 3Com 3c90x Etherlink XL PCI NIC driver 37 * 38 * Supports the 3Com "boomerang", "cyclone" and "hurricane" PCI 39 * bus-master chips (3c90x cards and embedded controllers) including 40 * the following: --- 83 unchanged lines hidden (view full) --- 124#include <sys/rman.h> 125 126#include <dev/mii/mii.h> 127#include <dev/mii/miivar.h> 128 129#include <pci/pcireg.h> 130#include <pci/pcivar.h> 131 | 33 */ 34 35/* 36 * 3Com 3c90x Etherlink XL PCI NIC driver 37 * 38 * Supports the 3Com "boomerang", "cyclone" and "hurricane" PCI 39 * bus-master chips (3c90x cards and embedded controllers) including 40 * the following: --- 83 unchanged lines hidden (view full) --- 124#include <sys/rman.h> 125 126#include <dev/mii/mii.h> 127#include <dev/mii/miivar.h> 128 129#include <pci/pcireg.h> 130#include <pci/pcivar.h> 131 |
132MODULE_DEPEND(xl, miibus, 1, 1, 1); 133 |
|
132/* "controller miibus0" required. See GENERIC if you get errors here. */ 133#include "miibus_if.h" 134 135/* 136 * The following #define causes the code to use PIO to access the 137 * chip's registers instead of memory mapped mode. The reason PIO mode 138 * is on by default is that the Etherlink XL manual seems to indicate 139 * that only the newer revision chips (3c905B) support both PIO and 140 * memory mapped access. Since we want to be compatible with the older 141 * bus master chips, we use PIO here. If you comment this out, the 142 * driver will use memory mapped I/O, which may be faster but which 143 * might not work on some devices. 144 */ 145#define XL_USEIOSPACE 146 147#include <pci/if_xlreg.h> 148 149#if !defined(lint) 150static const char rcsid[] = | 134/* "controller miibus0" required. See GENERIC if you get errors here. */ 135#include "miibus_if.h" 136 137/* 138 * The following #define causes the code to use PIO to access the 139 * chip's registers instead of memory mapped mode. The reason PIO mode 140 * is on by default is that the Etherlink XL manual seems to indicate 141 * that only the newer revision chips (3c905B) support both PIO and 142 * memory mapped access. Since we want to be compatible with the older 143 * bus master chips, we use PIO here. If you comment this out, the 144 * driver will use memory mapped I/O, which may be faster but which 145 * might not work on some devices. 146 */ 147#define XL_USEIOSPACE 148 149#include <pci/if_xlreg.h> 150 151#if !defined(lint) 152static const char rcsid[] = |
151 "$FreeBSD: head/sys/pci/if_xl.c 55686 2000-01-09 21:12:59Z wpaul $"; | 153 "$FreeBSD: head/sys/pci/if_xl.c 59758 2000-04-29 13:41:57Z peter $"; |
152#endif 153 154/* 155 * Various supported device vendors/types and their names. 156 */ 157static struct xl_type xl_devs[] = { 158 { TC_VENDORID, TC_DEVICEID_BOOMERANG_10BT, 159 "3Com 3c900-TPO Etherlink XL" }, --- 2743 unchanged lines hidden --- | 154#endif 155 156/* 157 * Various supported device vendors/types and their names. 158 */ 159static struct xl_type xl_devs[] = { 160 { TC_VENDORID, TC_DEVICEID_BOOMERANG_10BT, 161 "3Com 3c900-TPO Etherlink XL" }, --- 2743 unchanged lines hidden --- |