if_fevar.h (142135) | if_fevar.h (147256) |
---|---|
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 * | 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 139972 2005-01-10 09:29:48Z imp $ | 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. */ | 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 arpcom arpcom; /* Ethernet common */ | 71 struct ifnet *ifp; |
72 int sc_unit; | 72 int sc_unit; |
73 u_char enaddr[6]; |
|
73 74 /* Used by config codes. */ 75 int type; 76 int port_used; 77 struct resource * port_res; 78 bus_space_tag_t iot; 79 bus_space_handle_t ioh; 80 struct resource * irq_res; --- 32 unchanged lines hidden (view full) --- 113 /* Media information. */ 114 struct ifmedia media; /* used by if_media. */ 115 u_short mbitmap; /* bitmap for supported media; see bit2media */ 116 int defmedia; /* default media */ 117 void (* msel)(struct fe_softc *); /* media selector. */ 118 119}; 120 | 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 |
121#define sc_if arpcom.ac_if 122#define sc_xname arpcom.ac_if.if_xname 123#define sc_enaddr arpcom.ac_enaddr 124 125 | |
126struct fe_simple_probe_struct { 127 u_char port; /* Offset from the base I/O address. */ 128 u_char mask; /* Bits to be checked. */ 129 u_char bits; /* Values to be compared against. */ 130}; 131 132 133extern devclass_t fe_devclass; --- 50 unchanged lines hidden --- | 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 --- |