Deleted Added
full compact
if_ti.c (111759) if_ti.c (111815)
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/dev/ti/if_ti.c 111759 2003-03-02 19:23:31Z phk $
32 * $FreeBSD: head/sys/dev/ti/if_ti.c 111815 2003-03-03 12:15:54Z phk $
33 */
34
35/*
36 * Alteon Networks Tigon PCI gigabit ethernet driver for FreeBSD.
37 * Manuals, sample driver and firmware source kits are available
38 * from http://www.alteon.com/support/openkits.
39 *
40 * Written by Bill Paul <wpaul@ctr.columbia.edu>

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

147 * BDs.
148 */
149#if defined(TI_JUMBO_HDRSPLIT) && defined(TI_PRIVATE_JUMBOS)
150#error "options TI_JUMBO_HDRSPLIT and TI_PRIVATE_JUMBOS are mutually exclusive"
151#endif /* TI_JUMBO_HDRSPLIT && TI_JUMBO_HDRSPLIT */
152
153#if !defined(lint)
154static const char rcsid[] =
33 */
34
35/*
36 * Alteon Networks Tigon PCI gigabit ethernet driver for FreeBSD.
37 * Manuals, sample driver and firmware source kits are available
38 * from http://www.alteon.com/support/openkits.
39 *
40 * Written by Bill Paul <wpaul@ctr.columbia.edu>

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

147 * BDs.
148 */
149#if defined(TI_JUMBO_HDRSPLIT) && defined(TI_PRIVATE_JUMBOS)
150#error "options TI_JUMBO_HDRSPLIT and TI_PRIVATE_JUMBOS are mutually exclusive"
151#endif /* TI_JUMBO_HDRSPLIT && TI_JUMBO_HDRSPLIT */
152
153#if !defined(lint)
154static const char rcsid[] =
155 "$FreeBSD: head/sys/dev/ti/if_ti.c 111759 2003-03-02 19:23:31Z phk $";
155 "$FreeBSD: head/sys/dev/ti/if_ti.c 111815 2003-03-03 12:15:54Z phk $";
156#endif
157
158struct ti_softc *tis[8];
159
160typedef enum {
161 TI_SWAP_HTON,
162 TI_SWAP_NTOH
163} ti_swap_type;

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

187
188#define TI_CDEV_MAJOR 153
189
190static d_open_t ti_open;
191static d_close_t ti_close;
192static d_ioctl_t ti_ioctl2;
193
194static struct cdevsw ti_cdevsw = {
156#endif
157
158struct ti_softc *tis[8];
159
160typedef enum {
161 TI_SWAP_HTON,
162 TI_SWAP_NTOH
163} ti_swap_type;

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

187
188#define TI_CDEV_MAJOR 153
189
190static d_open_t ti_open;
191static d_close_t ti_close;
192static d_ioctl_t ti_ioctl2;
193
194static struct cdevsw ti_cdevsw = {
195 /* open */ ti_open,
196 /* close */ ti_close,
197 /* read */ noread,
198 /* write */ nowrite,
199 /* ioctl */ ti_ioctl2,
200 /* poll */ seltrue,
201 /* mmap */ nommap,
202 /* strategy */ nostrategy,
203 /* name */ "ti",
204 /* maj */ TI_CDEV_MAJOR,
205 /* dump */ nodump,
206 /* psize */ nopsize,
207 /* flags */ 0,
195 .d_open = ti_open,
196 .d_close = ti_close,
197 .d_ioctl = ti_ioctl2,
198 .d_name = "ti",
199 .d_maj = TI_CDEV_MAJOR,
208};
209
210static int ti_probe (device_t);
211static int ti_attach (device_t);
212static int ti_detach (device_t);
213static void ti_txeof (struct ti_softc *);
214static void ti_rxeof (struct ti_softc *);
215

--- 3440 unchanged lines hidden ---
200};
201
202static int ti_probe (device_t);
203static int ti_attach (device_t);
204static int ti_detach (device_t);
205static void ti_txeof (struct ti_softc *);
206static void ti_rxeof (struct ti_softc *);
207

--- 3440 unchanged lines hidden ---