diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-09-22 14:17:29 -0500 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-09-22 14:17:29 -0500 |
| commit | 53fcb937b51a62342640fae0f63c5ba87692746a (patch) | |
| tree | dd10d75adb03057110fb2b1a17347b00e9f7c913 /include/linux | |
| parent | f50762175fa45f3d28ee364bfc8c61379ea29ecd (diff) | |
| parent | cd2d00c61c3472b74bf24ac7082eafee35666506 (diff) | |
Merge zephyr:src/kernel/v2.5/linux-2.5.isdn
into tp1.ruhr-uni-bochum.de:/home/kai/kernel/v2.5/linux-2.5.isdn
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/isdn.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/linux/isdn.h b/include/linux/isdn.h index 213d2cbc24f4..ee65c234e121 100644 --- a/include/linux/isdn.h +++ b/include/linux/isdn.h @@ -245,12 +245,10 @@ typedef struct { #define ISDN_TIMER_MODEMPLUS 2 #define ISDN_TIMER_MODEMRING 4 #define ISDN_TIMER_MODEMXMIT 8 -#define ISDN_TIMER_NETHANGUP 32 #define ISDN_TIMER_CARRIER 256 /* Wait for Carrier */ #define ISDN_TIMER_FAST (ISDN_TIMER_MODEMREAD | ISDN_TIMER_MODEMPLUS | \ ISDN_TIMER_MODEMXMIT) -#define ISDN_TIMER_SLOW (ISDN_TIMER_MODEMRING | ISDN_TIMER_NETHANGUP | \ - ISDN_TIMER_CARRIER) +#define ISDN_TIMER_SLOW (ISDN_TIMER_MODEMRING | ISDN_TIMER_CARRIER) /* GLOBAL_FLAGS */ #define ISDN_GLOBAL_STOPPED 1 @@ -267,10 +265,10 @@ typedef struct { #define ISDN_NET_MAGIC 0x49344C02 /* for paranoia-checking */ /* Phone-list-element */ -typedef struct { - void *next; - char num[ISDN_MSNLEN]; -} isdn_net_phone; +struct isdn_net_phone { + struct list_head list; + char num[ISDN_MSNLEN]; +}; /* Principles when extending structures for generic encapsulation protocol @@ -283,11 +281,13 @@ typedef struct { /* Local interface-data */ typedef struct isdn_net_local_s { + spinlock_t lock; ulong magic; char name[10]; /* Name of device */ - struct timer_list dial_timer; /* dial timeout */ + struct timer_list dial_timer; /* dial events timer */ int dial_event; /* event in case of timer expiry */ struct net_device_stats stats; /* Ethernet Statistics */ + struct timer_list hup_timer; /* auto hangup timer */ int isdn_slot; /* Index to isdn device/channel */ int ppp_slot; /* PPPD device slot number */ int pre_device; /* Preselected isdn-device */ @@ -335,10 +335,10 @@ typedef struct isdn_net_local_s { ulong sqfull_stamp; /* Start-Time of overload */ ulong slavedelay; /* Dynamic bundling delaytime */ int triggercps; /* BogoCPS needed for trigger slave */ - isdn_net_phone *phone[2]; /* List of remote-phonenumbers */ + struct list_head phone[2]; /* List of remote-phonenumbers */ /* phone[0] = Incoming Numbers */ /* phone[1] = Outgoing Numbers */ - isdn_net_phone *dial; /* Pointer to dialed number */ + int dial; /* # of phone number just dialed */ struct net_device *master; /* Ptr to Master device for slaves */ struct net_device *slave; /* Ptr to Slave device for masters */ struct isdn_net_local_s *next; /* Ptr to next link in bundle */ |
