aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/gigaset/gigaset.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/gigaset/gigaset.h')
-rw-r--r--drivers/isdn/gigaset/gigaset.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/isdn/gigaset/gigaset.h b/drivers/isdn/gigaset/gigaset.h
index 39a883ebc696..350dfcf15e6c 100644
--- a/drivers/isdn/gigaset/gigaset.h
+++ b/drivers/isdn/gigaset/gigaset.h
@@ -55,9 +55,6 @@
55#define GIG_RETRYCID 55#define GIG_RETRYCID
56#define GIG_X75 56#define GIG_X75
57 57
58#define MAX_TIMER_INDEX 1000
59#define MAX_SEQ_INDEX 1000
60
61#define GIG_TICK 100 /* in milliseconds */ 58#define GIG_TICK 100 /* in milliseconds */
62 59
63/* timeout values (unit: 1 sec) */ 60/* timeout values (unit: 1 sec) */
@@ -375,7 +372,7 @@ struct at_state_t {
375 struct list_head list; 372 struct list_head list;
376 int waiting; 373 int waiting;
377 int getstring; 374 int getstring;
378 atomic_t timer_index; 375 unsigned timer_index;
379 unsigned long timer_expires; 376 unsigned long timer_expires;
380 int timer_active; 377 int timer_active;
381 unsigned int ConState; /* State of connection */ 378 unsigned int ConState; /* State of connection */
@@ -384,7 +381,7 @@ struct at_state_t {
384 int int_var[VAR_NUM]; /* see VAR_XXXX */ 381 int int_var[VAR_NUM]; /* see VAR_XXXX */
385 char *str_var[STR_NUM]; /* see STR_XXXX */ 382 char *str_var[STR_NUM]; /* see STR_XXXX */
386 unsigned pending_commands; /* see PC_XXXX */ 383 unsigned pending_commands; /* see PC_XXXX */
387 atomic_t seq_index; 384 unsigned seq_index;
388 385
389 struct cardstate *cs; 386 struct cardstate *cs;
390 struct bc_state *bcs; 387 struct bc_state *bcs;
@@ -484,10 +481,11 @@ struct cardstate {
484 unsigned fwver[4]; 481 unsigned fwver[4];
485 int gotfwver; 482 int gotfwver;
486 483
487 atomic_t running; /* !=0 if events are handled */ 484 unsigned running; /* !=0 if events are handled */
488 atomic_t connected; /* !=0 if hardware is connected */ 485 unsigned connected; /* !=0 if hardware is connected */
486 unsigned isdn_up; /* !=0 after ISDN_STAT_RUN */
489 487
490 atomic_t cidmode; 488 unsigned cidmode;
491 489
492 int myid; /* id for communication with LL */ 490 int myid; /* id for communication with LL */
493 isdn_if iif; 491 isdn_if iif;
@@ -528,7 +526,7 @@ struct cardstate {
528 526
529 /* event queue */ 527 /* event queue */
530 struct event_t events[MAX_EVENTS]; 528 struct event_t events[MAX_EVENTS];
531 atomic_t ev_tail, ev_head; 529 unsigned ev_tail, ev_head;
532 spinlock_t ev_lock; 530 spinlock_t ev_lock;
533 531
534 /* current modem response */ 532 /* current modem response */
@@ -824,7 +822,7 @@ static inline void gigaset_schedule_event(struct cardstate *cs)
824{ 822{
825 unsigned long flags; 823 unsigned long flags;
826 spin_lock_irqsave(&cs->lock, flags); 824 spin_lock_irqsave(&cs->lock, flags);
827 if (atomic_read(&cs->running)) 825 if (cs->running)
828 tasklet_schedule(&cs->event_tasklet); 826 tasklet_schedule(&cs->event_tasklet);
829 spin_unlock_irqrestore(&cs->lock, flags); 827 spin_unlock_irqrestore(&cs->lock, flags);
830} 828}