Deleted Added
sdiff udiff text old ( 116735 ) new ( 118208 )
full compact
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 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 {
169 struct atmio_vcc param; /* traffic parameters */
170 void *rxhand;
171 uint vflags;
172 uint32_t ipackets;
173 uint32_t opackets;
174 uint32_t ibytes;
175 uint32_t obytes;
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
228 struct card_vcc **vccs; /* table of vccs */
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 */
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 ---