Deleted Added
sdiff udiff text old ( 64630 ) new ( 64777 )
full compact
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 64630 2000-08-14 04:31:07Z tanimura $
28 */
29
30/*
31 * ed_softc: per line info and status
32 */
33struct ed_softc {
34 struct arpcom arpcom; /* ethernet common */
35

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

43 struct resource* port_res; /* resource for port range */
44 int mem_rid; /* resource id for memory range */
45 int mem_used; /* nonzero if memory used */
46 struct resource* mem_res; /* resource for memory range */
47 int irq_rid; /* resource id for irq */
48 struct resource* irq_res; /* resource for irq */
49 void* irq_handle; /* handle for irq handler */
50
51 bus_space_tag_t bst; /* Bus Space tag */
52 bus_space_handle_t bsh; /* Bus Space handle */
53
54#ifdef __alpha__
55 u_int asic_addr; /* ASIC I/O bus address */
56 u_int nic_addr; /* NIC (DS8390) I/O bus address */
57#else
58 u_short asic_addr; /* ASIC I/O bus address */
59 u_short nic_addr; /* NIC (DS8390) I/O bus address */
60#endif
61
62/*
63 * The following 'proto' variable is part of a work-around for 8013EBT asics
64 * being write-only. It's sort of a prototype/shadow of the real thing.
65 */
66 u_char wd_laar_proto;
67 u_char cr_proto;
68 u_char isa16bit; /* width of access to card 0=8 or 1=16 */
69 int chip_type; /* the type of chip (one of ED_CHIP_TYPE_*) */
70
71/*
72 * HP PC LAN PLUS card support.
73 */
74
75 u_short hpp_options; /* flags controlling behaviour of the HP card */
76 u_short hpp_id; /* software revision and other fields */
77 u_long hpp_mem_start; /* Memory-mapped IO register address */
78
79 u_long mem_start; /* NIC memory start address */
80 u_long mem_end; /* NIC memory end address */
81 u_int32_t mem_size; /* total NIC memory size */
82 u_long mem_ring; /* start of RX ring-buffer (in NIC mem) */
83
84 u_char mem_shared; /* NIC memory is shared with host */
85 u_char xmit_busy; /* transmitter is busy */
86 u_char txb_cnt; /* number of transmit buffers */
87 u_char txb_inuse; /* number of TX buffers currently in-use */
88
89 u_char txb_new; /* pointer to where new buffer will be added */
90 u_char txb_next_tx; /* pointer to next buffer ready to xmit */
91 u_short txb_len[8]; /* buffered xmit buffer lengths */
92 u_char tx_page_start; /* first page of TX buffer area */
93 u_char rec_page_start; /* first page of RX ring-buffer */
94 u_char rec_page_stop; /* last page of RX ring-buffer */
95 u_char next_packet; /* pointer to next unread RX packet */
96 struct ifmib_iso_8802_3 mibdata; /* stuff for network mgmt */
97};
98
99void ed_release_resources __P((device_t));
100int ed_alloc_port __P((device_t, int, int));
101int ed_alloc_memory __P((device_t, int, int));
102int ed_alloc_irq __P((device_t, int, int));
103
104int ed_probe_generic8390 __P((struct ed_softc *));
105int ed_probe_WD80x3 __P((device_t));
106int ed_probe_3Com __P((device_t));
107int ed_probe_Novell __P((device_t));
108int ed_probe_Novell_generic __P((device_t, int, int));
109int ed_probe_HP_pclanp __P((device_t));
110int ed_get_Linksys __P((struct ed_softc *));
111void ed_ax88190_geteprom __P((struct ed_softc *));
112
113int ed_attach __P((struct ed_softc *, int, int));
114void ed_stop __P((struct ed_softc *));
115
116driver_intr_t edintr;
117