Deleted Added
full compact
if_fatmvar.h (116735) if_fatmvar.h (118208)
1/*
2 * Copyright (c) 2001-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) 2001-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/fatm/if_fatmvar.h 116735 2003-06-23 14:46:12Z harti $
29 * $FreeBSD: head/sys/dev/fatm/if_fatmvar.h 118208 2003-07-30 14:20:00Z harti $
30 *
31 * Fore PCA200E driver definitions.
32 */
33/*
34 * Debug statistics of the PCA200 driver
35 */
36struct istats {
37 uint32_t cmd_queue_full;

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

161
162/*
163 * The driver maintains a list of all open VCCs. Because we
164 * use only VPI=0 and a maximum VCI of 1024, the list is rather an array
165 * than a list. We also store the atm pseudoheader flags here and the
166 * rxhand (aka. protocol block).
167 */
168struct card_vcc {
30 *
31 * Fore PCA200E driver definitions.
32 */
33/*
34 * Debug statistics of the PCA200 driver
35 */
36struct istats {
37 uint32_t cmd_queue_full;

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

161
162/*
163 * The driver maintains a list of all open VCCs. Because we
164 * use only VPI=0 and a maximum VCI of 1024, the list is rather an array
165 * than a list. We also store the atm pseudoheader flags here and the
166 * rxhand (aka. protocol block).
167 */
168struct card_vcc {
169 struct atmio_vcc param; /* traffic parameters */
169 void *rxhand;
170 void *rxhand;
170 uint32_t pcr;
171 uint32_t flags;
172 uint8_t aal;
173 uint8_t traffic;
171 uint vflags;
172 uint32_t ipackets;
173 uint32_t opackets;
174 uint32_t ibytes;
175 uint32_t obytes;
174};
175
176#define FATM_VCC_OPEN 0x00010000 /* is open */
177#define FATM_VCC_TRY_OPEN 0x00020000 /* is currently opening */
178#define FATM_VCC_TRY_CLOSE 0x00040000 /* is currently closing */
179#define FATM_VCC_BUSY 0x00070000 /* one of the above */
180
181/*

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

218 struct cv cv_stat; /* to serialize access to sadi_mem */
219
220 u_int flags;
221#define FATM_STAT_INUSE 0x0001
222#define FATM_REGS_INUSE 0x0002
223 u_int txcnt; /* number of used transmit desc */
224 int retry_tx; /* keep mbufs in queue if full */
225
176};
177
178#define FATM_VCC_OPEN 0x00010000 /* is open */
179#define FATM_VCC_TRY_OPEN 0x00020000 /* is currently opening */
180#define FATM_VCC_TRY_CLOSE 0x00040000 /* is currently closing */
181#define FATM_VCC_BUSY 0x00070000 /* one of the above */
182
183/*

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

220 struct cv cv_stat; /* to serialize access to sadi_mem */
221
222 u_int flags;
223#define FATM_STAT_INUSE 0x0001
224#define FATM_REGS_INUSE 0x0002
225 u_int txcnt; /* number of used transmit desc */
226 int retry_tx; /* keep mbufs in queue if full */
227
226 struct card_vcc *vccs; /* table of vccs */
228 struct card_vcc **vccs; /* table of vccs */
227 int open_vccs; /* number of vccs in use */
228 int small_cnt; /* number of buffers owned by card */
229 int large_cnt; /* number of buffers owned by card */
229 int open_vccs; /* number of vccs in use */
230 int small_cnt; /* number of buffers owned by card */
231 int large_cnt; /* number of buffers owned by card */
232 uma_zone_t vcc_zone; /* allocator for VCCs */
230
231 /* receiving */
232 struct rbuf *rbufs; /* rbuf array */
233 struct rbuf_list rbuf_free; /* free rbufs list */
234 struct rbuf_list rbuf_used; /* used rbufs list */
235 u_int rbuf_total; /* total number of buffs */
236 bus_dma_tag_t rbuf_tag; /* tag for rbuf mapping */
237

--- 153 unchanged lines hidden ---
233
234 /* receiving */
235 struct rbuf *rbufs; /* rbuf array */
236 struct rbuf_list rbuf_free; /* free rbufs list */
237 struct rbuf_list rbuf_used; /* used rbufs list */
238 u_int rbuf_total; /* total number of buffs */
239 bus_dma_tag_t rbuf_tag; /* tag for rbuf mapping */
240

--- 153 unchanged lines hidden ---