Lines Matching defs:mgsl_struct

178 struct mgsl_struct {  struct
198 struct mgsl_struct *next_device; /* device list link */ argument
200 spinlock_t irq_spinlock; /* spinlock for synchronizing with ISR */
201 struct work_struct task; /* task structure for scheduling bh */
203 u32 EventMask; /* event trigger mask */
204 u32 RecordedEvents; /* pending events */
206 u32 max_frame_size; /* as set by device config */
208 u32 pending_bh;
210 bool bh_running; /* Protection from multiple */
211 int isr_overflow;
212 bool bh_requested;
214 int dcd_chkcount; /* check counts to prevent */
215 int cts_chkcount; /* too many IRQs if a signal */
216 int dsr_chkcount; /* is floating */
217 int ri_chkcount;
219 char *buffer_list; /* virtual address of Rx & Tx buffer lists */
220 u32 buffer_list_phys;
221 dma_addr_t buffer_list_dma_addr;
223 unsigned int rx_buffer_count; /* count of total allocated Rx buffers */
224 DMABUFFERENTRY *rx_buffer_list; /* list of receive buffer entries */
225 unsigned int current_rx_buffer;
227 int num_tx_dma_buffers; /* number of tx dma frames required */
228 int tx_dma_buffers_used;
229 unsigned int tx_buffer_count; /* count of total allocated Tx buffers */
230 DMABUFFERENTRY *tx_buffer_list; /* list of transmit buffer entries */
231 int start_tx_dma_buffer; /* tx dma buffer to start tx dma operation */
232 int current_tx_buffer; /* next tx dma buffer to be loaded */
234 unsigned char *intermediate_rxbuffer;
236 int num_tx_holding_buffers; /* number of tx holding buffer allocated */
237 int get_tx_holding_index; /* next tx holding buffer for adapter to load */
238 int put_tx_holding_index; /* next tx holding buffer to store user request */
239 int tx_holding_count; /* number of tx holding buffers waiting */
240 struct tx_holding_buffer tx_holding_buffers[MAX_TX_HOLDING_BUFFERS];
242 bool rx_enabled;
243 bool rx_overflow;
244 bool rx_rcc_underrun;
246 bool tx_enabled;
247 bool tx_active;
248 u32 idle_mode;
250 u16 cmr_value;
251 u16 tcsr_value;
253 char device_name[25]; /* device instance name */
255 unsigned char bus; /* expansion bus number (zero based) */
256 unsigned char function; /* PCI device number */
258 unsigned int io_base; /* base I/O address of adapter */
259 unsigned int io_addr_size; /* size of the I/O address range */
260 bool io_addr_requested; /* true if I/O address requested */
262 unsigned int irq_level; /* interrupt level */
263 unsigned long irq_flags;
264 bool irq_requested; /* true if IRQ requested */
266 unsigned int dma_level; /* DMA channel */
267 bool dma_requested; /* true if dma channel requested */
269 u16 mbre_bit;
270 u16 loopback_bits;
271 u16 usc_idle_mode;
273 MGSL_PARAMS params; /* communications parameters */
275 unsigned char serial_signals; /* current serial signal states */
277 bool irq_occurred; /* for diagnostics use */
278 unsigned int init_error; /* Initialization startup error (DIAGS) */
279 int fDiagnosticsmode; /* Driver in Diagnostic mode? (DIAGS) */
281 u32 last_mem_alloc;
282 unsigned char* memory_base; /* shared memory address (PCI only) */
283 u32 phys_memory_base;
284 bool shared_mem_requested;
286 unsigned char* lcr_base; /* local config registers (PCI only) */
287 u32 phys_lcr_base;
288 u32 lcr_offset;
289 bool lcr_mem_requested;
291 u32 misc_ctrl_value;
292 char *flag_buf;
293 bool drop_rts_on_tx_done;
295 bool loopmode_insert_requested;
296 bool loopmode_send_done_requested;
298 struct _input_signal_events input_signal_events;
301 int netcount;
302 spinlock_t netlock;
305 struct net_device *netdev;