Deleted Added
full compact
if_tl.c (51583) if_tl.c (51657)
1/*
2 * Copyright (c) 1997, 1998
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
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_tl.c 51583 1999-09-23 03:32:57Z wpaul $
32 * $FreeBSD: head/sys/pci/if_tl.c 51657 1999-09-25 17:29:02Z wpaul $
33 */
34
35/*
36 * Texas Instruments ThunderLAN driver for FreeBSD 2.2.6 and 3.x.
37 * Supports many Compaq PCI NICs based on the ThunderLAN ethernet controller,
38 * the National Semiconductor DP83840A physical interface and the
39 * Microchip Technology 24Cxx series serial EEPROM.
40 *

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

219
220#include <pci/if_tlreg.h>
221
222/* "controller miibus0" required. See GENERIC if you get errors here. */
223#include "miibus_if.h"
224
225#if !defined(lint)
226static const char rcsid[] =
33 */
34
35/*
36 * Texas Instruments ThunderLAN driver for FreeBSD 2.2.6 and 3.x.
37 * Supports many Compaq PCI NICs based on the ThunderLAN ethernet controller,
38 * the National Semiconductor DP83840A physical interface and the
39 * Microchip Technology 24Cxx series serial EEPROM.
40 *

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

219
220#include <pci/if_tlreg.h>
221
222/* "controller miibus0" required. See GENERIC if you get errors here. */
223#include "miibus_if.h"
224
225#if !defined(lint)
226static const char rcsid[] =
227 "$FreeBSD: head/sys/pci/if_tl.c 51583 1999-09-23 03:32:57Z wpaul $";
227 "$FreeBSD: head/sys/pci/if_tl.c 51657 1999-09-25 17:29:02Z wpaul $";
228#endif
229
230/*
231 * Various supported device vendors/types and their names.
232 */
233
234static struct tl_type tl_devs[] = {
235 { TI_VENDORID, TI_DEVICEID_THUNDERLAN,

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

1218 printf("tl%d: couldn't set up irq\n", unit);
1219 goto fail;
1220 }
1221
1222 /*
1223 * Now allocate memory for the TX and RX lists.
1224 */
1225 sc->tl_ldata = contigmalloc(sizeof(struct tl_list_data), M_DEVBUF,
228#endif
229
230/*
231 * Various supported device vendors/types and their names.
232 */
233
234static struct tl_type tl_devs[] = {
235 { TI_VENDORID, TI_DEVICEID_THUNDERLAN,

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

1218 printf("tl%d: couldn't set up irq\n", unit);
1219 goto fail;
1220 }
1221
1222 /*
1223 * Now allocate memory for the TX and RX lists.
1224 */
1225 sc->tl_ldata = contigmalloc(sizeof(struct tl_list_data), M_DEVBUF,
1226 M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0);
1226 M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0);
1227
1228 if (sc->tl_ldata == NULL) {
1229 bus_teardown_intr(dev, sc->tl_irq, sc->tl_intrhand);
1230 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->tl_irq);
1231 bus_release_resource(dev, TL_RES, TL_RID, sc->tl_res);
1232 printf("tl%d: no memory for list buffers!\n", unit);
1233 error = ENXIO;
1234 goto fail;

--- 1117 unchanged lines hidden ---
1227
1228 if (sc->tl_ldata == NULL) {
1229 bus_teardown_intr(dev, sc->tl_irq, sc->tl_intrhand);
1230 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->tl_irq);
1231 bus_release_resource(dev, TL_RES, TL_RID, sc->tl_res);
1232 printf("tl%d: no memory for list buffers!\n", unit);
1233 error = ENXIO;
1234 goto fail;

--- 1117 unchanged lines hidden ---