Deleted Added
sdiff udiff text old ( 142135 ) new ( 147256 )
full compact
1/*-
2 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
3 *
4 * This software may be used, modified, copied, distributed, and sold, in
5 * both source and binary form provided that the above copyright, these
6 * terms and the following disclaimer are retained. The name of the author
7 * and/or the contributor may not be used to endorse or promote products
8 * derived from this software without specific prior written permission.

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

14 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
15 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
16 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION.
17 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
18 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
19 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
20 * SUCH DAMAGE.
21 *
22 * $FreeBSD: head/sys/dev/fe/if_fevar.h 147256 2005-06-10 16:49:24Z brooks $
23 */
24
25/* How many registers does an fe-supported adapter have at maximum? */
26#define MAXREGISTERS 32
27
28/* Shouldn't these be defined somewhere else such as isa_device.h? */
29#define NO_IRQ 0
30

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

63};
64
65/*
66 * fe_softc: per line info and status
67 */
68struct fe_softc {
69
70 /* Used by "common" codes. */
71 struct ifnet *ifp;
72 int sc_unit;
73 u_char enaddr[6];
74
75 /* Used by config codes. */
76 int type;
77 int port_used;
78 struct resource * port_res;
79 bus_space_tag_t iot;
80 bus_space_handle_t ioh;
81 struct resource * irq_res;

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

114 /* Media information. */
115 struct ifmedia media; /* used by if_media. */
116 u_short mbitmap; /* bitmap for supported media; see bit2media */
117 int defmedia; /* default media */
118 void (* msel)(struct fe_softc *); /* media selector. */
119
120};
121
122struct fe_simple_probe_struct {
123 u_char port; /* Offset from the base I/O address. */
124 u_char mask; /* Bits to be checked. */
125 u_char bits; /* Values to be compared against. */
126};
127
128
129extern devclass_t fe_devclass;

--- 50 unchanged lines hidden ---