Deleted Added
full compact
if_rl.c (51583) if_rl.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_rl.c 51583 1999-09-23 03:32:57Z wpaul $
32 * $FreeBSD: head/sys/pci/if_rl.c 51657 1999-09-25 17:29:02Z wpaul $
33 */
34
35/*
36 * RealTek 8129/8139 PCI NIC driver
37 *
38 * Supports several extremely cheap PCI 10/100 adapters based on
39 * the RealTek chipset. Datasheets can be obtained from
40 * www.realtek.com.tw.

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

127 * uniprocessor systems though.
128 */
129#define RL_USEIOSPACE
130
131#include <pci/if_rlreg.h>
132
133#ifndef lint
134static const char rcsid[] =
33 */
34
35/*
36 * RealTek 8129/8139 PCI NIC driver
37 *
38 * Supports several extremely cheap PCI 10/100 adapters based on
39 * the RealTek chipset. Datasheets can be obtained from
40 * www.realtek.com.tw.

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

127 * uniprocessor systems though.
128 */
129#define RL_USEIOSPACE
130
131#include <pci/if_rlreg.h>
132
133#ifndef lint
134static const char rcsid[] =
135 "$FreeBSD: head/sys/pci/if_rl.c 51583 1999-09-23 03:32:57Z wpaul $";
135 "$FreeBSD: head/sys/pci/if_rl.c 51657 1999-09-25 17:29:02Z wpaul $";
136#endif
137
138/*
139 * Various supported device vendors/types and their names.
140 */
141static struct rl_type rl_devs[] = {
142 { RT_VENDORID, RT_DEVICEID_8129,
143 "RealTek 8129 10/100BaseTX" },

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

907 bus_teardown_intr(dev, sc->rl_irq, sc->rl_intrhand);
908 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->rl_res);
909 bus_release_resource(dev, RL_RES, RL_RID, sc->rl_res);
910 error = ENXIO;
911 goto fail;
912 }
913
914 sc->rl_cdata.rl_rx_buf = contigmalloc(RL_RXBUFLEN + 32, M_DEVBUF,
136#endif
137
138/*
139 * Various supported device vendors/types and their names.
140 */
141static struct rl_type rl_devs[] = {
142 { RT_VENDORID, RT_DEVICEID_8129,
143 "RealTek 8129 10/100BaseTX" },

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

907 bus_teardown_intr(dev, sc->rl_irq, sc->rl_intrhand);
908 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->rl_res);
909 bus_release_resource(dev, RL_RES, RL_RID, sc->rl_res);
910 error = ENXIO;
911 goto fail;
912 }
913
914 sc->rl_cdata.rl_rx_buf = contigmalloc(RL_RXBUFLEN + 32, M_DEVBUF,
915 M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0);
915 M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0);
916
917 if (sc->rl_cdata.rl_rx_buf == NULL) {
918 printf("rl%d: no memory for list buffers!\n", unit);
919 bus_teardown_intr(dev, sc->rl_irq, sc->rl_intrhand);
920 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->rl_res);
921 bus_release_resource(dev, RL_RES, RL_RID, sc->rl_res);
922 error = ENXIO;
923 goto fail;

--- 720 unchanged lines hidden ---
916
917 if (sc->rl_cdata.rl_rx_buf == NULL) {
918 printf("rl%d: no memory for list buffers!\n", unit);
919 bus_teardown_intr(dev, sc->rl_irq, sc->rl_intrhand);
920 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->rl_res);
921 bus_release_resource(dev, RL_RES, RL_RID, sc->rl_res);
922 error = ENXIO;
923 goto fail;

--- 720 unchanged lines hidden ---