Deleted Added
full compact
if_edvar.h (70355) if_edvar.h (73374)
1/*
2 * Copyright (c) 1995, David Greenman
3 * 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

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*
2 * Copyright (c) 1995, David Greenman
3 * 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

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/dev/ed/if_edvar.h 70355 2000-12-26 06:38:04Z imp $
27 * $FreeBSD: head/sys/dev/ed/if_edvar.h 73374 2001-03-03 08:31:37Z imp $
28 */
29
30#ifndef SYS_DEV_ED_IF_EDVAR_H
31#define SYS_DEV_ED_IF_EDVAR_H
32/*
33 * ed_softc: per line info and status
34 */
35struct ed_softc {

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

44 int port_used; /* nonzero if ports used */
45 struct resource* port_res; /* resource for port range */
46 int mem_rid; /* resource id for memory range */
47 int mem_used; /* nonzero if memory used */
48 struct resource* mem_res; /* resource for memory range */
49 int irq_rid; /* resource id for irq */
50 struct resource* irq_res; /* resource for irq */
51 void* irq_handle; /* handle for irq handler */
28 */
29
30#ifndef SYS_DEV_ED_IF_EDVAR_H
31#define SYS_DEV_ED_IF_EDVAR_H
32/*
33 * ed_softc: per line info and status
34 */
35struct ed_softc {

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

44 int port_used; /* nonzero if ports used */
45 struct resource* port_res; /* resource for port range */
46 int mem_rid; /* resource id for memory range */
47 int mem_used; /* nonzero if memory used */
48 struct resource* mem_res; /* resource for memory range */
49 int irq_rid; /* resource id for irq */
50 struct resource* irq_res; /* resource for irq */
51 void* irq_handle; /* handle for irq handler */
52 device_t miibus; /* MII bus for cards with MII. */
53 void (*mii_writebits)__P((struct ed_softc *, u_int, int));
54 u_int (*mii_readbits)__P((struct ed_softc *, int));
55 struct callout_handle tick_ch; /* Callout handle for ed_tick */
52
53 int nic_offset; /* NIC (DS8390) I/O bus address offset */
54 int asic_offset; /* ASIC I/O bus address offset */
55
56/*
57 * The following 'proto' variable is part of a work-around for 8013EBT asics
58 * being write-only. It's sort of a prototype/shadow of the real thing.
59 */

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

200int ed_probe_HP_pclanp __P((device_t, int, int));
201
202int ed_attach __P((struct ed_softc *, int, int));
203void ed_stop __P((struct ed_softc *));
204void ed_pio_readmem __P((struct ed_softc *, int, unsigned char *,
205 unsigned short));
206void ed_pio_writemem __P((struct ed_softc *, char *,
207 unsigned short, unsigned short));
56
57 int nic_offset; /* NIC (DS8390) I/O bus address offset */
58 int asic_offset; /* ASIC I/O bus address offset */
59
60/*
61 * The following 'proto' variable is part of a work-around for 8013EBT asics
62 * being write-only. It's sort of a prototype/shadow of the real thing.
63 */

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

204int ed_probe_HP_pclanp __P((device_t, int, int));
205
206int ed_attach __P((struct ed_softc *, int, int));
207void ed_stop __P((struct ed_softc *));
208void ed_pio_readmem __P((struct ed_softc *, int, unsigned char *,
209 unsigned short));
210void ed_pio_writemem __P((struct ed_softc *, char *,
211 unsigned short, unsigned short));
212int ed_miibus_readreg __P((device_t, int, int));
213void ed_miibus_writereg __P((device_t, int, int, int));
214int ed_ifmedia_upd __P((struct ifnet *));
215void ed_ifmedia_sts __P((struct ifnet *, struct ifmediareq *));
216void ed_child_detached __P((device_t, device_t));
208
209driver_intr_t edintr;
210
211extern devclass_t ed_devclass;
212#endif /* SYS_DEV_ED_IF_EDVAR_H */
217
218driver_intr_t edintr;
219
220extern devclass_t ed_devclass;
221#endif /* SYS_DEV_ED_IF_EDVAR_H */