Deleted Added
full compact
if_edvar.h (154895) if_edvar.h (154924)
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 154895 2006-01-27 08:25:47Z imp $
27 * $FreeBSD: head/sys/dev/ed/if_edvar.h 154924 2006-01-27 19:10:13Z 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 {

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

66 void (*sc_mediachg)(struct ed_softc *);
67 device_t miibus; /* MII bus for cards with MII. */
68 void (*mii_writebits)(struct ed_softc *, u_int, int);
69 u_int (*mii_readbits)(struct ed_softc *, int);
70 struct callout tick_ch;
71 void (*sc_tick)(void *);
72 void (*readmem)(struct ed_softc *sc, bus_size_t src, uint8_t *dst,
73 uint16_t amount);
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 {

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

66 void (*sc_mediachg)(struct ed_softc *);
67 device_t miibus; /* MII bus for cards with MII. */
68 void (*mii_writebits)(struct ed_softc *, u_int, int);
69 u_int (*mii_readbits)(struct ed_softc *, int);
70 struct callout tick_ch;
71 void (*sc_tick)(void *);
72 void (*readmem)(struct ed_softc *sc, bus_size_t src, uint8_t *dst,
73 uint16_t amount);
74 u_short (*sc_write_mbufs)(struct ed_softc *, struct mbuf *, bus_size_t);
74
75 int nic_offset; /* NIC (DS8390) I/O bus address offset */
76 int asic_offset; /* ASIC I/O bus address offset */
77
78/*
79 * The following 'proto' variable is part of a work-around for 8013EBT asics
80 * being write-only. It's sort of a prototype/shadow of the real thing.
81 */

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

210
211int ed_attach(device_t);
212int ed_detach(device_t);
213int ed_clear_memory(device_t);
214int ed_isa_mem_ok(device_t, u_long, u_int); /* XXX isa specific */
215void ed_stop(struct ed_softc *);
216void ed_shmem_readmem16(struct ed_softc *, bus_size_t, uint8_t *, uint16_t);
217void ed_shmem_readmem8(struct ed_softc *, bus_size_t, uint8_t *, uint16_t);
75
76 int nic_offset; /* NIC (DS8390) I/O bus address offset */
77 int asic_offset; /* ASIC I/O bus address offset */
78
79/*
80 * The following 'proto' variable is part of a work-around for 8013EBT asics
81 * being write-only. It's sort of a prototype/shadow of the real thing.
82 */

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

211
212int ed_attach(device_t);
213int ed_detach(device_t);
214int ed_clear_memory(device_t);
215int ed_isa_mem_ok(device_t, u_long, u_int); /* XXX isa specific */
216void ed_stop(struct ed_softc *);
217void ed_shmem_readmem16(struct ed_softc *, bus_size_t, uint8_t *, uint16_t);
218void ed_shmem_readmem8(struct ed_softc *, bus_size_t, uint8_t *, uint16_t);
219u_short ed_shmem_write_mbufs(struct ed_softc *, struct mbuf *, bus_size_t);
218void ed_pio_readmem(struct ed_softc *, bus_size_t, uint8_t *, uint16_t);
219void ed_pio_writemem(struct ed_softc *, uint8_t *, uint16_t, uint16_t);
220void ed_pio_readmem(struct ed_softc *, bus_size_t, uint8_t *, uint16_t);
221void ed_pio_writemem(struct ed_softc *, uint8_t *, uint16_t, uint16_t);
222u_short ed_pio_write_mbufs(struct ed_softc *, struct mbuf *, bus_size_t);
220
223
221/* The following is unsatisfying XXX */
222#ifdef ED_HPP
223void ed_hpp_readmem(struct ed_softc *, bus_size_t, uint8_t *, uint16_t);
224u_short ed_hpp_write_mbufs(struct ed_softc *, struct mbuf *, int);
225#endif
226
227void ed_disable_16bit_access(struct ed_softc *);
228void ed_enable_16bit_access(struct ed_softc *);
229
230driver_intr_t edintr;
231
232extern devclass_t ed_devclass;
233
234

--- 56 unchanged lines hidden ---
224void ed_disable_16bit_access(struct ed_softc *);
225void ed_enable_16bit_access(struct ed_softc *);
226
227driver_intr_t edintr;
228
229extern devclass_t ed_devclass;
230
231

--- 56 unchanged lines hidden ---