if_patmvar.h (118539) | if_patmvar.h (118601) |
---|---|
1/* 2 * Copyright (c) 2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 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 * Author: Hartmut Brandt <harti@freebsd.org> 28 * | 1/* 2 * Copyright (c) 2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 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 * Author: Hartmut Brandt <harti@freebsd.org> 28 * |
29 * $FreeBSD: head/sys/dev/patm/if_patmvar.h 118539 2003-08-06 13:09:36Z harti $ | 29 * $FreeBSD: head/sys/dev/patm/if_patmvar.h 118601 2003-08-07 14:30:58Z harti $ |
30 * 31 * Driver for IDT77252 (ABR) based cards like ProSum's. 32 */ 33 34/* legal values are 0, 1, 2 and 8 */ 35#define PATM_VPI_BITS 2 36#define PATM_CFG_VPI IDT_CFG_VP2 37 --- 153 unchanged lines hidden (view full) --- 191struct patm_vcc { 192 struct atmio_vcc vcc; /* caller's parameters */ 193 void *rxhand; /* NATM handle */ 194 u_int vflags; /* open and other flags */ 195 uint32_t ipackets; /* packets received */ 196 uint32_t opackets; /* packets sent */ 197 uint64_t ibytes; /* bytes received */ 198 uint64_t obytes; /* bytes sent */ | 30 * 31 * Driver for IDT77252 (ABR) based cards like ProSum's. 32 */ 33 34/* legal values are 0, 1, 2 and 8 */ 35#define PATM_VPI_BITS 2 36#define PATM_CFG_VPI IDT_CFG_VP2 37 --- 153 unchanged lines hidden (view full) --- 191struct patm_vcc { 192 struct atmio_vcc vcc; /* caller's parameters */ 193 void *rxhand; /* NATM handle */ 194 u_int vflags; /* open and other flags */ 195 uint32_t ipackets; /* packets received */ 196 uint32_t opackets; /* packets sent */ 197 uint64_t ibytes; /* bytes received */ 198 uint64_t obytes; /* bytes sent */ |
199 |
|
199 struct mbuf *chain; /* currently received chain */ 200 struct mbuf *last; /* end of chain */ 201 u_int cid; /* index */ 202 u_int cps; /* last ABR cps */ 203 struct patm_scd *scd; 204}; 205#define PATM_VCC_TX_OPEN 0x0001 206#define PATM_VCC_RX_OPEN 0x0002 --- 170 unchanged lines hidden (view full) --- 377void patm_reset(struct patm_softc *); 378 379/* interrupt handler */ 380void patm_intr(void *); 381 382/* check RSQ */ 383void patm_intr_rsq(struct patm_softc *sc); 384 | 200 struct mbuf *chain; /* currently received chain */ 201 struct mbuf *last; /* end of chain */ 202 u_int cid; /* index */ 203 u_int cps; /* last ABR cps */ 204 struct patm_scd *scd; 205}; 206#define PATM_VCC_TX_OPEN 0x0001 207#define PATM_VCC_RX_OPEN 0x0002 --- 170 unchanged lines hidden (view full) --- 378void patm_reset(struct patm_softc *); 379 380/* interrupt handler */ 381void patm_intr(void *); 382 383/* check RSQ */ 384void patm_intr_rsq(struct patm_softc *sc); 385 |
386/* enable the vcc */ 387void patm_load_vc(struct patm_softc *sc, struct patm_vcc *vcc, int reload); 388 |
|
385/* close the given vcc for transmission */ 386void patm_tx_vcc_close(struct patm_softc *, struct patm_vcc *); 387 388/* close the given vcc for receive */ 389void patm_rx_vcc_close(struct patm_softc *, struct patm_vcc *); 390 391/* transmission side finally closed */ 392void patm_tx_vcc_closed(struct patm_softc *, struct patm_vcc *); --- 124 unchanged lines hidden --- | 389/* close the given vcc for transmission */ 390void patm_tx_vcc_close(struct patm_softc *, struct patm_vcc *); 391 392/* close the given vcc for receive */ 393void patm_rx_vcc_close(struct patm_softc *, struct patm_vcc *); 394 395/* transmission side finally closed */ 396void patm_tx_vcc_closed(struct patm_softc *, struct patm_vcc *); --- 124 unchanged lines hidden --- |