if_skreg.h (59478) | if_skreg.h (60833) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999, 2000 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1997, 1998, 1999, 2000 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/sk/if_skreg.h 59478 2000-04-22 02:16:41Z wpaul $ | 32 * $FreeBSD: head/sys/dev/sk/if_skreg.h 60833 2000-05-23 20:41:01Z jake $ |
33 */ 34 35/* 36 * SysKonnect PCI vendor ID 37 */ 38#define SK_VENDORID 0x1148 39 40/* --- 1083 unchanged lines hidden (view full) --- 1124 1125struct sk_jslot { 1126 caddr_t sk_buf; 1127 int sk_inuse; 1128}; 1129 1130struct sk_jpool_entry { 1131 int slot; | 33 */ 34 35/* 36 * SysKonnect PCI vendor ID 37 */ 38#define SK_VENDORID 0x1148 39 40/* --- 1083 unchanged lines hidden (view full) --- 1124 1125struct sk_jslot { 1126 caddr_t sk_buf; 1127 int sk_inuse; 1128}; 1129 1130struct sk_jpool_entry { 1131 int slot; |
1132 SLIST_ENTRY(sk_jpool_entry) jpool_entries; | 1132 SLIST_ENTRY(struct sk_jpool_entry) jpool_entries; |
1133}; 1134 1135struct sk_chain { 1136 void *sk_desc; 1137 struct mbuf *sk_mbuf; 1138 struct sk_chain *sk_next; 1139}; 1140 --- 63 unchanged lines hidden (view full) --- 1204 int sk_cnt; 1205 int sk_link; 1206 struct callout_handle sk_tick_ch; 1207 struct sk_chain_data sk_cdata; 1208 struct sk_ring_data *sk_rdata; 1209 struct sk_softc *sk_softc; /* parent controller */ 1210 int sk_tx_bmu; /* TX BMU register */ 1211 int sk_if_flags; | 1133}; 1134 1135struct sk_chain { 1136 void *sk_desc; 1137 struct mbuf *sk_mbuf; 1138 struct sk_chain *sk_next; 1139}; 1140 --- 63 unchanged lines hidden (view full) --- 1204 int sk_cnt; 1205 int sk_link; 1206 struct callout_handle sk_tick_ch; 1207 struct sk_chain_data sk_cdata; 1208 struct sk_ring_data *sk_rdata; 1209 struct sk_softc *sk_softc; /* parent controller */ 1210 int sk_tx_bmu; /* TX BMU register */ 1211 int sk_if_flags; |
1212 SLIST_HEAD(__sk_jfreehead, sk_jpool_entry) sk_jfree_listhead; 1213 SLIST_HEAD(__sk_jinusehead, sk_jpool_entry) sk_jinuse_listhead; | 1212 SLIST_HEAD(__sk_jfreehead, struct sk_jpool_entry) sk_jfree_listhead; 1213 SLIST_HEAD(__sk_jinusehead, struct sk_jpool_entry) sk_jinuse_listhead; |
1214}; 1215 1216#define SK_MAXUNIT 256 1217#define SK_TIMEOUT 1000 1218#define ETHER_ALIGN 2 1219 1220#ifdef __alpha__ 1221#undef vtophys 1222#define vtophys(va) alpha_XXX_dmamap((vm_offset_t)va) 1223#endif | 1214}; 1215 1216#define SK_MAXUNIT 256 1217#define SK_TIMEOUT 1000 1218#define ETHER_ALIGN 2 1219 1220#ifdef __alpha__ 1221#undef vtophys 1222#define vtophys(va) alpha_XXX_dmamap((vm_offset_t)va) 1223#endif |