[TG3]: Set minimal hw interrupt mitigation.
[linux-2.6/verdex.git] / drivers / isdn / sc / card.h
blob8e44928cdf1c40d74a5d035a39be96d795421bbf
1 /* $Id: card.h,v 1.1.10.1 2001/09/23 22:24:59 kai Exp $
3 * Driver parameters for SpellCaster ISA ISDN adapters
5 * Copyright (C) 1996 SpellCaster Telecommunications Inc.
7 * This software may be used and distributed according to the terms
8 * of the GNU General Public License, incorporated herein by reference.
10 * For more information, please contact gpl-info@spellcast.com or write:
12 * SpellCaster Telecommunications Inc.
13 * 5621 Finch Avenue East, Unit #3
14 * Scarborough, Ontario Canada
15 * M1B 2T9
16 * +1 (416) 297-8565
17 * +1 (416) 297-6433 Facsimile
20 #ifndef CARD_H
21 #define CARD_H
24 * We need these if they're not already included
26 #include <linux/timer.h>
27 #include <linux/time.h>
28 #include <linux/isdnif.h>
29 #include "message.h"
32 * Amount of time to wait for a reset to complete
34 #define CHECKRESET_TIME msecs_to_jiffies(4000)
37 * Amount of time between line status checks
39 #define CHECKSTAT_TIME msecs_to_jiffies(8000)
42 * The maximum amount of time to wait for a message response
43 * to arrive. Use exclusively by send_and_receive
45 #define SAR_TIMEOUT msecs_to_jiffies(10000)
48 * Macro to determine is a card id is valid
50 #define IS_VALID_CARD(x) ((x >= 0) && (x <= cinst))
53 * Per channel status and configuration
55 typedef struct {
56 int l2_proto;
57 int l3_proto;
58 char dn[50];
59 unsigned long first_sendbuf; /* Offset of first send buffer */
60 unsigned int num_sendbufs; /* Number of send buffers */
61 unsigned int free_sendbufs; /* Number of free sendbufs */
62 unsigned int next_sendbuf; /* Next sequential buffer */
63 char eazlist[50]; /* Set with SETEAZ */
64 char sillist[50]; /* Set with SETSIL */
65 int eazclear; /* Don't accept calls if TRUE */
66 } bchan;
69 * Everything you want to know about the adapter ...
71 typedef struct {
72 int model;
73 int driverId; /* LL Id */
74 char devicename[20]; /* The device name */
75 isdn_if *card; /* ISDN4Linux structure */
76 bchan *channel; /* status of the B channels */
77 char nChannels; /* Number of channels */
78 unsigned int interrupt; /* Interrupt number */
79 int iobase; /* I/O Base address */
80 int ioport[MAX_IO_REGS]; /* Index to I/O ports */
81 int shmem_pgport; /* port for the exp mem page reg. */
82 int shmem_magic; /* adapter magic number */
83 unsigned int rambase; /* Shared RAM base address */
84 unsigned int ramsize; /* Size of shared memory */
85 RspMessage async_msg; /* Async response message */
86 int want_async_messages; /* Snoop the Q ? */
87 unsigned char seq_no; /* Next send seq. number */
88 struct timer_list reset_timer; /* Check reset timer */
89 struct timer_list stat_timer; /* Check startproc timer */
90 unsigned char nphystat; /* Latest PhyStat info */
91 unsigned char phystat; /* Last PhyStat info */
92 HWConfig_pl hwconfig; /* Hardware config info */
93 char load_ver[11]; /* CommManage Version string */
94 char proc_ver[11]; /* CommEngine Version */
95 int StartOnReset; /* Indicates startproc after reset */
96 int EngineUp; /* Indicates CommEngine Up */
97 int trace_mode; /* Indicate if tracing is on */
98 spinlock_t lock; /* local lock */
99 } board;
101 #endif /* CARD_H */